Latest

Create a trunk

Creates a new trunk.

API Endpoint

POST https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/Trunk/

Arguments

name string

Name of the trunk.

trunk_status string

Status of the trunk.
Allowed values: enabled, disabled
Default value is enabled.

secureboolean

Indicates whether the trunk is secured. Plivo uses SRTP to encrypt the call media and TLS to encrypt the SIP signaling.
Allowed values: true, false
Defaults to false.

trunk_direction string

Indicates the direction of the trunk.
Allowed values: outbound, inbound

ipacl_uuid stringconditional

Unique identifier of an IP access control list. Specified for outbound trunk creation

credential_uuidstringconditional

Unique identifier of a credentials list. Specified for outbound trunk creation.

primary_uri_uuid stringconditional

Unique identifier of the origination URI used as a primary URI. Specified for inbound trunk creation.

fallback_uri_uuidstring

Unique identifier of the origination URI used as a fallback URI.

Returns

If successful, returns “Trunk created successfully.” in the message field along with a unique trunk_id.

Response

{
  "api_id": "4e1f954c-baf3-11ec-bafe-0242ac110003",
  "message": "Trunk created successfully.",
  "trunk_id": "986908123123411213"
}
1
2
3
4
curl -i --user AUTH_ID:AUTH_TOKEN \
    -H "Content-Type: application/json" \
    -d '{"name": "testuser", "trunk_status": "enabled", "trunk_direction": "outbound", "ipacl_uuid": "1c13de4c-423d-11e3-9899-22000abfa5d5"}'  \
    https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/Trunk/