Authentication
Every HTTP call carries your API key in the x-gladia-key header:
curl https://eu1.api.gladia.io/v2/live -H "x-gladia-key: $GLADIA_API_KEY"x-api-key is accepted too, as on Gladia Classic (Gladia’s cloud API, api.gladia.io), so an integration that
sends it runs unchanged. When a request carries both, x-gladia-key is the one read. x-api-key is
deprecated: it is kept only for clients migrated from Gladia Classic. Do not use it in new integrations: it may
be removed (decommissioned) in a future release. Use x-gladia-key instead
(Deprecated Gladia Classic compatibility).
The WebSocket needs no key: the URL that POST /v2/live returns carries a
single-use token for its session.
API keys
Section titled “API keys”Create and revoke keys in Gladia Connect, under API keys. Keys start with ge_ and are shown once, at
creation. A revoked key stops working within 30 seconds.
Expiry date
Section titled “Expiry date”A key can stop working on a date you choose. When you create it, pick Expiration: Never (the default), 30 days, 90 days, 1 year, or a Custom date (the key then works until the end of that day, in your timezone). The date cannot be changed afterwards: to extend it, create a new key and revoke the old one. The API keys table shows each key’s expiry date, Never for a key without one, and marks a key as Expired once its date has passed.
An expired key is refused like an unknown one:
- an HTTP call gets a
401; - a live session it created is refused with close code
4401and the reasonAPI key expired, when its WebSocket connects or reconnects. A session already streaming keeps going until it ends.
Rotate a key before its date: create the new key, deploy it, then revoke the old one. An expired key stays in the table until you revoke it.
Scopes
Section titled “Scopes”A key can be restricted to some products (its scopes). The live API needs Real-time STT: a key without it
gets a 403 with "error_code": "api_key_scope_denied". A key without any scope reaches every product.
Which transcriptions a key reaches
Section titled “Which transcriptions a key reaches”A key reads, downloads and deletes the transcriptions its role in the workspace allows, as Gladia Connect shows them:
- a machine key, and the personal key of the Owner, a Billing Admin or an Admin, reach every live session and pre-recorded job of the workspace;
- the personal key of a Member reaches only the sessions and jobs made with the keys that Member owns (or owned: a revoked key’s transcriptions stay theirs).
So GET /v2/live and GET /v2/pre-recorded list only those, and another member’s session or job answers 404,
as if it did not exist. A Member promoted to Admin reaches the whole workspace within 30 seconds, and the other
way round. A backend that must read every transcription of the workspace uses a machine key.
Voice profiles are shared differently: every key of the workspace lists and reads all of them, since speaker
identification compares a voice with every profile. Changing one (rename, re-scope, enroll another sample, merge,
unmerge, delete) needs a key that reaches the whole workspace, or a key of the member who enrolled it. A Member’s
key gets a 403 on another member’s profile.
IP allowlist
Section titled “IP allowlist”A workspace can accept API calls from listed addresses only (Settings → Security). A call from another address
gets a 403 with "error_code": "ip_not_allowed". The allowlist applies to the API, not to Gladia Connect itself, its real-time playground included.
Sign-in rules of a workspace
Section titled “Sign-in rules of a workspace”The Owner and the Admins of a workspace choose how its members sign in to Gladia Connect, under Settings → Security → MFA and login restrictions. Every change is recorded in the workspace’s audit log.
| rule | what it does |
|---|---|
| Enforce MFA | Members set up two-factor authentication before they use the workspace; a member without a password sets it up without one. Members who sign in with the workspace’s SSO rely on their identity provider’s MFA. When that SSO is Google Workspace, so do members who use Sign in with Google with an address of its verified domain. |
| Create accounts from SSO | Anyone your identity provider signs in with an address of the verified SSO domain gets an account and joins as a Member, without an invitation. Needs a verified SSO connection. |
| Disable social sign-in | Members cannot use Sign in with Google on the workspace. Email and password, passkeys and SSO keep working. No SSO connection needed. It can be turned on before Sign in with Google is offered, and applies from the day it is. |
| SSO only | Members sign in through the workspace’s own SSO only: email and password, passkeys and Google are refused. Needs a verified SSO connection. |
A member signed in another way when Disable social sign-in or SSO only is turned on keeps working for 24 hours, then signs in again with an accepted method. A member who always used Google and has no password sets one with Forgot password on the sign-in page. To end a session at once, revoke it under Settings → Security → Active sessions.
These rules apply to Gladia Connect. API keys are not affected: restrict them with their scopes and the IP allowlist.
Keep the key on your server
Section titled “Keep the key on your server”Create sessions from your backend and give browsers and phones only the session’s WebSocket URL: it works once, for one session, within 60 seconds, and reveals nothing about your key. The client then streams its audio directly to the API, without going through your servers.
The URL’s holder can stream audio, and nothing more unless you allow it: a session’s settings change during the
session only when its init asks (session_config, Change settings mid-session), and then only
the settings you list in allowed.
Errors
Section titled “Errors”| status | error_code |
meaning |
|---|---|---|
401 |
no key, an unknown one, or an expired one | |
403 |
api_key_scope_denied |
the key lacks the Real-time STT scope |
403 |
ip_not_allowed |
the caller’s address is not in the workspace’s allowlist |
Every error body has the same shape: Errors.