Skip to content
Protocol v1 Stable wire format

Build on the Kōrero protocol

Signalling runs over HTTPS and text JSON WebSocket frames. Media uses standard WebRTC ICE, DTLS-SRTP, RTP and RTCP. Implement a client or bot in any language.

HTTPS

JSON API

WebSocket

Live envelopes

WebRTC

Opus and VP8 media

All times are Unix milliseconds. Durations whose names end in Seconds are seconds. Object IDs are opaque lowercase UUID-formatted strings. Clients generate direct message IDs and use a positive integer request ID in each WebSocket envelope. Clients should preserve unknown fields in extensible media data and ignore unknown events. Request schemas are available as JSON Schema. References such as #/$defs/websocketRequest select individual schemas.

HTTP

Set Content-Type: application/json on requests with a body. Authenticated routes require Authorization: Bearer <accessToken>. Error responses carry {"error":{"code":"AUTH_FAILED","message":"Authentication failed"}}. Use the error code for control flow. Error prose may change. Successful writes use 200 or 201. A credential-bearing response carries Cache-Control: no-store.

Method and pathAuthInputSuccessful result
GET/healthPublic—{status:"ok"}
GET/readyPublic—{status:"ready"}, or 503 with {status:"unavailable"}
GET/api/v1/server/infoPublic—serverId, name, version, protocolVersions, registration, setupRequired, passwordRequired, invitationPasswordBypass, serverAdministration, bannerImageUrl, richChat?, maxWebSocketBytes?, profilePictures?, fingerprint?
GET/api/v1/server/capabilitiesOptional—protocolVersions, websocketPath, audio, targetAudioBitrate, heartbeatSeconds, maxWebSocketBytes, udp, tcp, textPersistence, iceServers?
POST/api/v1/auth/identity/challengePublicoperation, publicKey, deviceName, originSingle-use challenge
POST/api/v1/auth/identity/loginSigned login challenge and configured server password for accounts created without an invitationid, signature, password?Account and new session
POST/api/v1/admin/bootstrapSetup token, signed bootstrap challenge, and server password when configuredtoken, displayName, deviceName, identity, password?Account and session
POST/api/v1/auth/registerSigned registration challenge, registration policy, and server password when configured for registration without an invitationdisplayName, deviceName, identity, invitation?, password?Account and session
POST/api/v1/auth/refreshRefresh token in bodyrefreshTokenRotated session credentials
POST/api/v1/auth/logoutAccess token—{}
POST/api/v1/auth/logout-allAccess token—{}
POST/api/v1/auth/connection-ticketAccess token—{ticket, expiresAt}
GET/api/v1/connections/:idAccess token for the same session or a viewer with access to the member’s channel—{displayName, channelName, connectedSeconds, latencyMs}
GET/api/v1/accountAccess token—Account
PATCH/api/v1/accountAccess tokendisplayNameAccount
PATCH/api/v1/account/pictureAccess tokendata, a base64 PNG or null to remove the picture{avatarId}
GET/api/v1/account/picture/:accountIdAccess token—{avatarId, data}, with both fields null when there is no picture
GET/api/v1/account/sessionsAccess token—Array of id, deviceName, createdAt, lastActive, expiresAt
POST/api/v1/chat/attachmentsAccess token and matching connectionconnectionId, channelId, text, html?, name, data{messageId}
GET/api/v1/chat/attachments/:messageIdAccess token and matching connectionQuery connectionId{data}
DELETE/api/v1/account/sessions/:idAccess token—{}
GET/api/v1/admin/accountsmanageRolesQuery after? account IDaccounts, next, roles, canDefineRoles, builtInRoles, customRoles, assignablePermissions, defaultRole, registrationPermissions
PATCH/api/v1/admin/rolesmanageRolesaccountId, role{role}
PATCH/api/v1/admin/badgesmanageRolesaccountId, badge{badge}
POST/api/v1/admin/rolesAdministrator or Ownername, permissions{name, permissions}
PATCH/api/v1/admin/roles/definitionAdministrator or Ownername, permissions{name, permissions}
DELETE/api/v1/admin/roles/definitionAdministrator or Ownername{}
GET/api/v1/admin/auditviewAdminQuery before? audit ID, actorId?, prefix? event namespace{events, next}
GET/api/v1/admin/preferencesmanageSettings—Server preferences and allowed default roles
PATCH/api/v1/admin/preferencesmanageSettingsmotd?, defaultRole?, defaultAudioBitrate?, maxAttachmentMiB?Updated server preferences
POST/api/v1/admin/invitationsmanageInvitationsexpiresAt?, expiresInSeconds?, uses?id, token, expiresAt, usesLeft
GET/api/v1/admin/invitationsmanageInvitations—invitations with non-deleted records
PATCH/api/v1/admin/invitations/:idmanageInvitationsexpiresAt?, usesLeft?Updated invitation record
DELETE/api/v1/admin/invitations/:idmanageInvitations—{}
PATCH/api/v1/admin/bannermanageSettingsbannerImageUrl as an HTTPS URL (from server.image_hosts when set) or null{bannerImageUrl}
PATCH/api/v1/channels/ordereditChannelschannelId, targetId, placement as before, after, or inside, with optional parentId{}
GET/api/v1/admin/passwordmanageSettings—{passwordRequired, passwordLocked}
PATCH/api/v1/admin/passwordmanageSettings when VOICE_SERVER_PASSWORD is unsetpassword or null to remove it{passwordRequired}

