Skip to main content
PATCH
Update a phone number

Authorizations

Authorization
string
header
required

Wavix API key. Pass as Authorization: Bearer <api_key>. Keys support per-resource scopes (none / read / write). See Restricted keys and scopes.

Path Parameters

id
integer<int32>
required

The unique ID of the phone number.

Example:

123

Body

application/json

Fields to update on a phone number. All fields are optional; only the provided fields are changed.

sms_enabled
boolean

Indicates whether SMS is enabled for the phone number.

Example:

true

destinations
NumberDestination · object[]

Inbound call routing destinations for the phone number.

sms_relay_url
string<uri>

Callback URL for inbound messages.

Example:

"https://your-site.com/sms"

call_recording_enabled
boolean

Indicates whether call recording is enabled.

Example:

true

transcription_enabled
boolean

Indicates whether call transcription is enabled.

Example:

true

transcription_threshold
integer

Minimum call duration in seconds before transcription runs.

Example:

30

call_status_url
string<uri>

Callback URL for call status updates.

Example:

"https://your-site.com/calls"

Response

Returns the updated phone number.

id
integer<int32>
required

Phone number ID.

Example:

123

number
string
required

Phone number.

Example:

"12565378257"

activation_fee
string
required

One-time activation fee in USD.

Example:

"0.99"

monthly_fee
string
required

Monthly fee in USD.

Example:

"0.99"

per_min
string
required

Price per inbound minute in USD.

Example:

"0.01"

city
string
required

City or rate center where the phone number originates.

Example:

"DETROIT, MI"

country
string
required

Country where the phone number originates.

Example:

"United States"

country_short_name
string
required

Two-letter ISO country code.

Example:

"US"

destination
InboundCallDestination · object[]
required

Inbound call destinations set for the phone number.

channels
integer<int32>
required

Maximum number of concurrent inbound calls.

Example:

24

require_docs
string[]
required

Documents required to activate the phone number.

Example:
documents
NumberDocument · object[]
required

Uploaded documents for the phone number.

domestic_cli
boolean
required

Indicates whether the number can be used as the Caller ID for local calls.

label
string | null
required

Label assigned to the phone number.

status
string
required

Phone number status. active means the number can receive and place calls; inactive means it cannot.

seconds
string
required

Total inbound call duration in seconds for current month.

added
string<date-time>
required

Date and time the phone number was purchased in ISO 8601 format.

Example:

"2023-04-10T06:42:59.000Z"

paid_until
string<date>
required

Date until which the number is paid.

Example:

"2023-12-07"

sms_enabled
boolean
required

Indicates whether SMS is enabled.

Example:

false

sms_relay_url
string | null
required

Callback URL for inbound SMS and MMS messages.

Example:

"https://your-website.com/webhook"

cnam
boolean | null
required

Indicates whether CNAM is enabled.

Example:

true

call_recording_enabled
boolean
required

Indicates whether call recording is enabled.

Example:

true

transcription_enabled
boolean
required

Indicates whether transcription is enabled.

Example:

true

transcription_threshold
integer<int32>
required

Minimum call duration in seconds to trigger transcription.

Example:

6

state
string | null

State where the phone number originates. For non-US numbers, this field may be null.

free_min
integer

Number of free inbound minutes.

unlimited
boolean

Indicates whether usage is unlimited.

call_status_url
string | null

Callback URL for call status updates.

Example:

"https://example.com"