Skip to main content
POST
/
agents
/
phone-numbers
Import Phone Number
curl --request POST \
  --url https://api.cartesia.ai/agents/phone-numbers \
  --header 'Authorization: Bearer <token>' \
  --header 'Cartesia-Version: <cartesia-version>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "<string>",
  "number": "<string>",
  "provider": {
    "id": "<string>"
  },
  "agent_id": "<string>"
}
'
{
  "id": "<string>",
  "number": "<string>",
  "agent": {
    "id": "<string>",
    "name": "<string>"
  },
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "provider": {
    "id": "<string>",
    "account_sid": "<string>",
    "api_key_sid": "<string>",
    "region": "us1"
  },
  "label": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.cartesia.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Cartesia API key (sk_car_...). Get one at play.cartesia.ai/keys.

Headers

Cartesia-Version
enum<string>
required

API version header.

Available options:
2026-03-01
Example:

"2026-03-01"

Body

application/json

Request body for importing a phone number from an existing provider.

label
string
required

A human-readable name for the phone number.

number
string
required

The phone number in E.164 format.

provider
By ID · object
required

Reference to the provider. Pass { "id": "..." } for an existing provider, or { "type": "twilio", "account_sid": "...", "region": "..." } to look up by account.

agent_id
string

Optional agent ID to assign. Inbound calls to the number will be routed to this agent.

Response

Phone number imported.

A phone number with its provider and agent assignment details.

id
string
required

Unique identifier for the phone number.

number
string
required

The phone number in E.164 format (e.g. +14155551234).

agent
object
required

The agent assigned to handle inbound calls, or null if unassigned.

created_at
string<date-time>
required

UTC timestamp when the phone number was created.

updated_at
string<date-time>
required

UTC timestamp when the phone number was last updated.

provider
Twilio · object
required

A linked Twilio account. The api_key_sid field is partially masked in responses.

label
string | null

A human-readable name for the phone number.