Quick Start Guide
In this guide, you sign in to the API Portal & AI Hub, find an API, generate an access token, and invoke the API.
Prerequisites
- A portal in your organization. See Manage Portals.
- An API that has the JWT Auth policy attached and is published to the portal. See OAuth2 Authentication and Publish an API.
Step 1: Sign In to the Portal
-
Open the portal. If you don't have the portal URL, get it from the API publisher. See Open the Portal.
-
Click Log In, and sign in with your username and password. If you don't have an account in the portal and the portal allows self sign-up, click Sign up to create one.
Step 2: Find the API
-
In the portal, click APIs in the sidebar. Find the API in the list, or search for it.
-
Click the API to open it. The page shows the endpoints and resources of the API.
-
Click Documentation to view the API definition.
For more, see Browse APIs and API Documentation.
Step 3: Generate an OAuth2 Key
-
Go to Keys › OAuth2 Keys, and click Register OAuth2 client.
-
In the dialog box that opens, enter the following details, and leave the other fields as they are.
Field Value Key manager ThunderID, the default key manager. Application name A name for the key, such as quickstart-app.Grant types Client credentials. -
Click Register client.
-
Copy the consumer secret, and store it securely.
The consumer secret is shown only once and is not stored. You need it to get an access token. If you lose it, delete the key and generate a new one.
Step 4: Get an Access Token
-
On the OAuth2 Keys page, find your key, and click Get token on its row. The Get an access token dialog opens.
-
Enter the Consumer secret. Optionally, enter Scopes and Resource indicators.
-
Click Get token, and copy the access token.
Step 5: Invoke the API
-
Open the API, and under Endpoints, copy the Production endpoint.
-
Send a request to the endpoint with the access token as a bearer token.
curl -X GET "<endpoint>/<resource-path>" \-H "Authorization: Bearer <access-token>"
This request works when the access token is the only credential the API requires. If the API has other policies attached, such as API key authentication or subscription validation, send the credentials that those policies expect as well. See Which Credentials You Need.
Next Steps
- Consume an OAuth2-Secured API - Learn more about generating keys and access tokens
- OAuth2 Keys - Get a token with curl, and edit or delete keys
- API Workflows - Find workflows that AI agents follow to use your APIs
- AI Agents - Let AI agents discover and call the API
Was this page helpful?