Skip to main content
PUT
Update Phone Number

Headers

authorization
string | null

Path Parameters

phone_number_id
string<uuid>
required

Body

application/json

In-place update of a binding's routing/SMS config.

The number's identity (carrier, SID, E.164) and its server_url_secret are stable — call-init endpoints keep verifying with the same secret across edits. carrier may be sent but must be the number's own (null = it).

routing_target_type
string
required
Pattern: ^(agent|workflow|webhook)$
twilio_account_sid
string | null
Pattern: ^AC[0-9a-fA-F]{32}$
twilio_auth_token
string | null
Required string length: 1 - 256
carrier
enum<string> | null

The number's carrier. provider is accepted as a deprecated alias for it.

Available options:
twilio,
telnyx,
asterisk
routing_target_id
string<uuid> | null
server_url
string | null
Maximum string length: 2048
sms_enabled
boolean
default:false
metadata
Metadata · object | null

Response

Successful Response

The response is of type Response Update Phone Number V1 Phone Numbers Phone Number Id Put · object.