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.
| 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. |
|
https://api.telecomx.dk/pbx/extension/directnumbers?customer=12345678901234567890ABCD https://api.telecomx.dk/pbx/extension/directnumbers?extension=12345678901234567890AAAA
JSON array of phone numbers in E.164 format.
[ '+4570305052', '+4570305050', '+4570305059' ]
| Error code | Message | Description |
|---|---|---|
| 403 | access_denied | Insufficient access level |
| 404 | extension | Not found |
| 500 | internal_error | <Unspecified> |