WebRTC

Issue a room-join token for private browser calling

Issues a single-call token for browser calling where RevDesk places the call and your browser joins it. You provide a caller ID (from_number, which must be a number you own) and a destination (to_number); RevDesk dials the destination and returns a token your browser uses to join the live call and talk through the mic. Nothing about the underlying network is exposed to the browser. The connection runs entirely on RevDesk's own infrastructure. Pass the returned token and room_url to the RevDesk browser SDK (@revdesk/webrtc) to join.

post/v1/room-token

Request

  • Base URL: https://api.revdesk.com
  • URL: https://api.revdesk.com/v1/room-token
  • Auth: HTTP bearer

Headers

Idempotency-Keystring

UUID — when present, deduplicates repeat submissions. See /api-reference/idempotency.

X-Revdesk-Caller-IPstring

Optional end-user IPv4 or IPv6 address reported by your server for the browser caller. Stored as client-reported diagnostics, separately from the API request IP; never used for authentication. Raw IPs expire after 30 days.

Request body

from_numberstring required
to_numberstring required
ttl_secondsinteger
client_namestring
client_labelstring

Response

Success

Changes

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