Get Person ECBN Available Phone Numbers
List standard numbers that are available to be assigned as a person's emergency callback number. These numbers are associated with the location of the person specified in the request URL, can be active or inactive, and are assigned to an owning entity.
The available numbers APIs help identify candidate numbers and their owning entities to simplify the assignment or association of these numbers to members or features.
Retrieving this list requires a full, read-only or location administrator auth token with a scope of spark-admin:telephony_config_read
.
URI Parameters
Unique identifier for the person.
Query Parameters
List numbers for this organization.
Limit the number of phone numbers returned to this maximum count. The default is 2000.
Start at the zero-based offset in the list of matching phone numbers. The default is 0.
Filter phone numbers based on the comma-separated list provided in the phoneNumber
array.
Return the list of phone numbers that are owned by the given ownerName
. Maximum length is 255.
Response Properties
Array of phone numbers.
A unique identifier for the phone number.
Phone number's state.
Phone number is in the active state.
Phone number is in the inactive state.
If true
, the phone number is used as a location CLID.
If true
, the phone number is a toll-free number.
The telephony type for the number.
The object is a PSTN number.
If true
, the phone number is a service number; otherwise, it is a standard number. Service numbers are high-utilization or high-concurrency PSTN phone numbers that are neither mobile nor toll-free.
Unique identifier of the owner to which phone number is assigned.
Type of the PSTN phone number's owner.
Phone number's owner is a workspace.
Phone number's owner is a person.
Phone number's owner is a Virtual Profile.
First name of the phone number's owner. This field will be present only when the owner type
is PEOPLE
or VIRTUAL_LINE
.
Last name of the phone number's owner. This field will be present only when the owner type
is PEOPLE
or VIRTUAL_LINE
.
Display name of the phone number's owner. This field will be present only when the owner type
is PLACE
.
Response Codes
The list below describes the common success and error responses you should expect from the API:
Code | Status | Description |
---|---|---|
200 | OK | Successful request with body content. |
201 | Created | The request has succeeded and has led to the creation of a resource. |
202 | Accepted | The request has been accepted for processing. |
204 | No Content | Successful request without body content. |
400 | Bad Request | The request was invalid or cannot be otherwise served. An accompanying error message will explain further. |
401 | Unauthorized | Authentication credentials were missing or incorrect. |
403 | Forbidden | The request is understood, but it has been refused or access is not allowed. |
404 | Not Found | The URI requested is invalid or the resource requested, such as a user, does not exist. Also returned when the requested format is not supported by the requested method. |
405 | Method Not Allowed | The request was made to a resource using an HTTP request method that is not supported. |
409 | Conflict | The request could not be processed because it conflicts with some established rule of the system. For example, a person may not be added to a room more than once. |
410 | Gone | The requested resource is no longer available. |
415 | Unsupported Media Type | The request was made to a resource without specifying a media type or used a media type that is not supported. |
423 | Locked | The requested resource is temporarily unavailable. A Retry-After header may be present that specifies how many seconds you need to wait before attempting the request again. |
428 | Precondition Required | File(s) cannot be scanned for malware and need to be force downloaded. |
429 | Too Many Requests | Too many requests have been sent in a given amount of time and the request has been rate limited. A Retry-After header should be present that specifies how many seconds you need to wait before a successful request can be made. |
500 | Internal Server Error | Something went wrong on the server. If the issue persists, feel free to contact the Webex Developer Support team. |
502 | Bad Gateway | The server received an invalid response from an upstream server while processing the request. Try again later. |
503 | Service Unavailable | Server is overloaded with requests. Try again later. |
504 | Gateway Timeout | An upstream server failed to respond on time. If your query uses max parameter, please try to reduce it. |
Header
Query Parameters
- orgIdstringList numbers for this organization.
- maxnumberLimit the number of phone numbers returned to this maximum count. The default is 2000.
- startnumberStart at the zero-based offset in the list of matching phone numbers. The default is 0.
- phoneNumberarray[string]Filter phone numbers based on the comma-separated list provided in the `phoneNumber` array.
- ownerNamestringReturn the list of phone numbers that are owned by the given `ownerName`. Maximum length is 255.
{ "phoneNumbers": [ { "phoneNumber": "+12056350001", "state": "ACTIVE", "isMainNumber": false, "telephonyType": "PSTN_NUMBER", "tollFreeNumber": false, "isServiceNumber": false, "owner": { "id": "Y2lzY29zcGFyazovL3VzL1BFT1BMRS9jODhiZGIwNC1jZjU5LTRjMjMtODQ4OC00NTNhOTE3ZDFlMjk", "type": "PEOPLE", "firstName": "Test", "lastName": "Person" } }, { "phoneNumber": "+12056350002", "extension": "1235", "state": "ACTIVE", "isMainNumber": true, "telephonyType": "PSTN_NUMBER", "tollFreeNumber": false, "isServiceNumber": false, "owner": { "id": "Y2lzY29zcGFyazovL3VybjpURUFNOnVzLWVhc3QtMV9pbnQxMy9QTEFDRS9iMzRmZjk3ZC1jMDkzLTRiYTMtOTEyMC0yMDc1M2U3Yjg3YjA=", "type": "PLACE", "displayName": "TestWorkSpace" } }, { "phoneNumber": "+12056350003", "extension": "1236", "state": "INACTIVE", "isMainNumber": false, "telephonyType": "PSTN_NUMBER", "tollFreeNumber": true, "isServiceNumber": false, "owner": { "id": "Y2lzY29zcGFyazovL3VzL1ZJUlRVQUxfTElORS82NWQ3MmYwNS00NDYzLTQxYzktYjI0Ni01MDhkMDM2YzJhOTE", "type": "VIRTUAL_LINE", "displayName": "Test VL" } } ] }