The Supertone API authenticates requests with an API key sent in a custom header. Keys are issued from the developer console and tied to your account.Documentation Index
Fetch the complete documentation index at: https://docs.supertoneapi.com/llms.txt
Use this file to discover all available pages before exploring further.
Issue a key
- Sign in at console.supertoneapi.com.
- Open API Keys and click Create new key.
- Copy the key — it is only shown once. Store it as an environment variable, not in source.
Each account can have up to 3 active API keys. If a key is compromised, revoke it from the console and reissue.
Authenticate a request
Include the key in thex-sup-api-key request header on every call:
- Python
- TypeScript
- cURL
The SDK reads the key from the constructor — wire it to your env var:
Authentication errors
| Status | When it happens |
|---|---|
401 Unauthorized | The x-sup-api-key header is missing, malformed, or doesn’t match an active key. |
403 Forbidden | The key is valid but doesn’t have permission for the resource — for example, calling a cloned voice that belongs to a different account. |
Security checklist
- Never embed keys in client-side code. Mobile apps, single-page apps, and browser extensions should call your own backend, which holds the key.
- Use environment variables, secrets managers, or a key-vault service. Don’t commit keys to git or post them in logs.
- Rotate keys regularly and immediately if you suspect a leak — revoke from the console, reissue, and redeploy.
- Scope by service. If you operate multiple apps, issue separate keys so you can attribute usage and revoke individually.