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

POST /v3/voice_out_trunk_regenerate_credentials HTTP/1.1
Host: api.didww.com
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
Api-Key: [API token]

{
  "data": {
    "type": "voice_out_trunk_regenerate_credentials",
    "relationships": {
      "voice_out_trunk": {
        "data": {
          "id": "457bf47d-446d-41cd-91c3-dfbda7bf0753",
          "type": "voice_out_trunks"
        }
      }
    }
  }
}

curl

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

HTTP/1.1 200 OK
Content-Type: application/vnd.api+json

{
  "data": {
    "id": "457bf47d-446d-41cd-91c3-dfbda7bf0753",
    "type": "voice_out_trunk_regenerate_credentials"
  },
  "meta": {
    "api_version": "2026-04-16"
  }
}