An Account object has id, displayName, role, createdAt, badge. Session responses have sessionId, accessToken, refreshToken, accessExpiresAt, refreshExpiresAt at the top level alongside account for sign-in and account creation. Session listings contain no token values. The capability response supplies ICE server settings only to authenticated callers. Native requests may omit the Origin header. Cross-origin browser requests require an exact match in server.origins.

Servers advertising extendedServerAdministration support server preferences, role deletion, and HTTP audit history. Audit events are returned newest first, with up to 100 entries. Pass next as before to continue with the same filters. Entries include id, action, createdAt, actorId, actorName, targetId, targetName, details. The log records account activity, connections, channel membership, moderation, and administrative changes. It stores event metadata, excluding credentials, message contents, and voice data.

Preferences apply live. Set motd to an empty string to clear the message. Set defaultAudioBitrate to null to use the configured server value. The VOICE_MEDIA_TARGET_AUDIO_BITRATE environment variable locks that default. Changing defaultRole also requires manageRoles and affects new registrations. Guest, Member, and custom roles are eligible if their server grants and channel allows are within registrationPermissions. The current registration role can receive grants only within that list. A custom role can be deleted after it is unassigned from all accounts and replaced as the default, if selected.

Administrators and the Owner can update the grants for Guest, Member, Moderator, and custom roles through PATCH /api/v1/admin/roles/definition. Each builtInRoles entry has name, permissions, editable, defaultPermissions. Role grants apply to connected accounts immediately and trigger state.invalidated.

Role changes require the actor to rank above both the account’s current role and its new role and to hold both roles’ server-wide and effective channel permissions. Editing or deleting a role requires a higher rank and the role’s existing grants. New role grants must stay within the actor’s permissions at every scope where they apply. Custom roles share a rank between Moderator and Administrator. Channel ordering requires permission to see and edit both channels. inside appends the moved channel and its subtree to the target's children. before and after order siblings. To use either across levels, send the target's parentId, using null for the top level. A move to a new parent also requires permission to see and edit that parent. Invitation expiration can use either a future Unix timestamp in milliseconds or a lifetime in seconds. Omitting both leaves the invitation without an expiration. Omitting uses allows unlimited registrations. Invitation updates leave omitted fields as they are and use null to remove an expiry or use limit. Setting usesLeft replaces the number of remaining uses. Invitation listings and update responses contain metadata only. When invitationPasswordBypass is advertised, a valid invite satisfies the shared password requirement for account creation. An account created with an invitation can later sign in using proof of the same identity. Invitation expiry, deletion, and use limits apply to new registrations. The server password is read-only in the API when the host sets VOICE_SERVER_PASSWORD.

For login, register, or bootstrap, request a challenge for the raw 32-byte Ed25519 public key encoded in base64url without padding. Verify the returned server ID, origin, operation, key, device name, and empty binding. Sign the UTF-8 bytes of the compact JSON array below with the private key. id is the challenge nonce and expiresAt is in Unix milliseconds.

Signature payload
["korero-identity-v1", serverId, origin, operation, id, publicKey, "", deviceName, expiresAt]

Encode the signature as base64url without padding. Send {id, signature} to the login endpoint or as identity in the enrollment request. A valid login proof for an unregistered key returns NOT_FOUND.

