Updates the phone number identified by id. Only the provided fields are changed.
Behavior: With expected_sms_relay_url, the sms_relay_url change is applied only while the number currently has that URL; an empty string matches a number with no sms_relay_url. Otherwise the call returns 409 and no field in the request is changed. Setting the URL the number already has succeeds. To clear sms_relay_url, send null, not an empty string. If the call returns a Something went wrong error, you can retry the request; repeating the sms_relay_url change is a no-op, so it is safe even if the first attempt already applied it.
Wavix API key. Pass as Authorization: Bearer <api_key>. Keys support per-resource scopes (none / read / write). See Restricted keys and scopes.
The unique ID of the phone number.
123
Fields to update on a phone number. All fields are optional; only the provided fields are changed.
Indicates whether SMS is enabled for the phone number.
true
Inbound call routing destinations for the phone number.
Callback URL for inbound messages. Pass null to clear it.
"https://your-site.com/sms"
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.
""
Indicates whether call recording is enabled.
true
Indicates whether call transcription is enabled.
true
Minimum call duration in seconds before transcription runs.
30
Callback URL for call status updates.
"https://your-site.com/calls"
Returns the updated phone number.
Phone number ID.
123
Phone number.
"12565378257"
One-time activation fee in USD.
"0.99"
Monthly fee in USD.
"0.99"
Price per inbound minute in USD.
"0.01"
City or rate center where the phone number originates.
"DETROIT, MI"
Country where the phone number originates.
"United States"
Two-letter ISO country code.
"US"
Inbound call destinations set for the phone number.
Maximum number of concurrent inbound calls.
24
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.
id, address, localaddress ["address"]Uploaded documents.
Indicates whether the number can be used as the Caller ID for local calls.
Label assigned to the phone number.
Phone number status. active means the number can receive and place calls; inactive means it cannot.
Total inbound call duration in seconds for current month.
Date and time the phone number was purchased in ISO 8601 format.
"2023-04-10T06:42:59.000Z"
Date until which the number is paid.
"2023-12-07"
Indicates whether SMS is enabled.
false
Callback URL for inbound SMS and MMS messages.
"https://your-website.com/webhook"
Indicates whether CNAM is enabled.
true
Indicates whether call recording is enabled.
true
Indicates whether transcription is enabled.
true
Minimum call duration in seconds to trigger transcription.
6
State where the phone number originates. For non-US numbers, this field may be null.
Number of free inbound minutes.
Indicates whether usage is unlimited.
Callback URL for call status updates.
"https://example.com"