Skip to main content
POST
Provision phone number
Every endpoint on this page requires either a Clerk-issued JWT (Authorization: Bearer <token>) or an organization API key (x-api-key: pk_…). Anonymous calls return 401 Unauthorized. See Authentication for the full setup.

Code examples

Sample response

Authorizations

x-api-key
string
header
required

Organization API key. Obtain from the dashboard. Format: pk_live_…

Body

application/json
provider
enum<string>
Available options:
twilio,
telnyx
Example:

"twilio"

number
string

E.164 format.

Example:

"+15550001234"

agentId
string<uuid>

Optional agent to map immediately.

Response

Phone number provisioned.

id
string
number
string
Example:

"+15550001234"

provider
string
Example:

"twilio"

agentId
string<uuid> | null
orgId
string
createdAt
string<date-time>