WebSocket connection and envelopes

  1. Check that discovery lists v1. Obtain a fresh ticket through the HTTP API.
  2. Open wss://<host>:<port>/api/v1/ws with the same certificate trust decision.
  3. Within five seconds send the authentication request. The outer version identifies the handshake format and versions lists the versions the client can use.
  4. On success the response contains an authoritative snapshot. Join a channel explicitly. Send heartbeat every 25 seconds, or keep the connection active with other requests. The idle timeout is 60 seconds.
  5. After disconnect, obtain a new ticket, reconnect, join again, and recreate media. state.get recovers a snapshot whenever an event is missed or state is invalidated.
connection.authenticate
{"version":1,"id":1,"type":"connection.authenticate","payload":{"ticket":"<43-character token>","versions":[1]}}
channel.join
{"version":1,"id":2,"type":"channel.join","payload":{"channelId":"00000000-0000-4000-8000-000000000001"}}
Failed response
{"version":1,"id":2,"type":"response","success":false,"error":{"code":"FORBIDDEN","message":"Operation not permitted"}}
Successful response
{"version":1,"id":3,"type":"response","success":true,"payload":{}}
Event
{"version":1,"type":"channel.changed","payload":{"channelId":null}}

Requests use strictly increasing positive integers up to JavaScript's safe-integer maximum, with a fresh sequence on reconnect. One connection executes requests in order. Retransmitting an identical retained request ID and JSON object returns the cached response. Keep member ordering and serialization stable for retries. The server caches up to 16 completed, validly framed requests within a 256 KiB response budget. A changed or forgotten ID at or below the high-water mark returns CONFLICT. A malformed envelope without a usable ID receives an error with ID zero if the socket remains writable. A reconnect does not replay mutations. Reconcile state before retrying operations across connections.

A successful snapshot has connectionId, account, channelId, channels, totalUsers, presence, members, serverPermissions, lowerRoles, assignableRoles, bannerImageUrl, canReorderChannels. totalUsers counts registered accounts, including offline accounts. Each presence entry represents one online account, even when that account has multiple connected devices. Extended administration adds motd and the effective server targetAudioBitrate in bits per second. Changes to either value trigger state.invalidated. lowerRoles lists roles below the caller in the server hierarchy. assignableRoles lists roles the caller can assign to a subordinate account. The channel list has id, parentId, name, description, position, capacity, temporary, passwordRequired, canMute, canReparent, canDelete. Invisible parents are represented as null. Members have connectionId, accountId, displayName, role, badge, muted, deafened, adminMuted, adminDeafened and cover the socket's current channel. Presence entries have accountId, displayName, connections. On servers with profilePictures, accounts and presence entries include a nullable avatarId revision. Profile pictures are limited to 192 KiB and 192 pixels per side. Updating a picture refreshes the account's presence and invalidates its active sessions' snapshots.

Badges are cosmetic text labels of up to 32 characters. The badge endpoint accepts null to clear a badge. It only allows edits to other accounts below the caller's role, and records changes in the audit log.

Oversized frames, a full pending request queue or outbound backpressure may close the socket. Treat close code 4401 as a need to reauthenticate, 4403 as a kick, and 4429 as a limit. A kicked account cannot authenticate a new connection for 60 seconds; connection.authenticate returns FORBIDDEN until then. Ticket renewal can extend a session without tearing down media. A revoked device receives 4401 and its transports are closed.

Application requests

Use {} for an empty payload. Optional fields are indicated by ?. Omitted edit fields retain their value. null clears nullable parent, capacity, password or permission-override fields.

