Creating and revoking Textual API keys
Last updated
Last updated
The Tonic Textual SDK is a Python SDK that you can use to manage datasets and get access to redacted files.
To be able to use the Textual SDK, you must have an API key.
You can manage keys from a dataset details page or the User API Keys page.
On the dataset details page, the API Keys panel is at the top right.
To display the User API Keys page, in the Textual navigation menu, click User API Keys.
To create a Textual API key:
Either:
On the Textual Home page, click Create, then click API Key.
In the API keys panel on the dataset details page, click Create an API Key.
On the pipeline details page, click Create API Key.
On the User API Keys page, click Create API Key.
In the Name field, type a name to use to identify the key.
Click Create API Key.
Textual displays the key value, and prompts you to copy the key. If you do not copy the key and save it to a file, you will not have access to the key. To copy the key, click the copy icon.
To revoke a Textual API key, either:
In the API Keys panel on the dataset details page, click the delete icon for the key to revoke.
On the User API Keys page, 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
.