---
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

---

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