Outbound Trunk Regenerate Credentials#

Regenerates the username and password for an outbound trunk that uses the credentials_and_ip authentication method.

Note

  • The endpoint is relevant only for trunks that use credentials_and_ip authentication.

  • POST /v3/voice_out_trunk_regenerate_credentials is available in version 2026-04-16 even when the customer does not have the Outbound feature enabled.

Request#

HTTP Method: POST

URI Path: /v3/voice_out_trunk_regenerate_credentials

Request Body Relationships#

Name

Type

Description

voice_out_trunk

Outbound Trunk Object

The outbound trunk whose credentials should be regenerated.

Example#

http

 1POST /v3/voice_out_trunk_regenerate_credentials HTTP/1.1
 2Host: api.didww.com
 3Content-Type: application/vnd.api+json
 4Accept: application/vnd.api+json
 5Api-Key: [API token]
 6
 7{
 8  "data": {
 9    "type": "voice_out_trunk_regenerate_credentials",
10    "relationships": {
11      "voice_out_trunk": {
12        "data": {
13          "id": "457bf47d-446d-41cd-91c3-dfbda7bf0753",
14          "type": "voice_out_trunks"
15        }
16      }
17    }
18  }
19}

curl

1curl -i -X POST https://api.didww.com/v3/voice_out_trunk_regenerate_credentials -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json" --data-raw '{"data": {"relationships": {"voice_out_trunk": {"data": {"id": "457bf47d-446d-41cd-91c3-dfbda7bf0753", "type": "voice_out_trunks"}}}, "type": "voice_out_trunk_regenerate_credentials"}}'

response

 1HTTP/1.1 200 OK
 2Content-Type: application/vnd.api+json
 3
 4{
 5  "data": {
 6    "id": "457bf47d-446d-41cd-91c3-dfbda7bf0753",
 7    "type": "voice_out_trunk_regenerate_credentials"
 8  },
 9  "meta": {
10    "api_version": "2026-04-16"
11  }
12}