User Tools

Site Tools


api:pbx:extension:calleridnumbers

API : PBX : Extension : Caller ID Numbers

Introduction

This request is used to get a list of phone numbers on PBX trunks that has been marked for sharing and may be used by any user as caller ID when making outbound calls.

Request

URL https://api.telecomx.dk/pbx/extension/calleridnumbers
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, defaults to users own customer.
v2 [optional] True for version 2 formatting with both number and name/username (if available).

Query examples

https://api.telecomx.dk/pbx/extension/calleridnumbers?v2=true
https://api.telecomx.dk/pbx/extension/calleridnumbers?customer=12345678901234567890ABCD

Response

JSON Array of numbers.

Example - standard

[
  '+4570305052',
  '+4570305050',
  '+4570305059'
]

Example - version 2

[
  { number: '+4570305052', name: 'Finance department' },
  { number: '+4570305050', name: 'Primary number' },
  { number: '+4570305059', name: 'Support' }
]

Errors

Error code Message Description
403 access_denied Insufficient access level
500 internal_error <Unspecified>
api/pbx/extension/calleridnumbers.txt · Last modified: 2025/08/18 11:21 by Per Møller

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki