Phone Numbers

Get all phone numbers

Changed on

Get all phone numbers. You can filter and sort the phone numbers returned with paging.

get/v1/projects/{projectId}/phoneNumbers

Request

  • Base URL
    https://elastic-trunking.api.sinch.com
  • URL
    https://elastic-trunking.api.sinch.com/v1/projects/{projectId}/phoneNumbers
  • Auth
    • HTTP basic
    • or OAuth 2
      Client credentials
      Token URL: https://auth.sinch.com/oauth2/token

Response

A successful response is an array containing phone numbers.

totalItemsinteger

Total size of the result.

pageNumberstring

The token to be used for listing the next page

sizeinteger

The number of items per page. default is 1000

Example response

{
  "totalItems": 10000,
  "pageNumber": "1",
  "size": 2000,
  "phoneNumbers": [
    {
      "id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
      "sipTrunkId": "5RTRZ3NDEKTSV4RRFFQ69G5EWS",
      "phoneNumber": "+15551239898",
      "countryCode": "US",
      "createTime": "2022-01-01T00:00:00Z",
      "updateTime": "2022-01-01T00:00:00Z"
    }
  ]
}

Changes