How to send the key
RecommendedThe API Key belongs to one workspace. You cannot access another workspace with the same key.
Common combinations
Query only
phone_numbers:readQuery and configure
phone_numbers:read, phone_numbers:updateConfigure inbound only
phone_numbers:updateFull flow
phone_numbers:read, phone_numbers:updatePurchasing a number is done in the dashboard. The API queries available numbers, lists workspace numbers, and configures inbound voice.
Available scopes
phone_numbers:read
phone_numbers:read
- List contracted workspace numbers (
GET /v1/phone-numbers) - Get a number by id (
GET /v1/phone-numbers/:id) - Search available numbers before dashboard checkout (
GET /v1/phone-numbers/available)
phone_numbers:update
phone_numbers:update
Update a number’s configuration (
PATCH /v1/phone-numbers/:id): label, inbound voice action (inboundVoiceAction), forwarding, TTS, recording, etc.Relationship with the Voice API
To originate calls with the number, use Voice scopes (voice:call, voice:read, …). Scopes on this page apply only to /v1/phone-numbers.
Auth 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.403: missing scope
403: missing scope
Confirm the key has
phone_numbers:read or phone_numbers:update for the route.
