PATCH
/
v1
/
numbers
/
{id}
Update a phone number
curl --request PATCH \
  --url https://api.wavix.com/v1/numbers/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sms_enabled": true,
  "destinations": [
    {
      "destination": "32882",
      "priority": 1,
      "transport": 5,
      "trunk_id": 3107
    }
  ],
  "sms_relay_url": "https://your-site.com/sms",
  "expected_sms_relay_url": "",
  "call_recording_enabled": true,
  "transcription_enabled": true,
  "transcription_threshold": 30,
  "call_status_url": "https://your-site.com/calls"
}
'
{
  "id": 123,
  "number": "12565378257",
  "activation_fee": "0.99",
  "monthly_fee": "0.99",
  "per_min": "0.01",
  "city": "DETROIT, MI",
  "country": "United States",
  "country_short_name": "US",
  "destination": [
    {
      "id": 1,
      "destination": "[did]@sipuri.com",
      "priority": 1,
      "transport": 1,
      "trunk_id": 23123,
      "trunk_label": "My trunk",
      "srtp": false
    }
  ],
  "channels": 24,
  "require_docs": [
    "address"
  ],
  "documents": [
    {
      "id": 423,
      "allow_replace": false,
      "did_number": "12565378257",
      "doc_content_type": "image/png",
      "doc_file_name": "Copy of ID.png",
      "doc_type": "id",
      "status": "approved",
      "url": "https://api.wavix.com/v1/numbers/24882/papers/1"
    }
  ],
  "domestic_cli": true,
  "label": "<string>",
  "status": "<string>",
  "seconds": "<string>",
  "added": "2023-04-10T06:42:59.000Z",
  "paid_until": "2023-12-07",
  "sms_enabled": false,
  "sms_relay_url": "https://your-website.com/webhook",
  "cnam": true,
  "call_recording_enabled": true,
  "transcription_enabled": true,
  "transcription_threshold": 6,
  "state": "<string>",
  "free_min": 123,
  "unlimited": true,
  "call_status_url": "https://example.com"
}

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> | null

Callback URL for inbound messages. Pass null to clear it.

Example:

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

expected_sms_relay_url
string

Applies the sms_relay_url change only if the number currently has this URL. Pass an empty string to set it only while it is unset, or your own URL to clear or replace it. Requires sms_relay_url.

Example:

""

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
enum<string>[]
required

Documents to activate the number.

Document type required to activate a phone number. One of: id - any form of ID, address - proof of address, localaddress - proof of local address within the country.

Available options:
id,
address,
localaddress
Example:
["address"]
documents
NumberDocument · object[]
required

Uploaded documents.

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"