Skip to main content
POST
/
v1
/
mydids
/
update-destinations
Update inbound call destinations
curl --request POST \
  --url https://api.wavix.com/v1/mydids/update-destinations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ids": [
    1,
    2,
    3
  ],
  "destinations": [
    {
      "destination": "32882",
      "priority": 1,
      "transport": 5,
      "trunk_id": 3107
    }
  ],
  "sms_relay_url": "https://examples.com/sms-webhook"
}
'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer token using appid (Authorization: Bearer )

Body

application/json

Inbound call routing to be configured

Inbound call routing to be configured

ids
integer<int32>[]
required

An array of unique identifiers of DIDs to update

Example:
[1, 2, 3]
destinations
DIDdestination · object[]
required

An array of inbound call destinations to be set up on the phone number

sms_relay_url
string<uri>
required

The URL to which SMS messages will be relayed for the specified DIDs

Example:

"https://examples.com/sms-webhook"

Response

Request successful.

success
boolean
required

Indicates if the operation is successful

Example:

true