LiveKit
LiveKit

Create Token

Create a LiveKit access token for the current user.

This allows users to join a voice session with an agent.

Dynamic context variables can be passed via context field:

  • These will be injected into the agent's system prompt
  • Use {{variable_name}} syntax in prompts
  • Built-in variables: {{current_time}}, {{current_date}}, {{username}}
post/v1/livekit/token

Request

  • Base URL: https://api.call2me.app
  • URL: https://api.call2me.app/v1/livekit/token
  • Auth: HTTP bearer

Request body

room_namestring required
participant_namestring nullable
agent_idstring nullable
contextobject nullable

Response

Successful Response

tokenstring required
urlstring required
room_namestring required

Changes

No recorded changes to this operation across all 1 revision of this API.