SIP trunks

List SIP trunks

Returns a paginated list of SIP trunks for the authenticated account.

get/v1/trunks

Query parameters

pageinteger

Page number to retrieve. Default 1.

per_pageinteger

Number of records to return per page. Default 25.

Response

Returns a paginated list of SIP trunks.

Example response

{
  "sip_trunks": [
    {
      "id": 3107,
      "label": "My trunk",
      "name": "32882",
      "auth_method": "IP auth",
      "callerid": "14302287001",
      "host_request": {
        "host": "127.0.0.1",
        "status": "pending"
      },
      "encrypted_media": false,
      "passthrough": false,
      "multiple_numbers": true,
      "status": "pending",
      "charge": "24.637",
      "talk_time": 65,
      "machine_detection_enabled": true,
      "call_recording_enabled": true,
      "transcription_enabled": true,
      "transcription_threshold": 6,
      "access_token": "siped7a3f5c1b9e042d6f8a4c2e7b9d1f3a5c8e0b2d4f6a8c0e2d4b6f8a1c3e5d7"
    }
  ],
  "pagination": {
    "current_page": 1,
    "total": 1,
    "per_page": 25,
    "total_pages": 1
  }
}

Changes

Changed in 5 of the 50 revisions of this API.18

    • added SIPTrunkListResponse to the response body allOf list for the response status 200

      response-body-all-of-added

    • removed SipTrunkListResponse from the response body allOf list for the response status 200

      response-body-all-of-removed

    This revision also has 42 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the endpoint scheme security bearerAuth was added to the API

      api-security-added

    This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the response property allOf[subschema #1: SipTrunkListResponse]/sip_trunks/items/callerid became nullable for the status 200

      response-property-became-nullable

    • added the required property allOf[subschema #1: SipTrunkListResponse]/sip_trunks/items/access_token to the response with the 200 status

      response-required-property-added

    • api operation id ListSIPtrunksontheaccount removed and replaced with sip_trunks_list

      api-operation-id-removed

    • added SipTrunkListResponse to the response body allOf list for the response status 200

      response-body-all-of-added

    • removed SIPtrunklist from the response body allOf list for the response status 200

      response-body-all-of-removed

    This revision also has 163 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • endpoint added

      endpoint-added