TypePayload fieldsSuccess payload
connection.renewticket for the same device{expiresAt}
heartbeat—{time, sessionExpiresAt}
state.get—Snapshot
channel.createname, description?, parentId?, position?, capacity?, password?, backgroundImageUrl?, icon?, audioBitrate?, temporary?{channelId, state}
channel.editchannelId and editable creation fields other than temporary{channelId, state}
channel.deletechannelId{}
channel.joinchannelId, password?Snapshot
channel.leave—Snapshot
channel.moveconnectionId, channelId{}
presence.setmuted?, deafened?, afk?, afkMessage?Member
role.setaccountId, role{}
channel.overridechannelId, role, permission, allow{}
moderation.muteconnectionId, muted{}
moderation.deafenconnectionId, deafened{}
moderation.kickaccountId{}
moderation.banaccountId, expiresInSeconds?{}
moderation.unbanaccountId{}
invitation.createexpiresAt?, expiresInSeconds?, uses?{id, token, expiresAt, usesLeft}
invitation.list—Latest 100 invitation records without tokens or verifiers
invitation.updateinvitationId, expiresAt?, usesLeft?Updated invitation record
invitation.revokeinvitationId{}
server.settingsname?{}
admin.diagnostics—Counts, process CPU and memory, worker PID and native resource usage where available
admin.auditbefore? audit IDLatest 100 matching audit records
message.sendchannelId, text, html?{messageId}
message.historychannelId and optional before timestampUp to 100 channel messages in descending time order
message.deletemessageId{}
direct.peeraccountIdaccountId, displayName, publicKey, ownPublicKey
direct.inbox—Up to 50 recent contacts with accountId, displayName, lastMessageAt
direct.historyaccountId, before?: {createdAt, id}{messages, next}
direct.sendaccountId, id, nonce, ciphertext, signature{messageId}
direct.pokeaccountId, message?{}

channel.override requires manageRoles, server-wide editChannels, and the permission being changed at server scope. The actor must also rank above the target role and hold its server-wide grants. In the target channel and every descendant whose effective permission changes, the actor needs join, editChannels, the permission being changed, and the target role’s effective channel permissions.

channel.delete requires the effective removeChannels permission. The Lobby and channels with children cannot be deleted. Deleting another member’s channel message still requires deleteChannels.

Registration and server.max_users are host-only settings: change them in TOML or with VOICE_SERVER_REGISTRATION / VOICE_SERVER_MAX_USERS, not through server.settings. Server mute and deafen require mute at server scope and in the target channel. They apply to a subordinate account identified by its connection ID and persist across connections. Server mute blocks producers. Server deafen blocks producers and consumers independently of self-deafen. Enabling either restriction closes affected media resources. Clients recreate producers or consumers once allowed. Kicking closes all account connections. Banning also revokes all device sessions. Temporary rooms are joined on creation and disappear when empty. Channel history requires current channel membership and text permission. History is empty when text persistence is disabled. Current live text still works. Message objects contain id, channelId, recipientId, senderId, createdAt, text and may include html and attachment metadata as attachment: {name, size}. When server info advertises richChat, clients may send an optional html representation of the same content, up to 32,768 characters. The server strips markup outside the formatting allowlist (p, br, strong, b, em, i, u, s, del, code, pre, blockquote, ul, ol, li, a, with href on links to http(s) URLs and start on ordered lists) before storing or relaying it. Keep text as the plain-text representation. maxWebSocketBytes caps the UTF-8 request envelope. Treat received markup as untrusted and render it only after sanitizing it against a strict formatting allowlist, or display text. Channel message objects have a null recipientId. An attachment is sent as one channel message with an optional caption. Use standard padded base64 for data. Server info and connection snapshots advertise the current decoded file limit as maxAttachmentBytes. Administrators can set maxAttachmentMiB from 1 to 32 in PATCH /api/v1/admin/preferences. The default is 4 MiB. Upload and download both require text permission in the connection's current channel. Uploads also require attachFiles permission, reflected by the snapshot's canAttachFiles field. Downloads return encoded data separately from history and events. Persistent attachments expire and are deleted with their message. In-memory attachments are available for up to one hour. The in-memory quotas are 8 MiB per sender and 32 MiB per server by default. A higher file limit raises those caps to at least one file per sender and four files per server. Persistent storage is limited to 32 MiB per sender and 256 MiB per server. By default each account has a download budget of 240 requests and 128 MiB of decoded file data, refilled over one minute, and uploads are capped at 120 requests per minute. Hosts can adjust these with limits.attachment_downloads_per_minute, limits.attachment_download_bytes_per_minute and limits.attachment_uploads_per_minute.

AFK is connection-scoped. While afk is true, both muted and deafened are reported as true and the server closes and blocks producers and consumers for that connection. Setting afk to false restores its self-mute and self-deafen settings. Channel members include afk and afkMessage in snapshots and member events. Messages are single lines of up to 120 characters and are shared while AFK. An empty string clears the message.

Encrypted direct messages

