# Get active SIP Trunks

Get a list of all currently active CM.com SIP Trunks.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Sip Accounts API",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.cm.com"
    }
  ],
  "paths": {
    "/voice-sipaccountsapi/v1/{voiceAccountGuid}/sipAccounts/{sipAccountGuid}/trunks": {
      "get": {
        "tags": [
          "Sip Config"
        ],
        "summary": "Get active SIP Trunks",
        "description": "Get a list of all currently active CM.com SIP Trunks.",
        "parameters": [
          {
            "name": "voiceAccountGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sipAccountGuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApiTrunk"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ApiTrunk": {
        "title": "Trunk",
        "type": "object",
        "properties": {
          "city": {
            "type": "string",
            "description": "City where the SIP Trunk is located.",
            "nullable": true
          },
          "countryCode": {
            "type": "string",
            "description": "Countrycode of the country where the SIP Trunk is located in ISO 3166 format.",
            "nullable": true
          },
          "code": {
            "type": "string",
            "description": "Code of the SIP Trunk (name of the platform).",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description of the SIP Trunk.",
            "nullable": true
          },
          "externalIps": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "IP Addresses of the SIP Trunk.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "CM.com SIP Trunk."
      }
    },
    "securitySchemes": {
      "X-CM-PRODUCTTOKEN": {
        "type": "apiKey",
        "description": "Your producttoken",
        "name": "X-CM-PRODUCTTOKEN",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "X-CM-PRODUCTTOKEN": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 98,
      "1": 254,
      "2": 39,
      "3": 241,
      "4": 128,
      "5": 239,
      "6": 120,
      "7": 0,
      "8": 82,
      "9": 163,
      "10": 4,
      "11": 41
    }
  }
}
```