RevDesk Web RTC API
The WebRTC API from RevDesk — 4 operation(s) for webrtc.
The WebRTC API from RevDesk — 4 operation(s) for webrtc.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/revdesk-com:revdesk-com-webrtc-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: RevDesk v1 Web RTC API
version: 1.0.0
description: Connect RevDesk calls, SMS, phone numbers, caller IDs, caller trust, agents, contacts, tasks, webhooks, and usage to the rest of your revenue workflow with organization-scoped permissions.
contact:
name: RevDesk
email: support@revdesk.com
servers:
- url: https://api.revdesk.com
security:
- bearerAuth: []
tags:
- name: WebRTC
paths:
/v1/client-tokens:
post:
operationId: v1_client_tokens_post
tags:
- WebRTC
summary: Mint a bounded client token
description: 'Issues a short-lived, downscoped token (rdc_…) that is safe to ship into an untrusted client app. The token is restricted to the from_numbers (caller IDs) and to_numbers (destinations) you specify, so it can only place calls within those bounds — never from any number to any number. Present it on the same Authorization: Bearer header in place of your API key; the WebRTC SDK accepts it directly. The token''s bounds must fall within this key''s own number allowlist and its scopes; it is stateless and revoked by expiry. This endpoint requires a real API key — a minted token cannot mint further tokens. Regardless of the parent key''s scopes, a client token may only carry the browser-calling scope (voice:webrtc) — it can never make durable account changes or mint further tokens. An explicit, non-empty to_numbers (destination allowlist) is required so the token can never dial an arbitrary number.'
parameters:
- name: Idempotency-Key
in: header
required: false
description: UUID — when present, deduplicates repeat submissions. See /api-reference/idempotency.
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
from_numbers:
minItems: 1
maxItems: 50
type: array
items:
type: string
pattern: ^\+[1-9]\d{1,14}$
to_numbers:
minItems: 1
maxItems: 200
type: array
items:
type: string
pattern: ^\+[1-9]\d{1,14}$
scopes:
type: array
items:
type: string
enum:
- voice:webrtc
ttl_seconds:
type: integer
minimum: 60
maximum: 3600
required:
- from_numbers
- to_numbers
additionalProperties: false
responses:
'200':
description: Success
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
token:
type: string
expires_in:
type: number
from_numbers:
type: array
items:
type: string
to_numbers:
type: array
items:
type: string
scopes:
type: array
items:
type: string
required:
- token
- expires_in
- from_numbers
- to_numbers
- scopes
additionalProperties: false
required:
- data
additionalProperties: false
'400':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'401':
description: Unauthorized
headers:
WWW-Authenticate:
$ref: '#/components/headers/WWWAuthenticate'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'403':
description: Forbidden
headers:
WWW-Authenticate:
$ref: '#/components/headers/WWWAuthenticate'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'409':
description: Conflict (incl. idempotency conflicts)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'429':
description: Rate limited
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
Retry-After:
$ref: '#/components/headers/RetryAfter'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
x-scopes:
- tokens:mint
x-required-scopes:
- tokens:mint
x-rate-limit:
requestsPerMinute: 600
/v1/room-token/rejoin:
post:
operationId: v1_room_token_rejoin_post
tags:
- WebRTC
summary: Rejoin an active minute-funded trial call
description: Reissues a browser join token for an existing minute-funded trial call using its original API credential, caller and destination. Requires a verified active phone connection and remaining reserved time. Does not dial, create a room, reserve more minutes or extend the call. Each request rechecks current call state, including when an Idempotency-Key is supplied. Historical and paid calls do not use this endpoint.
parameters:
- name: Idempotency-Key
in: header
required: false
description: This endpoint revalidates current state on every request and does not replay cached responses.
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
call_id:
type: string
format: uuid
pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
from_number:
type: string
pattern: ^\+[1-9]\d{1,14}$
to_number:
type: string
pattern: ^\+[1-9]\d{1,14}$
ttl_seconds:
type: integer
minimum: 30
maximum: 600
required:
- call_id
- from_number
- to_number
additionalProperties: false
responses:
'200':
description: Success
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
token:
type: string
room_url:
type: string
room_name:
type: string
call_id:
type: string
format: uuid
pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
expires_in:
type: integer
exclusiveMinimum: 0
maximum: 9007199254740991
maximum_call_seconds:
type: integer
exclusiveMinimum: 0
maximum: 9007199254740991
from_number:
type: string
to_number:
type: string
required:
- token
- room_url
- room_name
- call_id
- expires_in
- maximum_call_seconds
- from_number
- to_number
additionalProperties: false
required:
- data
additionalProperties: false
'400':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'401':
description: Unauthorized
headers:
WWW-Authenticate:
$ref: '#/components/headers/WWWAuthenticate'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'403':
description: Forbidden
headers:
WWW-Authenticate:
$ref: '#/components/headers/WWWAuthenticate'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'409':
description: Conflict (incl. idempotency conflicts)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'429':
description: Rate limited
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
Retry-After:
$ref: '#/components/headers/RetryAfter'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
x-scopes:
- voice:webrtc
x-required-scopes:
- voice:webrtc
x-rate-limit:
requestsPerMinute: 600
x-demo-eligible: true
/v1/room-token:
post:
operationId: v1_room_token_post
tags:
- WebRTC
summary: Issue a room-join token for private browser calling
description: 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. Minute-funded premium trials require a UUID Idempotency-Key header and return maximum_call_seconds, the reserved duration ceiling. Reuse the key for retries of the same call; an uncertain attempt must not be submitted as a new call. Retries only replay an unexpired join token. An expired token returns HTTP 409 with room_token_replay_unavailable and does not place another call.
parameters:
- name: X-Revdesk-Caller-IP
in: header
required: false
description: 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.
schema:
type: string
- name: Idempotency-Key
in: header
required: false
description: UUID — when present, deduplicates repeat submissions. See /api-reference/idempotency.
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
from_number:
type: string
pattern: ^\+[1-9]\d{1,14}$
to_number:
type: string
pattern: ^\+[1-9]\d{1,14}$
ttl_seconds:
type: integer
minimum: 30
maximum: 600
client_name:
type: string
minLength: 1
maxLength: 64
client_label:
type: string
minLength: 1
maxLength: 120
required:
- from_number
- to_number
additionalProperties: false
responses:
'200':
description: Success
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
token:
type: string
room_url:
type: string
room_name:
type: string
call_id:
type: string
expires_in:
type: number
maximum_call_seconds:
type: integer
exclusiveMinimum: 0
maximum: 9007199254740991
from_number:
type: string
to_number:
type: string
required:
- token
- room_url
- room_name
- call_id
- expires_in
- from_number
- to_number
additionalProperties: false
required:
- data
additionalProperties: false
'400':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'401':
description: Unauthorized
headers:
WWW-Authenticate:
$ref: '#/components/headers/WWWAuthenticate'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'403':
description: Forbidden
headers:
WWW-Authenticate:
$ref: '#/components/headers/WWWAuthenticate'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'409':
description: Conflict (incl. idempotency conflicts)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'429':
description: Rate limited
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
Retry-After:
$ref: '#/components/headers/RetryAfter'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
x-scopes:
- voice:webrtc
x-required-scopes:
- voice:webrtc
x-rate-limit:
requestsPerMinute: 600
x-demo-eligible: true
/v1/webrtc-token:
post:
operationId: v1_webrtc_token_post
tags:
- WebRTC
summary: Issue a scoped WebRTC calling token
description: 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.)
parameters:
- name: X-Revdesk-Caller-IP
in: header
required: false
description: 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.
schema:
type: string
- name: Idempotency-Key
in: header
required: false
description: UUID — when present, deduplicates repeat submissions. See /api-reference/idempotency.
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
from_number:
type: string
pattern: ^\+[1-9]\d{1,14}$
to_number:
type: string
pattern: ^\+[1-9]\d{1,14}$
client_name:
type: string
minLength: 1
maxLength: 64
client_label:
type: string
minLength: 1
maxLength: 120
required:
- from_number
- to_number
additionalProperties: false
responses:
'200':
description: Success
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
token:
type: string
expires_in:
type: number
call_id:
type: string
from_number:
type: string
to_number:
type: string
required:
- token
- expires_in
- call_id
- from_number
- to_number
additionalProperties: false
required:
- data
additionalProperties: false
'400':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'401':
description: Unauthorized
headers:
WWW-Authenticate:
$ref: '#/components/headers/WWWAuthenticate'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'403':
description: Forbidden
headers:
WWW-Authenticate:
$ref: '#/components/headers/WWWAuthenticate'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'409':
description: Conflict (incl. idempotency conflicts)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'429':
description: Rate limited
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
Retry-After:
$ref: '#/components/headers/RetryAfter'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
x-scopes:
- voice:webrtc
x-required-scopes:
- voice:webrtc
x-rate-limit:
requestsPerMinute: 600
x-demo-eligible: true
components:
headers:
XRateLimitRemaining:
description: Requests remaining in the current window.
schema:
type: integer
RetryAfter:
description: Seconds to wait before retrying a rate-limited request.
schema:
type: integer
minimum: 0
WWWAuthenticate:
description: Bearer challenge with RFC 9728 protected-resource metadata and, on scope failures, the required scope.
schema:
type: string
XRateLimitLimit:
description: Maximum requests allowed in the current one-minute window.
schema:
type: integer
RateLimit:
description: Current quota remaining and seconds until reset, using the IETF RateLimit structured-field syntax.
schema:
type: string
example: '"default";r=599;t=60'
XRateLimitReset:
description: Unix timestamp in milliseconds when the current window resets.
schema:
type: integer
RateLimitPolicy:
description: Named quota policy and one-minute window.
schema:
type: string
example: '"default";q=600;w=60'
schemas:
ErrorEnvelope:
type: object
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
message:
type: string
resolution_hint:
type: string
fields:
type: object
additionalProperties:
type: string
doc_url:
type: string
format: uri
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: RevDesk API key
description: Organization-scoped RevDesk API key. Each operation declares its required permissions in x-required-scopes.
x-scopes-supported:
- account:read
- agents:read
- agents:write
- bookings:read
- brand:read
- brand:write
- caller_trust:read
- caller_trust:write
- calls:read
- calls:write
- contacts:read
- contacts:write
- jobs:read
- jobs:write
- notifications:write
- phone_numbers:read
- phone_numbers:write
- optimize:read
- optimize:write
- sms:read
- sms:write
- sub_entities:read
- sub_entities:write
- tokens:mint
- transcripts:read
- usage:read
- voice:read
- voice:webrtc
- voice:write
- webhooks:read
- webhooks:write
externalDocs:
description: RevDesk API versioning and deprecation policy
url: https://docs.revdesk.com/api-reference/versioning-and-deprecation
x-versioning-policy:
strategy: URL path versioning
currentVersion: v1
deprecationSignals:
- Deprecation response header
- Sunset response header
- Link rel=sunset
policyUrl: https://docs.revdesk.com/api-reference/versioning-and-deprecation
x-scope-descriptions:
account:read: Read the authenticated account and workspace identity.
agents:read: Read voice-agent configuration.
agents:write: Create or change voice-agent configuration and start web calls.
bookings:read: Read appointments and bookings.
brand:read: Read branded-calling configuration and status.
brand:write: Create or change branded-calling configuration.
caller_trust:read: Read caller-trust registrations, reputation, and remediation status.
caller_trust:write: Create or change caller-trust registrations and remediation requests.
calls:read: Read call history and call details.
calls:write: Place, control, or end calls.
contacts:read: Read contacts.
contacts:write: Create or change contacts.
jobs:read: Read long-horizon tasks and outcomes. The scope name is retained for compatibility.
jobs:write: Create or change long-horizon tasks. The scope name is retained for compatibility.
notifications:write: Register or revoke this user's native notification devices.
phone_numbers:read: Read owned and available phone numbers.
phone_numbers:write: Purchase, configure, or release phone numbers.
optimize:read: Read website tests, results, conversions, and site properties.
optimize:write: Create, start, pause, ship, or archive website tests and record conversions.
sms:read: Read messages and SMS configuration.
sms:write: Send messages or change SMS configuration.
sub_entities:read: Read bounded sub-entities.
sub_entities:write: Create or change bounded sub-entities.
tokens:mint: Mint short-lived, bounded client tokens from an API key.
transcripts:read: Read call transcripts.
usage:read: Read usage and spend summaries.
voice:read: Read caller IDs and voice configuration.
voice:webrtc: Create short-lived WebRTC room tokens.
voice:write: Create, verify, change, or remove caller IDs.
webhooks:read: Read webhook subscriptions.
webhooks:write: Create, change, or remove webhook subscriptions.