api:pbx:extension:directnumbers
Table of Contents
API : PBX : Dialplan : Direct numbers
Introduction
This request is used to get a list of numbers that can be used as direct inbound numbers on extensions.
The list will return numbers on Trunks that are marked for PBX usage and which has not been assigned to other extensions or a Dialplan trunk.
Request
| URL | https://api.telecomx.dk/pbx/extension/directnumbers | |
|---|---|---|
| Method | GET | |
| Access level | PERSONAL, VIEWER, MANAGER or OWNER if user belongs to the customer. RESELLER if customer belongs to the reseller. ADMIN. |
|
| Query | customer | [optional] Id of customer to lookup numbers for (24 char hex), defaults to user self. |
| extension | [optional] Id of extension to lookup numbers for. |
|
Query examples
https://api.telecomx.dk/pbx/extension/directnumbers?customer=12345678901234567890ABCD https://api.telecomx.dk/pbx/extension/directnumbers?extension=12345678901234567890AAAA
Response
JSON array of phone numbers in E.164 format.
Example
[ '+4570305052', '+4570305050', '+4570305059' ]
Errors
| Error code | Message | Description |
|---|---|---|
| 403 | access_denied | Insufficient access level |
| 404 | extension | Not found |
| 500 | internal_error | <Unspecified> |
api/pbx/extension/directnumbers.txt · Last modified: 2018/08/20 10:36 by Per Møller