curl --request POST \
--url https://api.topcalls.ai/v1/phone-numbers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"number": "+18005551234",
"voip_carrier_sid": "660e8400-e29b-41d4-a716-446655440001",
"label": "Main Line"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"number": "<string>",
"voip_carrier_sid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"carrier_name": "<string>",
"source": "topcalls",
"phone_number_sid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "active",
"label": "<string>",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z"
}Add a phone number to your account. The number is provisioned in the telephony system.
Note: The phone number must be in E.164 format (e.g., +14155551234).
curl --request POST \
--url https://api.topcalls.ai/v1/phone-numbers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"number": "+18005551234",
"voip_carrier_sid": "660e8400-e29b-41d4-a716-446655440001",
"label": "Main Line"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"number": "<string>",
"voip_carrier_sid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"carrier_name": "<string>",
"source": "topcalls",
"phone_number_sid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "active",
"label": "<string>",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z"
}Use Authorization: Bearer tc_live_xxxxx
Phone number added successfully
Phone number UUID
Phone number in E.164 format
Carrier UUID used
Carrier display name
Phone number source
topcalls, byoc Provisioned phone number ID in the telephony system
Initial status
active, pending User-friendly label
Account UUID