Calls

Create Voice Token

Mint a LiveKit room and token for one of your end users, and return the credentials to hand to your client.

Requires Idempotency-Key: a retried request returns the room minted the first time instead of starting a second call.

post/api/v1/voice/tokens

Request

  • Base URL: https://api.dialogbrain.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.dialogbrain.com/api/v1/voice/tokens
  • Auth: none declared

Headers

Idempotency-Keystring nullable

Request body

widget_idinteger required

The widget this call belongs to.

end_user_idstring nullable

Your own identifier for the person calling. It identifies them in the room and comes back inside metadata on the call events.

metadataobject nullable

Your own correlation data. It is stored with the call and returned on the call events, and is never shown to the agent.

Response

Successful Response

urlstring required
tokenstring required
roomstring required
call_idstring required
expires_atstring required

Changes

No recorded changes to this operation across all 5 revisions of this API.