How to send the key
RecommendedThe API Key belongs to one workspace. You cannot access another workspace with the same key.
Common combinations
Simple dialer only
voice:call, voice:readReal-time IVR
voice:call, voice:read, voice:controlQuery history only
voice:readRecordings
voice:read (recording download)Available scopes
voice:call
voice:call
Originate outbound calls. Requires ACTIVE number and balance or credits. Typical return: 202 with call
id.voice:read
voice:read
List workspace calls, query detail and events (
includeEvents), and download recording files.voice:control
voice:control
Actions on active session:
speak, play, gather, transfer, record-start, record-stop, dtmf, hangup.Common errors
401: missing, invalid, or revoked key
401: missing, invalid, or revoked key
Check
Authorization: Bearer sk_... and that the key was not deleted in the dashboard.402: insufficient balance or credits
402: insufficient balance or credits
Workspace blocked or no balance for dialing. Resolve in the dashboard.
403: missing scope
403: missing scope
Verify scope for the operation (
Missing scope: voice:call, etc.).400: invalid or non-ACTIVE origin
400: invalid or non-ACTIVE origin
from must be an ACTIVE workspace number (id or E.164).
