Download OpenAPI specification:Download
The SIP Trunks endpoint has operations that allow you to create, view, update, and remove SIP trunks.
Creates a new SIP trunk.
SIP trunk created successfully
{- "hostName": "acme-domain-1",
- "name": "Acme Trunk"
}
{- "id": "",
- "hostName": "acme-domain-1",
- "topLevelDomain": ".elastic-sip.sinch.com",
- "domain": "acme-domain-1.elastic-sip.sinch.com",
- "name": "Acme Trunk",
- "callsPerSecond": 100,
- "enableCallerName": true,
- "createTime": "2022-01-01T00:00:00Z",
- "updateTime": "2022-01-01T00:00:00Z",
- "projectId": "1bf62742-7b84-4666-9cbe-8e5734fd57d0"
}
Returns a list of all SIP trunks. If you specify pagination settings, the list of SIP trunks can be returned separated and sorted into pages.
Request completed successfully
{- "totalItems": 10000,
- "pageNumber": 1,
- "pageSize": 500,
- "trunks": [
- {
- "id": "",
- "hostName": "acme-domain-1",
- "topLevelDomain": ".elastic-sip.sinch.com",
- "domain": "acme-domain-1.elastic-sip.sinch.com",
- "name": "Acme Trunk",
- "callsPerSecond": 100,
- "enableCallerName": true,
- "createTime": "2022-01-01T00:00:00Z",
- "updateTime": "2022-01-01T00:00:00Z",
- "projectId": "1bf62742-7b84-4666-9cbe-8e5734fd57d0"
}
]
}
Search for a SIP trunk by ID.
SIP trunk found successfully
{- "id": "",
- "hostName": "acme-domain-1",
- "topLevelDomain": ".elastic-sip.sinch.com",
- "domain": "acme-domain-1.elastic-sip.sinch.com",
- "name": "Acme Trunk",
- "callsPerSecond": 100,
- "enableCallerName": true,
- "createTime": "2022-01-01T00:00:00Z",
- "updateTime": "2022-01-01T00:00:00Z",
- "projectId": "1bf62742-7b84-4666-9cbe-8e5734fd57d0"
}
Update an existing SIP Trunk by ID. The whole object must be sent. Any missing fields will be set to null.
SIP trunk updated successfully
{- "hostName": "acme-domain-1",
- "name": "Acme Trunk"
}
{- "id": "",
- "hostName": "acme-domain-1",
- "topLevelDomain": ".elastic-sip.sinch.com",
- "domain": "acme-domain-1.elastic-sip.sinch.com",
- "name": "Acme Trunk",
- "callsPerSecond": 100,
- "enableCallerName": true,
- "createTime": "2022-01-01T00:00:00Z",
- "updateTime": "2022-01-01T00:00:00Z",
- "projectId": "1bf62742-7b84-4666-9cbe-8e5734fd57d0"
}
Request to add access control lists to a trunk.
{- "accessControlListIds": [
- "01HA2E80QCBX185VVP21PJG9CT",
- "01H8Y95DBJT31F104PWFVV9H8B"
]
}
The access control lists added to a trunk.
{- "accessControlListIds": [
- "01HA2E80QCBX185VVP21PJG9CT",
- "01H8Y95DBJT31F104PWFVV9H8B"
]
}
Get all access control list entries for a trunk.
The list of access control list entries
All access control lists assigned to a trunk.
{- "accessControlListIds": [
- "01HA2E80QCBX185VVP21PJG9CT"
], - "pageNumber": 1,
- "pageSize": 1000,
- "totalItems": 1
}
Update the list of access control list entries for a trunk.
[- "01GNZ9MXEZ4K6S8GB7RW063VAN",
- "01GNZ9MXEZ4K6S8GB7RW063VAN"
]
{- "accessControlListIds": [
- "01GNZ9MXEZ4K6S8GB7RW063VAN",
- "01GNZ9MXEZ4K6S8GB7RW063VAN"
]
}
Update the list of credential list entries for a trunk.
[- "01GNZ9MXEZ4K6S8GB7RW063VAN",
- "01GNZ9MXEZ4K6S8GB7RW063VAN"
]
{- "credentialListIds": [
- "01GNZ9MXEZ4K6S8GB7RW063VAN",
- "01GNZ9MXEZ4K6S8GB7RW063VAN"
]
}
A SIP endpoint is the resource that represents your SIP infrastructure, typically an SBC. Note the Elastic SIP Trunk API does not support user registration and presence.
Returns a list of all SIP endpoints with paging.
A successful response.
{- "totalItems": 10000,
- "pageNumber": 1,
- "pageSize": 500,
- "endpoints": [
- {
- "id": "string",
- "sipTrunkId": "bbc55c4c-fe25-11ec-8482-d2e74e85a66f",
- "name": "Acme Endpoint",
- "transport": "UDP",
- "priority": 1,
- "enabled": true,
- "createTime": "2022-01-01T00:00:00Z",
- "updateTime": "2022-01-01T00:00:00Z",
- "address": "127.0.0.1",
- "port": 5060
}
]
}
Create a new SIP endpoint.
A SIP endpoint which is the address of your SIP infrastructure. SIP endpoints can be one of two types: static endpoints or registered endpoints.
Endpoint | Description |
---|---|
Static endpoints | Static endpoints are defined by a static value which can either be an IP address or a domain name. |
Registered endpoints | Registered endpoints use a credential list to determine the endpoint. |
{- "address": "127.0.0.1",
- "name": "Acme Endpoint",
- "priority": 1
}
Get a SIP endpoint by specifying its ID.
A successful response.
A SIP endpoint which is the address of your SIP infrastructure. SIP endpoints can be one of two types: static endpoints or registered endpoints.
Endpoint | Description |
---|---|
Static endpoints | Static endpoints are defined by a static value which can either be an IP address or a domain name. |
Registered endpoints | Registered endpoints use a credential list to determine the endpoint. |
address required | string The address of the SIP endpoint can be an IP address or a domain name. EST uses IP authentication and will only accept calls from the specified address or domain. | ||||||
name required | string The friendly name of the SIP endpoint. | ||||||
priority required | integer <int32> >= 1 Inbound call routing priority. If two or more endpoints have the same priority, calls will be routed to them using a round-robin strategy. | ||||||
port | integer <int32> [ 1 .. 65535 ] Default: 5060 The port of the SIP endpoint. | ||||||
id | string The ID of the SIP endpoint. | ||||||
sipTrunkId | string The ID of the SIP trunk to which the endpoint is assigned. | ||||||
transport | string Default: "UDP" The transport protocol of the SIP endpoint.
| ||||||
enabled | boolean Default: true Sets whether the SIP endpoint is enabled or not. | ||||||
createTime | string <date-time> The date and time that the SIP endpoint was created. | ||||||
updateTime | string <date-time> The date and time that the SIP endpoint was last modified. |
{- "address": "127.0.0.1",
- "port": 5060,
- "id": "string",
- "sipTrunkId": "bbc55c4c-fe25-11ec-8482-d2e74e85a66f",
- "name": "Acme Endpoint",
- "transport": "UDP",
- "priority": 1,
- "enabled": true,
- "createTime": "2022-01-01T00:00:00Z",
- "updateTime": "2022-01-01T00:00:00Z"
}
Updated an existing SIP endpoint by specifying its ID.
A SIP endpoint which is the address of your SIP infrastructure. SIP endpoints can be one of two types: static endpoints or registered endpoints.
Endpoint | Description |
---|---|
Static endpoints | Static endpoints are defined by a static value which can either be an IP address or a domain name. |
Registered endpoints | Registered endpoints use a credential list to determine the endpoint. |
address required | string The address of the SIP endpoint can be an IP address or a domain name. EST uses IP authentication and will only accept calls from the specified address or domain. | ||||||
name required | string The friendly name of the SIP endpoint. | ||||||
priority required | integer <int32> >= 1 Inbound call routing priority. If two or more endpoints have the same priority, calls will be routed to them using a round-robin strategy. | ||||||
port | integer <int32> [ 1 .. 65535 ] Default: 5060 The port of the SIP endpoint. | ||||||
transport | string Default: "UDP" The transport protocol of the SIP endpoint.
| ||||||
enabled | boolean Default: true Sets whether the SIP endpoint is enabled or not. |
A successful response.
A SIP endpoint which is the address of your SIP infrastructure. SIP endpoints can be one of two types: static endpoints or registered endpoints.
Endpoint | Description |
---|---|
Static endpoints | Static endpoints are defined by a static value which can either be an IP address or a domain name. |
Registered endpoints | Registered endpoints use a credential list to determine the endpoint. |
address required | string The address of the SIP endpoint can be an IP address or a domain name. EST uses IP authentication and will only accept calls from the specified address or domain. | ||||||
name required | string The friendly name of the SIP endpoint. | ||||||
priority required | integer <int32> >= 1 Inbound call routing priority. If two or more endpoints have the same priority, calls will be routed to them using a round-robin strategy. | ||||||
port | integer <int32> [ 1 .. 65535 ] Default: 5060 The port of the SIP endpoint. | ||||||
id | string The ID of the SIP endpoint. | ||||||
sipTrunkId | string The ID of the SIP trunk to which the endpoint is assigned. | ||||||
transport | string Default: "UDP" The transport protocol of the SIP endpoint.
| ||||||
enabled | boolean Default: true Sets whether the SIP endpoint is enabled or not. | ||||||
createTime | string <date-time> The date and time that the SIP endpoint was created. | ||||||
updateTime | string <date-time> The date and time that the SIP endpoint was last modified. |
{- "address": "127.0.0.1",
- "name": "Acme Endpoint",
- "priority": 1
}
{- "address": "127.0.0.1",
- "port": 5060,
- "id": "string",
- "sipTrunkId": "bbc55c4c-fe25-11ec-8482-d2e74e85a66f",
- "name": "Acme Endpoint",
- "transport": "UDP",
- "priority": 1,
- "enabled": true,
- "createTime": "2022-01-01T00:00:00Z",
- "updateTime": "2022-01-01T00:00:00Z"
}
Country permissions are used to control which countries can be dialed from a specific SIP trunk. You can view, update, and remove country permissions. For beta, only US, CA and wild card are supported. Please note that these permissions are not per trunk but rather they are per project/account. In the future Sinch may extend these permissions to other voice and messaging products. If you are using sub-projects you can use the same country permissions for all sub-projects. You can also specify different country permissions for each sub-project that will override the parent country permissions.
Fetches the list of country permissions.
The list of countries available
Array of objects (CountryPermission) | |||||||||||
Array
|
{- "countryPermissions": [
- {
- "isoCode": "US",
- "name": "United States/Canada",
- "continent": "North America",
- "countryDialingCodes": [
- [
- "+1"
]
], - "enabled": true
}
]
}
Provides the ability to enable and disable multiple country permissions at once.
Include the countries you want to be enabled. Anything not included will be disabled.
The list of countries enabled
Array of objects (CountryPermission) | |||||||||||
Array
|
{ }
{- "countryPermissions": [
- {
- "isoCode": "US",
- "name": "United States/Canada",
- "continent": "North America",
- "countryDialingCodes": [
- [
- "+1"
]
], - "enabled": true
}
]
}
Fetches the requested country permission.
The returned country permission
enabled required | boolean Default: true If the country is enabled or not. When this is enabled regular numbers can be dialed from the account. |
isoCode | string <= 2 characters The ISO code of the country |
name | string Country name in english |
continent | string Continent of the country |
countryDialingCodes | Array of strings The country calling codes as an array, most countries have only one but some have multiple like the San Marino, China, and a few others. |
{- "isoCode": "US",
- "name": "United States/Canada",
- "continent": "North America",
- "countryDialingCodes": [
- [
- "+1"
]
], - "enabled": true
}
Update the requested country permission.
The updated country permission
enabled required | boolean Default: true If the country is enabled or not. When this is enabled regular numbers can be dialed from the account. |
isoCode | string <= 2 characters The ISO code of the country |
name | string Country name in english |
continent | string Continent of the country |
countryDialingCodes | Array of strings The country calling codes as an array, most countries have only one but some have multiple like the San Marino, China, and a few others. |
{- "enabled": true
}
{- "isoCode": "US",
- "name": "United States/Canada",
- "continent": "North America",
- "countryDialingCodes": [
- [
- "+1"
]
], - "enabled": true
}
The /phoneNumbers
endpoint has operations that allow you to assign and remove phone numbers from SIP trunks.
Get all phone numbers. You can filter and sort the phone numbers returned with paging.
filter | string A query string to filter the results by. |
sipTrunkId | integer <int64> >= 0 The ID of the SIP trunk to search for. |
page | integer Default: 1 The page you want to fetch, can set to 1 for first page, or omitted for first page |
pageSize | integer [ 1 .. 500 ] Default: 500 The size of each page to fetch |
sort | Array of arrays An array setting the sorting criteria in the format of |
A successful response is an array containing phone numbers.
{- "totalItems": 10000,
- "pageNumber": 1,
- "pageSize": 500,
- "phoneNumbers": [
- {
- "id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
- "sipTrunkId": "5RTRZ3NDEKTSV4RRFFQ69G5EWS",
- "phoneNumber": "+15551239898",
- "countryCode": "US",
- "createTime": "2022-01-01T00:00:00Z",
- "updateTime": "2022-01-01T00:00:00Z"
}
]
}
Search for an Elastic SIP Trunk-enabled phone number by the e.164 number.
A successful response.
id | string The ID of the phone number. |
sipTrunkId | string The ID of the SIP trunk to which the phone number is assigned. |
phoneNumber | string (PhoneNumber) A Sinch phone number on your account and configured for Elastic SIP Trunking. |
countryCode | string The country code of the phone number in ISO 3166-1 alpha-2 format. |
createTime | string <date-time> The date and time that the number was assigned to the SIP trunk. |
updateTime | string <date-time> The date and time that the phone number was last modified. |
{- "id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
- "sipTrunkId": "5RTRZ3NDEKTSV4RRFFQ69G5EWS",
- "phoneNumber": "+15551239898",
- "countryCode": "US",
- "createTime": "2022-01-01T00:00:00Z",
- "updateTime": "2022-01-01T00:00:00Z"
}
The /calls
endpoint has operations that allow you to retrieve call history and details about calls made or received using EST.
Find calls by query parameters.
from | string <phonenumber> A phone number that you want to use to filter results. You can pass a partial number to get all calls sent to numbers that start with the number you passed. | ||||||||||||
to | string <phonenumber> Only include calls made to this number or address. You can pass a partial number to get all calls sent to numbers that start with the number you passed. | ||||||||||||
trunkId | string Only include calls made from this trunk. | ||||||||||||
createTime | string Default: "now-24h" Filter calls based on Defaults to 24 hours Internal notes If a customer submits = and not <> we should add min and max for the date range psueodo sql
but if they submit < or > we should just use the value they submitted and parse it a complete date Example: createTime=2021-02-01T23:59:59+0600 | ||||||||||||
createTimeStart | string Filters calls based on the time that the call was created. Example: createTimeStart=2021-02-01T23:59:59+0600 | ||||||||||||
createTimeEnd | string Filters calls based on the time that the call ended. Example: createTimeEnd=2021-02-01T23:59:59+0600 | ||||||||||||
callResult | string (CallResult) only include calls by on the callResult(s), example callResult=COMPLETED will return all calls which have completed normally.
Example: callResult=COMPLETED | ||||||||||||
fromCountryCode | string Filters calls based on the country in which the call originated. Example: fromCountryCode=US | ||||||||||||
toCountryCode | string Filters calls based on the country of the call destination. Example: toCountryCode=US | ||||||||||||
emergencyOnly | string Filters calls based on whether the call was an emergency call or not.
Example: emergencyOnly=false | ||||||||||||
direction | string only include calls by on the direction(s), example direction=INBOUND,OUTBOUND will return all calls that are inbound or outbound.
| ||||||||||||
page | string The page you want to fetch | ||||||||||||
pageSize | integer [ 1 .. 500 ] The maximum number of items to return per request. The default is 100 and the maximum is 500. If you need to export larger amounts and pagination is not suitable for you can use the Export function in the dashboard. |
Call result response
{- "calls": [
- {
- "callId": "string",
- "to": "string",
- "from": "+14155553434",
- "direction": "INBOUND",
- "answerTime": "2021-11-01T23:26:50Z",
- "endTime": "2021-11-01T23:29:50Z",
- "durationSeconds": 45,
- "callResult": "COMPLETED",
- "pricePerMinute": {
- "currencyCode": "USD",
- "amount": "0.0040"
}, - "billingDurationSeconds": 60,
- "price": {
- "currencyCode": "USD",
- "amount": "0.0040"
}, - "createTime": "2021-11-01T23:20:50Z",
- "projectId": "string",
- "trunkId": "dFeDe67-09d5-49d5-b469-e1fc2cb163c7"
}
], - "totalItems": 10000,
- "pageNumber": 1,
- "pageSize": 500
}
The Access Control List (ACL) endpoint has operations that allow you to create, view, update, and remove ACLs. You use ACLs to control which IP addresses can send traffic to your SIP trunk. You can create multiple ACLs and assign them to multiple SIP trunks. In order to make outbound calls you need to have at least one ACL set up.
List all access control lists for the project.
{- "accessControlLists": [
- {
- "name": "My Access Control List",
- "projectId": "3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47",
- "enabled": true,
- "id": "01HA2E80QCBX185VVP21PJG9CT",
- "createTime": "2023-09-11T15:37:30",
- "updateTime": "2023-09-11T15:38:14",
- "ipRanges": [
- {
- "description": "Location 1",
- "ipAddress": "54.172.60.0",
- "range": 30,
- "projectId": "3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47",
- "accessControlListId": "01HA2E80QCBX185VVP21PJG9CT",
- "id": "01HA2E80QMJS5G7MD576GJQD2X",
- "createTime": "2023-09-11T15:37:30",
- "updateTime": ""
}, - {
- "description": "Location 2",
- "ipAddress": "54.244.51.0",
- "range": 30,
- "projectId": "3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47",
- "accessControlListId": "01HA2E80QCBX185VVP21PJG9CT",
- "id": "01HA2E98KCZ1CNN0JP22F4JF3T",
- "createTime": "2023-09-11T15:38:11",
- "updateTime": ""
}
]
}, - {
- "name": "My ACL 2",
- "projectId": "3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47",
- "enabled": true,
- "id": "01H7ZSW728SHB9984CDGFV37RM",
- "createTime": "2023-08-16T18:31:39",
- "updateTime": "2023-08-25T07:51:40",
- "ipRanges": [
- {
- "description": "Location 1",
- "ipAddress": "137.192.80.69",
- "range": 32,
- "projectId": "3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47",
- "accessControlListId": "01H8Y95DBJT31F104PWFVV9H8B",
- "id": "01H8Y95DBSPQAN4MD4298TY05Y",
- "createTime": "2023-08-28T14:36:02",
- "updateTime": "2023-09-05T10:45:53"
}, - {
- "description": "Location 2",
- "ipAddress": "137.192.78.69",
- "range": 32,
- "projectId": "3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47",
- "accessControlListId": "01H8Y95DBJT31F104PWFVV9H8B",
- "id": "01H8YC0JTSXXVPBECC289QZG0J",
- "createTime": "2023-08-28T15:25:50",
- "updateTime": "2023-09-05T07:59:07"
}, - {
- "description": "Location 3",
- "ipAddress": "20.20.20.20",
- "range": 24,
- "projectId": "3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47",
- "accessControlListId": "01H8Y95DBJT31F104PWFVV9H8B",
- "id": "01HA1ZPH6E2BTSG0MFM38BRYF6",
- "createTime": "2023-09-11T11:23:17",
- "updateTime": ""
}
]
}
], - "pageNumber": "1",
- "pageSize": 500,
- "totalItems": 2
}
Create an access control list entry with at least one IP address or IP range.
name required | string Your name for the access control list entry. |
required | Array of objects (IpRange) non-empty The associated IP ranges. When creating you need to submit at least one IP range. |
enabled | boolean Default: true Whether the access control list entry is enabled. You can use this to disable an list temporarily without deleting it. |
The list of access control list entries
name required | string Your name for the access control list entry. |
required | Array of objects (IpRange) non-empty The associated IP ranges. When creating you need to submit at least one IP range. |
id | string The ID of the access control list entry. |
enabled | boolean Default: true Whether the access control list entry is enabled. You can use this to disable an list temporarily without deleting it. |
trunks | Array of strings The associated SIP trunks ID. |
createTime | string <date-time> The time the call was created. |
updateTime | string <date-time> The time the call was created. |
projectId | string The ID of the project. |
Create a new access control list.
{- "name": "My new ACL",
- "enabled": true,
- "ipRanges": [
- {
- "description": "Location 1",
- "ipAddress": "15.15.15.15",
- "range": 20
}
]
}
The newly created access control list.
{- "name": "My new ACL",
- "projectId": "3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47",
- "enabled": true,
- "id": "01HA9BRJW4J3QE4WBKVC337V4E",
- "createTime": "2023-09-14T08:08:48.264185988",
- "updateTime": "null,",
- "ipRanges": [
- {
- "description": "Location 1",
- "ipAddress": "15.15.15.15",
- "range": 20,
- "projectId": "3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47",
- "accessControlListId": "01HA9BRJW4J3QE4WBKVC337V4E",
- "id": "01HA9BRJYR9Q7ZBDYMXHVWT8S8",
- "createTime": "2023-09-14T08:08:48.346874339",
- "updateTime": ""
}
]
}
Create an access control list entry with at least one IP address or IP range.
The list of access control list entries
name required | string Your name for the access control list entry. |
required | Array of objects (IpRange) non-empty The associated IP ranges. When creating you need to submit at least one IP range. |
id | string The ID of the access control list entry. |
enabled | boolean Default: true Whether the access control list entry is enabled. You can use this to disable an list temporarily without deleting it. |
trunks | Array of strings The associated SIP trunks ID. |
createTime | string <date-time> The time the call was created. |
updateTime | string <date-time> The time the call was created. |
projectId | string The ID of the project. |
Update an access control list.
{- "name": "Test Prague 5",
- "enabled": false
}
The updated access control list.
{- "name": "Test Prague 5",
- "projectId": "3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47",
- "enabled": false,
- "id": "01HA9BRJW4J3QE4WBKVC337V4E",
- "createTime": "2023-09-14T08:08:48",
- "updateTime": "2023-09-14T08:10:10.187513334",
- "ipRanges": [
- {
- "description": "Hradcany",
- "ipAddress": "15.15.15.15",
- "range": 20,
- "projectId": "3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47",
- "accessControlListId": "01HA9BRJW4J3QE4WBKVC337V4E",
- "id": "01HA9BRJYR9Q7ZBDYMXHVWT8S8",
- "createTime": "2023-09-14T08:08:48",
- "updateTime": ""
}
]
}
Returns a list of all trunks which use the specified access control list.
The list of trunks which use the access control list.
{- "trunks": [
- {
- "id": "",
- "hostName": "acme-domain-1",
- "topLevelDomain": ".elastic-sip.sinch.com",
- "domain": "acme-domain-1.elastic-sip.sinch.com",
- "name": "Acme Trunk",
- "callsPerSecond": 100,
- "enableCallerName": true,
- "createTime": "2022-01-01T00:00:00Z",
- "updateTime": "2022-01-01T00:00:00Z",
- "projectId": "1bf62742-7b84-4666-9cbe-8e5734fd57d0"
}
], - "totalItems": 10000,
- "pageNumber": 1,
- "pageSize": 500
}
Add an IP range to an access control list entry.
description | string A description of the IP range. |
ipAddress | string The start of the IP range. |
range | integer Default: 32 A range, also known as a CIDR, represents the number of leading bits that define the network portion of an IP address in CIDR notation. The range is specified after a slash (/) at the end of the IP address. The remaining bits define specific hosts within the network.
|
The list of IP ranges
id | string The ID of the IP range. |
description | string A description of the IP range. |
ipAddress | string The start of the IP range. |
range | integer Default: 32 A range, also known as a CIDR, represents the number of leading bits that define the network portion of an IP address in CIDR notation. The range is specified after a slash (/) at the end of the IP address. The remaining bits define specific hosts within the network.
|
createTime | string <date-time> The time the call was created. |
updateTime | string <date-time> The time the call was created. |
projectId | string The ID of the project. |
accessControlListId | string The ID of the access control list. |
Request to add an IP range to an access control list.
{- "description": "IP range name",
- "ipAddress": "11.12.13.14",
- "range": 27
}
The added IP range.
{- "description": "IP range name",
- "ipAddress": "11.12.13.14",
- "range": 27,
- "projectId": "3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47",
- "accessControlListId": "01H8Y95DBJT31F104PWFVV9H8B",
- "id": "01HA9BYAH3J5TFDGK62991YYWC",
- "createTime": "2023-09-14T08:11:56.324855024",
- "updateTime": ""
}
Get all IP ranges for an access control list entry.
{- "ipRanges": [
- {
- "id": "string",
- "description": "West wing of office",
- "ipAddress": "10.0.1.1",
- "range": 32,
- "createTime": "2021-11-01T23:20:50Z",
- "updateTime": "2021-11-01T23:20:50Z",
- "projectId": "string",
- "accessControlListId": "string"
}
], - "totalItems": 10000,
- "pageNumber": 1,
- "pageSize": 500
}
Update an IP range to an access control list entry.
description | string A description of the IP range. |
ipAddress | string The start of the IP range. |
range | integer Default: 32 A range, also known as a CIDR, represents the number of leading bits that define the network portion of an IP address in CIDR notation. The range is specified after a slash (/) at the end of the IP address. The remaining bits define specific hosts within the network.
|
The updated IP range.
id | string The ID of the IP range. |
description | string A description of the IP range. |
ipAddress | string The start of the IP range. |
range | integer Default: 32 A range, also known as a CIDR, represents the number of leading bits that define the network portion of an IP address in CIDR notation. The range is specified after a slash (/) at the end of the IP address. The remaining bits define specific hosts within the network.
|
createTime | string <date-time> The time the call was created. |
updateTime | string <date-time> The time the call was created. |
projectId | string The ID of the project. |
accessControlListId | string The ID of the access control list. |
Request to update an IP range for an access control list.
{- "ipAddress": "11.12.13.14",
- "range": 27
}
The updated access control list.
{- "name": "Test Prague 5",
- "projectId": "3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47",
- "enabled": false,
- "id": "01HA9BRJW4J3QE4WBKVC337V4E",
- "createTime": "2023-09-14T08:08:48",
- "updateTime": "2023-09-14T08:10:10.187513334",
- "ipRanges": [
- {
- "description": "Hradcany",
- "ipAddress": "15.15.15.15",
- "range": 20,
- "projectId": "3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47",
- "accessControlListId": "01HA9BRJW4J3QE4WBKVC337V4E",
- "id": "01HA9BRJYR9Q7ZBDYMXHVWT8S8",
- "createTime": "2023-09-14T08:08:48",
- "updateTime": ""
}
]
}
Request to add access control lists to a trunk.
{- "accessControlListIds": [
- "01HA2E80QCBX185VVP21PJG9CT",
- "01H8Y95DBJT31F104PWFVV9H8B"
]
}
The access control lists added to a trunk.
{- "accessControlListIds": [
- "01HA2E80QCBX185VVP21PJG9CT",
- "01H8Y95DBJT31F104PWFVV9H8B"
]
}
Get all access control list entries for a trunk.
The list of access control list entries
All access control lists assigned to a trunk.
{- "accessControlListIds": [
- "01HA2E80QCBX185VVP21PJG9CT"
], - "pageNumber": 1,
- "pageSize": 1000,
- "totalItems": 1
}
Update the list of access control list entries for a trunk.
[- "01GNZ9MXEZ4K6S8GB7RW063VAN",
- "01GNZ9MXEZ4K6S8GB7RW063VAN"
]
{- "accessControlListIds": [
- "01GNZ9MXEZ4K6S8GB7RW063VAN",
- "01GNZ9MXEZ4K6S8GB7RW063VAN"
]
}
The Credential List endpoint has operations that allow you to view credential lists. You use credential lists to easily configure which users are allowed to make calls on a trunk.
Returns a list of all the trunks which use the specified credential list.
{- "trunks": [
- {
- "id": "",
- "hostName": "acme-domain-1",
- "topLevelDomain": ".elastic-sip.sinch.com",
- "domain": "acme-domain-1.elastic-sip.sinch.com",
- "name": "Acme Trunk",
- "callsPerSecond": 100,
- "enableCallerName": true,
- "createTime": "2022-01-01T00:00:00Z",
- "updateTime": "2022-01-01T00:00:00Z",
- "projectId": "1bf62742-7b84-4666-9cbe-8e5734fd57d0"
}
], - "totalItems": 10000,
- "pageNumber": 1,
- "pageSize": 500
}
Update the list of credential list entries for a trunk.
[- "01GNZ9MXEZ4K6S8GB7RW063VAN",
- "01GNZ9MXEZ4K6S8GB7RW063VAN"
]
{- "credentialListIds": [
- "01GNZ9MXEZ4K6S8GB7RW063VAN",
- "01GNZ9MXEZ4K6S8GB7RW063VAN"
]
}
The type
will give you a general idea of why the operation failed, whereas the errorCode
describes the issue in more detail. Below we list the Error codes for the API
An error response. The code
field is a unique identifier for the error. The message
field is a human-readable description of the error.
code | integer <int32> HTTP status code or error code |
status | string Response status name. |
message | string A developer-facing error message |
Array of objects (ErrorDetail) Details of the errors |
{- "code": 400,
- "status": "INVALID_ARGUMENT",
- "message": "Bad request.",
- "details": [
- {
- "type": "BadRequest",
- "fieldViolations": [
- {
- "field": "to",
- "description": "Phone number was not in the expected format."
}
]
}
]
}