Create and revoke API keys
Create a scoped API key, copy its secret once, and revoke it when it is no longer needed.
Updated
Create a key
- Open API Keys.
- Select Create key.
- Enter a descriptive Name and choose when the key should expire.
- Keep Restrict key enabled and select only the endpoint permissions the integration needs. Write access includes read access for the same API area.
- If requests must come from known addresses, enable Restrict by IP address and add the permitted IP addresses or CIDR ranges.
- Select Create key.
Copy the secret from the API Key dialog before closing it. Threetone does not display that secret again. Store it in a server-side secret manager or environment variable, and never commit it to source control or expose it in browser code.
User API keys belong to the creating account. Use the Service Accounts area when a credential must be owned by the workspace instead of one user.
Revoke a key
On the API keys page, select the revoke action for the key, review its name and masked value, then select Revoke key. Revocation cannot be undone, and requests using that key fail immediately.
Update every service that used the key. Remove the revoked value from secret stores, deployment settings, and local development environments.
Related articles
Send a Threetone API key in the x-api-key header and keep the credential out of client code.
Diagnose 401 and 403 responses from API key authentication and authorization checks.
Use a 422 response to find the invalid field and correct the request shape or value.