# Glance Air documentation

> Real-time audio and video rooms: the RTC API for your backend and browsers, the Platform routes, and the Console API.

API contract `0.5.0` (pre-release). Contract of 2026-11-23.

## Instructions for LLM agents

- Send a Glance API key only from a server, never from a browser or a mobile app; browsers use a participant token.
- A `glc_test_` key creates real rooms on the workspace quota, like a `glc_live_` key.
- An operation marked Preview is not live in production yet and may change.
- Send a Presence backend key (`sk_`) only from a server, never from a browser or a mobile app.
- A Presence publishable key (`pk_`) is public: a browser or a mobile app may hold it.
- Presence has no production environment yet; every Presence operation is Preview.

## Get started

- [Documentation](/docs/index.md): What Glance Air is, and where its RTC API and Console API are documented.
- [Overview](/docs/get-started.md): The pieces of Glance Air and who calls what.
- [Quickstart (Preview)](/docs/get-started/quickstart.md): Create a room and a participant token with a development key, in six steps.
- [Key concepts](/docs/get-started/concepts.md): The lifecycle of a room, templates and media profiles, admission categories, grants, capacity and privacy modes.
- [Release phases](/docs/release-phases.md): What Preview, General availability and Deprecated mean on these pages.

## Authentication

- [Authentication and keys (Preview)](/docs/guides/authentication.md): The credentials the APIs accept, which one each call needs, and how to create, rotate and revoke a key.
- [RTC API authentication (Preview)](/docs/api/authentication.md): Send your server API key or a participant token as a bearer token, and what a 401 or a 403 looks like.
- [Console API authentication](/docs/console-api/authentication.md): Call the Console API with the Glance Air access token you get by signing in with a Glance ID.
- [Presence authentication](/docs/presence/authentication.md): The two Glance Air Presence keys, which header each call carries, and why a server call carries no Origin.

## Errors

- [RTC API errors](/docs/api/errors.md): The error object, the HTTP statuses and every error code the RTC API returns, and what to do about each.
- [Console API errors](/docs/console-api/errors.md): The error object, the HTTP statuses and every error code the Console API returns, and what to do about each.
- [Presence errors](/docs/presence/errors.md): The error body, every code and category, the statuses that return each, and how to handle them.

## Guides

- [Environments](/docs/guides/environments.md): Development and production applications, the key prefix of each, and the base URL and console of each.
- [Presence](/docs/presence.md): What Glance Air Presence is, its two keys, where it runs and the five steps from a registered application to a published event.
- [Presence quickstart](/docs/presence/quickstart.md): Register an application, add one endpoint to your backend, connect a browser and publish a personal event, in five steps.
- [Connect a browser](/docs/presence/sessions.md): How a browser gets a session from your backend, the request your backend builds, and the answer it forwards.
- [Personal events](/docs/presence/personal-events.md): Publish a personal event to one user from your backend, and what a 202, a 409, a 413 and an indeterminate outcome mean.
- [Live audiences](/docs/presence/live-audiences.md): Keep an audience of users up to date from your backend, who may watch it and who appears in it, and how a write is made safe to repeat.
- [WebSocket and close codes](/docs/presence/websocket.md): The address of the Presence socket, that the SDK opens it, and what each close code means for the SDK and for you.
- [Retries and repeated writes](/docs/presence/idempotent-requests.md): How operationId and eventId make a retry safe, and what a 409 conflict and a 429 limited with retryAfterMs mean.
- [Presence versioning](/docs/presence/versioning.md): Where the major version of Glance Air Presence appears, which changes stay in a version, and which need a new one.

## RTC API reference

- [RTC API (Preview)](/docs/api.md): The routes your backend and your participants' browsers call to create rooms and join them.
- [Idempotent requests (Preview)](/docs/api/idempotent-requests.md): Send an Idempotency-Key so a request you repeat never creates or changes anything twice.
- [Concurrency (Preview)](/docs/api/concurrency.md): End a room only if it is still the version you read, with If-Match and the room's version.
- [Request IDs (Preview)](/docs/api/request-ids.md): Find one call in the API's records with the request ID every response and every error carries.
- [Retries and limits (Preview)](/docs/api/retries.md): Which errors to retry, how long to wait, and what a 429 or 503 means.
- [Versioning](/docs/api/versioning.md): The version of the RTC API, where it appears in a request, and how changes are marked.
- [Templates (Preview)](/docs/api/templates.md): The room templates of your environment.
- [List templates (Preview)](/docs/api/templates/list.md): List the room templates of your environment.
- [Rooms (Preview)](/docs/api/rooms.md): A room and its lifecycle.
- [Create a room (Preview)](/docs/api/rooms/create.md): Create a room from a published template.
- [Retrieve a room (Preview)](/docs/api/rooms/retrieve.md): Read a room and its capacity.
- [End a room (Preview)](/docs/api/rooms/close.md): End a room you created.
- [Participant tokens (Preview)](/docs/api/participant-tokens.md): The token a browser uses to join a room.
- [Create a participant token (Preview)](/docs/api/participant-tokens/create.md): Mint a 5-minute token a browser uses to join a room.
- [Participants (Preview)](/docs/api/participants.md): A participant admitted to a room.
- [Admit a participant (Preview)](/docs/api/participants/admit.md): Admit the browser that holds a participant token.
- [Signaling tickets (Preview)](/docs/api/signaling-tickets.md): The WebSocket address and ticket for signaling.
- [Create a signaling ticket (Preview)](/docs/api/signaling-tickets/create.md): Get the WebSocket address and ticket for signaling.
- [Relay credentials (Preview)](/docs/api/relay-credentials.md): Short-lived credentials for the media relay.
- [Create relay credentials (Preview)](/docs/api/relay-credentials/create.md): Get the relay credentials for media.
- [Platform](/docs/api/platform.md): Health, version and liveness.
- [Health](/docs/api/platform/health.md): Check that the API is up.
- [Version](/docs/api/platform/version.md): Read the running API version.
- [Ping](/docs/api/platform/ping.md): A minimal liveness answer.

