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 top right.
In the user menu, click User Profile.
User API Keys list on the User Profile page
Creating a Textual API key
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.
API key creation panel
Click the save icon.
Textual adds the key to the list.
Copying a Textual API key
To copy the text of an API key, so that you can use it in an SDK or API request, click its copy icon.
Revoking a Textual API key
To revoke a Textual API key, in the User API Keys list, click the Revoke option for the key to revoke.
Configuring the API key as an environment setting
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 variableTONIC_TEXTUAL_API_KEY.