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:update, phone_numbers:create, phone_numbers:deletePurchase via API:
POST /v1/phone-numbers/orders with scope phone_numbers:create (PIX or card). Regulatory profile, document upload, and submit are also available via API.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 (
GET /v1/phone-numbers/available) - Gateway config and pricing (
GET /v1/phone-numbers/config) - Order detail (
GET /v1/phone-numbers/orders/:orderId)
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.phone_numbers:create
phone_numbers:create
Create order (
POST /v1/phone-numbers/orders), regulatory profile, document upload/submit, replacement number selection.phone_numbers:delete
phone_numbers:delete
Release number (
DELETE /v1/phone-numbers/:id) — soft-delete with RELEASED at the provider.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, phone_numbers:update, phone_numbers:create, or phone_numbers:delete as required by the route.
