Skip to main content
PATCH

Authorizations

Authorization
string
header
required

Use Authorization: Bearer tc_live_xxxxx

Path Parameters

phone_number_id
string<uuid>
required

Phone number UUID

Body

application/json

Send at least one field.

label
string

Your label

Required string length: 1 - 200
status
enum<string>

Can't be changed while the number is failed or pending (422).

Available options:
active,
inactive
inbound
object

Which campaign answers calls to this number. Greeting, hours, max duration and webhook are set on the campaign, not here.

Response

Phone number updated

id
string<uuid>

Phone number UUID

account_id
string<uuid>

Account UUID

number
string

Phone number in E.164 format

Example:

"+18005551234"

source
enum<string>

topcalls is on the TopCalls carrier, byoc on one of your carriers.

Available options:
topcalls,
byoc,
manual,
import,
twilio
status
enum<string>
  • active: ready to use.
  • inactive: turned off by you, still provisioned.
  • pending: provisioning in progress.
  • failed: provisioning failed. See error_message.
Available options:
active,
inactive,
pending,
failed
phone_number_sid
string<uuid> | null

The number's ID in the phone system

voip_carrier_sid
string<uuid> | null

The carrier's voip_carrier_sid. null on the TopCalls carrier.

carrier_name
string | null

Carrier display name. TopCalls Managed on the TopCalls carrier.

label
string | null

Your label

error_message
string | null

Why provisioning failed, when status is failed

inbound
object

Current inbound routing, always present. After you disable routing, campaign_id still names the last campaign.

created_at
string<date-time>
updated_at
string<date-time>