Only a user with organization administrator permissions can generate an API token. Generate an API token in the aiWARE Admin Console, then use the generated token as a bearer token in your API requests. Bearer authentication is a token-based HTTP security scheme that directs a server to "give access to the bearer of this token."
When making requests using a client that is not the browser in which you generated the token, include the API token in theĀ Authorization header of the request and set the type to Bearer <token>. Requests made without this header or with an invalid token return an error code.
Steps
[Warn] For security purposes, the dialog box only displays the token when you create it. If you close the dialog box, the token code is no longer displayed. DO NOT close the dialog box before copying and saving the token in a safe place.
- In the Admin Console app, log in.
- On the Overview page, click the API Keys tile.
- On the API Keys page, click Add Token.
- In the New API Key dialog box, enter a token name.
- Select the permissions needed for the token to perform the required API tasks. Then click Generate Token.
- In the Token Generated dialog box, copy your token and save it in a safe place. Then click Close. The API token with the permissions that you selected appears in the API key list of the Admin Console page.