## Console API reference

- [Console API (Preview)](/docs/console-api.md): The routes the Glance Air console calls to manage your workspace, applications and API keys.
- [Member (Preview)](/docs/console-api/me.md): The signed-in member and their workspace.
- [Retrieve the member (Preview)](/docs/console-api/me/retrieve.md): Read the signed-in member and the workspace.
- [Workspace (Preview)](/docs/console-api/workspace.md): The workspace that owns your applications.
- [Update the workspace (Preview)](/docs/console-api/workspace/update.md): Rename the workspace.
- [Applications (Preview)](/docs/console-api/applications.md): Register, read, change, suspend and reactivate applications, and set the browser origins allowed to use their participant tokens.
- [Register an application (Preview)](/docs/console-api/applications/create.md): Register an application and get its first key.
- [List applications (Preview)](/docs/console-api/applications/list.md): List the workspace applications.
- [Retrieve an application (Preview)](/docs/console-api/applications/retrieve.md): Read one application.
- [Update an application (Preview)](/docs/console-api/applications/update.md): Change an application name or description.
- [Suspend an application (Preview)](/docs/console-api/applications/suspend.md): Stop every key of an application.
- [Reactivate an application (Preview)](/docs/console-api/applications/reactivate.md): Let a suspended application work again.
- [Replace allowed origins (Preview)](/docs/console-api/applications/replace-allowed-origins.md): Set the browser origins allowed to use the application participant tokens.
- [API keys (Preview)](/docs/console-api/api-keys.md): Issue, list, rotate and revoke the API keys of your applications.
- [Create an API key (Preview)](/docs/console-api/api-keys/create.md): Issue a key; its secret is shown once.
- [List API keys (Preview)](/docs/console-api/api-keys/list.md): List the workspace keys without secrets.
- [Revoke an API key (Preview)](/docs/console-api/api-keys/revoke.md): Stop a key for good.
- [Rotate an API key (Preview)](/docs/console-api/api-keys/rotate.md): Issue a replacement key with an overlap.
- [Tenants (Preview)](/docs/console-api/tenants.md): List every tenant. For superadmins only.
- [List tenants (Preview)](/docs/console-api/tenants/list.md): Superadmins list every tenant.

## Presence reference

Presence API contract `1.1.0` (pre-release). Contract of 2026-11-24.

- [Client sessions (Preview)](/docs/presence/client-sessions.md): The receipt of a delegated client session, and the calls that issue, replace and renew its credential.
- [Create a client session (Preview)](/docs/presence/client-sessions/create.md): Create a client session for one of your users and receive its one-time secret.
- [Replace a session credential (Preview)](/docs/presence/client-sessions/replace.md): Replace a credential of an existing session.
- [Renew a client session (Preview)](/docs/presence/client-sessions/renew.md): Reattest the user of an open connection and prepare the renewal of its access.
- [Events (Preview)](/docs/presence/events.md): The event you publish to one person.
- [Publish a personal event (Preview)](/docs/presence/events/publish.md): Publish one event to one recipient.
- [Audiences (Preview)](/docs/presence/audiences.md): The digest of an audience and the calls that manage its members.
- [Replace the members of an audience (Preview)](/docs/presence/audiences/replace.md): Set an audience to exactly the members sent, creating it when it does not exist.
- [Change or renew an audience (Preview)](/docs/presence/audiences/update.md): Upsert and remove members, or renew the audience by asserting its digest.
- [Read the digest of an audience (Preview)](/docs/presence/audiences/retrieve.md): Read the current revision, member count, digest and entity tag of an audience.
- [Delete an audience (Preview)](/docs/presence/audiences/delete.md): Delete an audience and remove its members.

## Optional

- [Changelog](/docs/changelog.md): What changed in the Glance Air API contract, newest first, with its date in UTC and the version of the contract.