Snapshots advertise directMessages: {maxBytes, persistent, offlineDelivery, canSend}. Both accounts live on the same server. Clients keep a connection to each saved server, so a direct message reaches the recipient on that server regardless of which server they are viewing. Sending requires server-level sendDirectMessages permission and a recipient with an enrolled identity. The server derives the sender from the authenticated socket and delivers direct.created to both accounts’ active devices. Packets include id, senderId, recipientId, createdAt, nonce, ciphertext, signature. The server supplies createdAt and uses it for retention and history order.

The recipient can be offline when the server accepts a packet. direct.send returns {messageId, queued}, where queued is true when no recipient device was connected. The server holds a queued packet until a recipient device fetches it with direct.pending, which returns up to 100 of the oldest undelivered packets addressed to the caller, oldest first, each with the sender's current senderName. The client then sends direct.ack with {ids} (1 to 100 packet IDs). Repeat until direct.pending returns an empty list. Clients call direct.pending after each successful connection.authenticate. Acknowledging an unknown or already delivered ID has no effect. A recipient holds at most messaging.offline_delivery_queue undelivered packets, of which one sender may hold at most messaging.offline_delivery_per_sender. Further offline sends return LIMIT. The sender can retry an identical packet using the same ID.

With persistent enabled, delivered packets stay in history until the messaging.retention_hours cutoff, and undelivered packets follow the same cutoff. History returns up to 10 packets newest first, breaking ties by ID. Pass the returned next as before to load another page. With persistence disabled, inbox and history are empty. The server deletes each queued packet when a recipient device acknowledges it, or after messaging.offline_delivery_hours. A packet delivered to a connected device is not stored. The encrypted requests are separate from channel chat. The server rejects legacy plaintext direct-message sends.

Snapshots advertise poke support through pokeMaxLength. A poke requires sendDirectMessages permission and an active recipient on the same server. The server delivers direct.poked to the recipient's active devices immediately. The optional single-line note travels as text over the WebSocket and is not stored in direct message history. Pokes have a separate rate limit of six per minute per account.

Clients check that ownPublicKey matches their enrolled identity and verify the conversation safety code out of band before sending or decrypting. Compute the code as the first 16 bytes of SHA-256, rendered as hex, over the UTF-8 compact JSON array ["korero-direct-safety-code-v1", serverId, participants]. Each participant is [accountId, publicKey] and the two entries sort by account ID. Pin the verified code locally and refuse a changed value.

Convert the local Ed25519 seed and the peer’s validated Ed25519 public key to X25519 with a standard implementation. Reject small-order and non-prime-order peer points and an all-zero shared secret. Generate a random UUIDv4 id and a random 12-byte nonce for each message. Derive a 32-byte AES key from the shared secret using HKDF-SHA-256 with a 32-byte zero salt and the UTF-8 compact JSON array ["korero-direct-message-v1", serverId, senderId, recipientId, id] as the information parameter. Use the same array as AES-256-GCM associated data. Encrypt 1 to maxBytes of UTF-8 text and append the 16-byte authentication tag. Encode the nonce and tagged ciphertext as unpadded base64url. Extend the associated-data array with the two encoded strings in that order, sign its UTF-8 compact JSON with Ed25519 and encode that signature as unpadded base64url. Clients verify the signature against the pinned sender identity and authenticate the ciphertext before displaying text.

WebRTC negotiation

Use the object field names and types from the mediasoup v3 RTP reference and transport API. A client must join first, load the router RTP capabilities, then negotiate its send and receive transports separately. Media operations use membership and ownership scope. Client-supplied account IDs never establish media ownership.

TypePayload fieldsSuccess payload
media.capabilitieskind?: "video"Router RTP capabilities, plus iceServers for video
media.transport.createdirection (send or receive), forceTcp?, kind?: "video", videoSource?: "camera", whisperChannelId?, whisperPassword?{id, iceCandidates, iceParameters, dtlsParameters}
media.transport.connecttransportId, dtlsParameters{}
media.transport.closetransportId{}
media.transport.statstransportIdmediasoup WebRTC transport stats array
media.ice.restarttransportIdNew ICE parameters
media.producers—Array of accessible producerId, connectionId, paused, speaking
media.producer.createtransportId, kind, rtpParameters with kind audio or video{id}
media.producer.pause, resume, closeproducerId{}
media.consumer.createtransportId, producerId, rtpCapabilities{id, producerId, accountId, kind, rtpParameters, producerPaused}
media.consumer.pause, resume, closeconsumerId{}

