VoiceGateway

Replace the project's LiveKit API key and secret

PUT
/api/v1/org/{orgId}/project/{projectId}/livekit-credentials

Authorization

consoleSession
cookievg_session<token>

The console's session cookie, set when you sign in. Every operation accepts it, at the role the operation names.

Path Parameters

orgId*string

Authorised orgId; the server must verify organisation/project ownership before any read.

Length1 <= length
projectId*string

Authorised projectId; the server must verify organisation/project ownership before any read.

Length1 <= length

Request Body

application/json
  1. body
livekitApiKey*string

The new LiveKit API key, with no spaces or control characters.

Length1 <= length <= 256
livekitApiSecret*string

The new LiveKit API secret. Sealed before it is stored; never answered or logged.

Length1 <= length

Response Body

The project now uses the new key and secret.

Example Request
curl -X PUT 'https://example.com/api/v1/org/string/project/string/livekit-credentials' \  -H 'Content-Type: application/json' \  -d '{  "livekitApiKey": "string",  "livekitApiSecret": "string"}'
Example Response
Empty

Was this page helpful?