---
title: "Get Webrtc Token"
method: GET
path: "/v1/convai/conversation/token"
tags: ["Agents Platform"]
---

# Get Webrtc Token

`GET /v1/convai/conversation/token`

Get a WebRTC session token for real-time communication.

## Query parameters

- `agent_id` string, required — Agent id (agent_…) or speech engine external id (seng_), resolved to the same underlying resource.
- `participant_name` string, nullable — Optional custom participant name. If not provided, user ID will be used
- `branch_id` string, nullable — The ID of the branch to use
- `environment` string, nullable — The environment to use for resolving environment variables (e.g. 'production', 'staging'). Defaults to 'production'.
- `debug_events_request` boolean — Whether to enable debug events. Only available for users with editor access to the agent.

## Headers

- `xi-api-key` string, nullable — Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

## Response `200`

Successful Response

- TokenResponseModel
  - `token` string, required
  - `conversation_id` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-20** `db6eec599cbe` — 1 info
  - added the new optional `query` request parameter `debug_events_request`
- **2026-07-26** `494d96419d15` — 1 info
  - added the required property `conversation_id` to the response with the `200` status

[Change history](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/changes/v1/convai/conversation/token/get.md)

---

[API](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation.md) · [All operations](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/elevenlabs/elevenlabs-api-documentation/revisions/630c650dda66/schema)
