Creating and revoking Textual API keys
Last updated
Was this helpful?
Required global permission: Create an API key
To be able to use the Tonic Textual Python SDK or the REST API, you must have an API key.
Alternatively, you can use the Textual API to obtain a JSON Web Token (JWT) to use for authentication.
You manage keys from the User API Keys section of the User Profile page.
To display the User Profile page:
Click the user icon at the bottom of the navigation menu.
In the user menu, click User Profile.

To create a Textual API key:
From the User API Keys section, click Create New Key.
In the API Key Name field, type a name to use to identify the key.

Click the save icon.
Textual adds the key to the list.
To copy the text of an API key, so that you can use it in an SDK or API request, click its copy icon.
To revoke a Textual API key, in the User API Keys list, click the Revoke option for the key to revoke.
You cannot instantiate the SDK client without an API key.
Instead of providing the key every time you call the Textual API, you can configure the API key as the value of the environment variable TONIC_TEXTUAL_API_KEY.
Last updated
Was this helpful?
Was this helpful?