Gateways API (v2.1.6)

Download OpenAPI specification:Download

Gateways

Gateways

Account gateway / routing endpoints.

Add Gateways

Adds one or more SIP gateways to the account. Each gateway must resolve to a routable public IPv4 address. Optional port specified as host:port.

Authorizations:
apikey
Request Body schema: application/json
required

Body for add gateways.

apikey
required
string
required
Array of objects

Responses

Request samples

Content type
application/json
{
  • "apikey": "Your API Key",
  • "gateways": [ ]
}

Response samples

Content type
application/json
{
  • "message": "Gateways Entered",
  • "status": "Success",
  • "gateways": [ ],
  • "statusCode": "200"
}

List Gateways

Returns all system route types and user-defined SIP gateways for the account. System routes (IDs 1-8) are always included: 1=USER, 2=T30, 3=VOICE_BRIDGE, 4=DID, 5=T38, 6=RTC_BRIDGE, 8=SDN.

Authorizations:
apikey
Request Body schema: application/json
required

Body for list gateways.

apikey
required
string

Responses

Request samples

Content type
application/json
{
  • "apikey": "Your API Key"
}

Response samples

Content type
application/json
{
  • "status": "Success",
  • "gateways": [ ],
  • "statusCode": "200"
}

Remove Gateways

Removes one or more gateways by route ID. A gateway cannot be removed if DIDs are currently routed to it.

Authorizations:
apikey
Request Body schema: application/json
required

Body for remove gateways.

apikey
required
string
required
Array of objects

Responses

Request samples

Content type
application/json
{
  • "apikey": "Your API Key",
  • "routes": [ ]
}

Response samples

Content type
application/json
{
  • "message": "Gateways Removed",
  • "status": "Success",
  • "routes": [ ],
  • "statusCode": "200"
}

Update Gateways

Updates the IP or hostname of one or more existing gateways by route ID.

Authorizations:
apikey
Request Body schema: application/json
required

Body for update gateways.

apikey
required
string
required
Array of objects

Responses

Request samples

Content type
application/json
{
  • "apikey": "Your API Key",
  • "gateways": [ ]
}

Response samples

Content type
application/json
{
  • "message": "Gateway updated",
  • "status": "Success",
  • "gateways": [ ],
  • "statusCode": "200"
}