Phone Numbers

Find a specific phone number

Changed on

Search for an Elastic SIP Trunk-enabled phone number by the e.164 number.

get/v1/projects/{projectId}/phoneNumbers/{phoneNumber}

Request

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

Response

A successful response.

idstring

The ID of the phone number.

sipTrunkIdstring

The ID of the SIP trunk to which the phone number is assigned.

phoneNumberstring

A phone number in E.164 format, including the leading '+'.

countryCodestring

The country code of the phone number in ISO 3166-1 alpha-2 format.

createTimestring date-time

The date and time that the number was assigned to the SIP trunk.

updateTimestring date-time

The date and time that the phone number was last modified.

Example response

{
  "id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
  "sipTrunkId": "5RTRZ3NDEKTSV4RRFFQ69G5EWS",
  "phoneNumber": "+15551239898",
  "countryCode": "US",
  "createTime": "2022-01-01T00:00:00Z",
  "updateTime": "2022-01-01T00:00:00Z"
}

Changes