---
title: "Issue a scoped WebRTC calling token"
method: POST
path: "/v1/webrtc-token"
tags: ["WebRTC"]
---

# Issue a scoped WebRTC calling token

`POST /v1/webrtc-token`

## Request

- Base URL: `https://api.revdesk.com`
- URL: `https://api.revdesk.com/v1/webrtc-token`
- Auth: HTTP bearer

Issues a single-use WebRTC token for the RevDesk WebRTC SDK, pinned to one caller ID (from_number, which must be a number you own) and one destination (to_number). The token is an opaque RevDesk token — pass it to the @revdesk/webrtc SDK to place exactly that one call. It is valid only for that single call and is invalidated when the call ends; it cannot be reused. (Token lifetime covers the platform max call duration so it never cuts an active call.)

## Headers

- `Idempotency-Key` string
- `X-Revdesk-Caller-IP` string

## Request body

- object
  - `from_number` string, required
  - `to_number` string, required
  - `client_name` string
  - `client_label` string

## Response `200`

Success

- object
  - `data` object, required
    - `token` string, required
    - `expires_in` number, required
    - `call_id` string, required
    - `from_number` string, required
    - `to_number` string, required

## Other responses

- `400`: Validation error
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `409`: Conflict (incl. idempotency conflicts)
- `429`: Rate limited

---

[API](https://skmtc.dev/revdesk/apis/revdesk-v1-api.md) · [All operations](https://skmtc.dev/revdesk/apis/revdesk-v1-api/llms.txt) · [OpenAPI document](https://skmtc.dev/revdesk/apis/revdesk-v1-api/revisions/fcbd43530a48?raw)