On the sending side, route the WebRTC transport's DTLS connect and produce callbacks through their respective requests. On the receiving side, create the consumer on the server, add the matching WebRTC consumer locally, then send media.consumer.resume. For late joins, query media.producers before consuming. For ICE restart, apply the returned ICE parameters through the client transport. If the worker resets or the client changes rooms, discard stale media IDs and transports.

Voice uses Opus at 48 kHz. SDP advertises Opus with two-channel capability as required for interop. Clients default to mono capture and can negotiate stereo, DTX, FEC and a target 20 ms packetization interval where supported. The advertised target bitrate defaults to 64 kbit/s. A channel's audioBitrate can override the server default with a value from 32000 to 128000 bits per second. Setting it requires manageSettings and the applicable channel editing permissions. Use null to inherit the server default. Use the effective bitrate in the sender's Opus codec options. Actual throughput depends on the encoder and network.

Servers advertising screenSharing support a separate screen transport in each direction. Publishing requires speak and shareScreen in the joined channel, reflected by the snapshot's canShareScreen field. Screen sharing uses VP8 and can include one Opus source-audio track. Publish optional source audio before publishing video. Discover both IDs in the snapshot's screens array or through media.screenAvailable. A repeat event for the same video producer updates its audio ID. Consuming screen media requires a screen receive transport. media.producers lists microphone audio.

A microphone send transport can set whisperChannelId to route only to a different occupied channel. The sender stays joined to their source channel. Close the normal microphone send transport before requesting a whisper transport. The sender needs speak and whisper in both channels and join in the destination. Supply whisperPassword when the destination has a password. The destination password and both channels' permissions are rechecked during the route lifetime. The destination receives the usual microphone producer events with whisperFrom on media.producerAvailable. Its snapshot lists the current whispers as {producerId, from}. Read-only views of other rooms omit that list. The transport closes when the sender leaves or is muted, deafened or AFK, or when the destination empties or becomes inaccessible. media.whisperEnded reports the source channelId and closed transportId to the sender.

An array in the snapshot's cameras field indicates webcam support. For camera send and receive transports use kind: "video" with videoSource: "camera". Camera transports carry VP8 video at up to 6 Mbit/s. They are separate from screen transports, which continue to use the default video source. A camera produces one video track and requires speak and useCamera in the joined channel, reflected by the snapshot's canUseCamera field. Self-mute affects microphone voice while camera video stays on. Discover camera producers in cameras or through media.cameraAvailable.

Events

EventPayload
presence.changedaccountId, displayName, connections
presence.offlineaccountId
channel.userJoined, channel.userChangedchannelId and Member fields
channel.userLeftchannelId, connectionId, accountId
channel.changedchannelId or null for a move or removal by the server
state.invalidated{}, re-fetch snapshot
server.changedname, registration
message.createdMessage
message.deletedmessageId
direct.createdEncrypted direct message packet
direct.pokedid, senderId, senderName, recipientId, message?
media.producerAvailablechannelId, producerId, connectionId
media.producerClosedchannelId, producerId
media.producerStateproducerId, paused
media.screenAvailablechannelId, producerId, connectionId, audioProducerId?
media.screenClosedchannelId, producerId
media.screenTransportFailedchannelId, transportId, reason
media.cameraAvailablechannelId, producerId, connectionId
media.cameraClosedchannelId, producerId
media.cameraTransportFailedchannelId, transportId, reason
media.consumerClosedconsumerId, producerId
media.speakingproducerId, speaking
media.transportStatetransportId, state
media.transportFailedtransportId, reason
media.resetchannelId, reason

Events can arrive before the response to the operation that triggered them. Speaking is sampled from SFU audio-level observations, so it may not represent every transition or identify silent clients.

Error codes

CodeHTTP statusMeaning
INVALID_REQUEST400Invalid envelope, fields or operation input
VERSION_UNSUPPORTED400Server and client could not agree on a version
AUTH_FAILED401Missing, invalid, expired or revoked credentials
FORBIDDEN403Authorization or origin check failed
NOT_FOUND404Resource unavailable in the caller's scope
CONFLICT409Request conflicts with current state
REFRESH_RETRY409A newer refresh generation already exists
LIMIT429Resource limit
RATE_LIMITED429Request rate exceeded
UNAVAILABLE503Media worker or service unavailable
INTERNAL500Unexpected server failure