View All SIP Trunk

GET /api/v1/sip/trunks

Operation id: get__api_v1_sip_trunks

Description

Lists all SIP Trunk

Tags: SipTrunk

Parameters

Query parameters

NameTypeRequiredDescription
pageintegerNopage number for returned records
page_sizeintegerNonumber of records to return per page.
site_idintegerNosite/region id of required records
sort_bystringNorecord field to sort by
sort_orderstringNodirection to sort records
tenant_idstringYestenant id of required records
trunk_namestringNotrunk name of required records

Security

  • PhoenixToken-Authorization (apiKey)
    • PhoenixToken-Authorization

Responses

200 — OK

Content type: application/json

400 — Bad Request

Content type: application/json

500 — Internal Server Error

Content type: application/json

Response models

200 — OK

Content type: application/json

Schema

PropertyTypeRequiredDescription
sip_trunksarrayNo
total_rowsintegerNo
{
  "type": "object",
  "properties": {
    "sip_trunks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "customer_id": {
            "type": "integer"
          },
          "id": {
            "type": "integer"
          },
          "params": {
            "type": "array",
            "items": {
              "type": "integer"
            }
          },
          "sbc_name": {
            "type": "string"
          },
          "site_id": {
            "type": "integer"
          },
          "site_name": {
            "type": "string"
          },
          "trunk_name": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          }
        }
      }
    },
    "total_rows": {
      "type": "integer"
    }
  }
}

400 — Bad Request

Content type: application/json

Schema

PropertyTypeRequiredDescription
codeintegerNo
messagestringNo
{
  "type": "object",
  "properties": {
    "code": {
      "type": "integer",
      "example": 0
    },
    "message": {
      "type": "string",
      "example": "Success"
    }
  }
}

500 — Internal Server Error

Content type: application/json

Schema

PropertyTypeRequiredDescription
codeintegerNo
messagestringNo
{
  "type": "object",
  "properties": {
    "code": {
      "type": "integer",
      "example": 0
    },
    "message": {
      "type": "string",
      "example": "Success"
    }
  }
}