Skip to main content
The Finesse API authenticates with a workspace API key. Send it on every request in the X-API-Key header:
Keys are prefixed flv_. The server only stores a hash, so the full key is shown once - when you create it.
API keys are server-side only. Treat a key like a password: never put it in browser or mobile code, a WebSocket URL, or source control. If a browser needs to play audio, give it a short-lived access token instead. If a key leaks, revoke or rotate it from the dashboard.

Create a key

1

Open the dashboard

Sign in to the Finesse dashboard and go to Developers → API Keys.
2

Name it, pick scopes and an expiry

Name the key, choose its scopes (all four are selected by default) and when it expires (never, 30, 90 or 365 days). The secret (flv_…) is displayed once - copy it now.
3

Store it safely

Keep it in a secret manager or an environment variable (FINESSE_API_KEY). If you lose it, rotate it or revoke it and create a new one.

Who can manage keys

Only workspace owners and admins can create, rotate or revoke keys. Members can see the workspace’s keys (name, prefix, scopes, expiry, last use) but not change them; the API answers them with 403. When a member is removed from a workspace, the keys they created are revoked and the workspace’s admins are notified by email.

What a key can access

A key is bound to one workspace. Referencing a voice or job from another workspace returns 404. Within that workspace, what the key can do is set by its scopes.
  • List and read the voices in that workspace, plus the public platform voices.
  • Synthesize speech with any ready voice it can read (speak, stream, WebSocket).
  • Create, clone, update and delete the workspace’s own voices (clone, create).
Each of those is limited by the key’s scopes, below. Public platform voices are read-only. Referencing a private voice from another workspace returns 404.

Scopes

Give each key only the scopes it needs - a server that only plays audio needs tts, nothing else. Calling an endpoint without its scope returns 403 with code insufficient_scope; the message names the missing scope. Keys created before scopes existed keep full access (all four).

Expiry and rotation

A key can expire after 30, 90 or 365 days, or never. Once it expires, requests return 401 with code key_expired and the dashboard marks it Expired. To replace a key without downtime, rotate it from Developers → API Keys. Rotation creates a new key with the same name (suffixed “(rotated)”), scopes and expiry policy, shows its secret once, and keeps the old key working for a grace period you choose: immediately, 24 hours (default) or 7 days. Deploy the new key, then let the old one lapse. Revoked and expired keys can’t be rotated. Revoking a key stops it immediately, along with any access tokens minted from it.

Browser access with short-lived tokens

Browsers can’t keep a secret, so they should never hold your API key. Instead:
1

Your server mints a token

Your backend calls POST /tokens with the API key (scope tts). Tokens live for 5 minutes by default (up to an hour) and can be limited to specific voice_ids.
2

The browser receives only the token

Return the fin_tok_… token to your signed-in user’s browser.
3

The browser uses it once

Open the WebSocket with subprotocols ["finesse.v1", token], or call speak / stream with Authorization: Bearer <token>.
Tokens are single use, grant tts only, and stop working when the key that minted them is revoked or expires. See Create an access token for code.
Server-side WebSocket clients don’t need tokens: send the key as an X-API-Key header on the handshake, the same as on HTTP. The older ?api_key= query parameter still works but is deprecated; responses carry a Deprecation header. Use the header from servers and tokens from browsers.

Authentication errors

See Errors & responses for the full list.