In this article
The page's title should always be the Snap's name. For example, File Reader.
Overview
You can create and subscribe to APIs in the Developer Portal. New subscriptions must be approved by an Org admin in the Applications tab of the Subscription Manager.
Create an Application
- In the Developer Portal, go to the Applications page and click Create New Application.
- the Application Name and select whether it is a mobile or web application in the Type field. You can also add a description.
- Click if you want to subscribe to an API. This will open the Create Subscription . If not, click .
Create Subscription
- elect the APIs and click Continue.
- add an optional comment to your selected APIs. Click Continue.
- In the Register tab, y see a summary page of your application and the APIs you selected. Click Register to submit your application and subscription request.
- On the application page, have a key icon in addition to the edit or delete icons.
- Clicking on an application with the key icon will show the status of the subscription. Subscriptions can have a status of , Revoked, or Pending.
How to Use a Subscribed API
Users logged in to a Developer Portal for an Org can create applications. These applications have an associated client id
and a client secret
. The user can subscribe an application to any API on the portal that allows subscriptions.
How to Use Your Application Secret to Use an API
Once your application is a approved for subscription to an API, you can use the application's client secret to execute the API via the Authorization header at type token. For example:
Authorization: token <client secret>
The application client secret acts as your API Key to access an approved API.
Edit an Application
- Click the edit icon to edit your application. You can change the Application Name, Type or Description. Click Save when you are done.
- You can also click Refresh Secret to increase expiration date of your secret key by a year, or click Regenerate Secret to generate a new secret key and refresh the expiration. Generating a new secret updates the secret key of all your subscriptions. The new secret key will automatically be saved regardless of whether you click Save.
Delete an Application
and all its API . Click Confirm to delete the application.