Create and delete keys
Keys are created and deleted from the API Keys page in the Dashboard. The secret value is shown once, at creation time. Copy it into your secret store immediately, because you cannot retrieve it later.One key, every host
You use the same SLNG key across SLNG hosts:Authenticate over HTTP
Pass the key as a bearer token in theAuthorization header:
Authenticate over WebSocket
Pass the key on the WebSocket upgrade request, either as anAuthorization header or as a token query parameter when the client cannot set headers:
The browser WebSocket API does not support custom headers. Use the
token query parameter from the browser, or set the Authorization header from a server-side client.Rotate a key
Keys cannot be rotated in place. To replace a key without downtime:1
Create the new key
Generate a new key in the Dashboard and store its secret value.
2
Roll callers over
Update each caller to use the new key: backend services and any local environments. Verify traffic on the new key before continuing.
3
Delete the old key
Once no caller is using the old key, delete it from the Dashboard. Any request still presenting the deleted key starts failing with
401 Unauthorized.Bring your own provider key
To run synthesis or transcription against your own upstream provider account, add theX-Slng-Provider-Key header alongside your SLNG key. Read the full guide to Bring Your Own Key setup.
Errors
A missing or invalid key returnsHTTP 401, or an auth_error frame over WebSocket. See Error Codes & Troubleshooting.