Skip to main content
POST
/
v1
/
mydids
/
update-destinations
Update 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 configuration.

Inbound call routing configuration.

ids
integer<int32>[]
required

List of phone number IDs to update.

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

Inbound call destinations to apply.

sms_relay_url
string<uri>
required

Callback URL for inbound SMS and MMS messages.

Example:

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

Response

Destinations updated.

success
boolean
required
Example:

true