Get caller ID
This request returns the external caller ID of the user. This is the phone number that is transmitted to the called party.
Xelion selects the caller ID as follow:
-
If anonymous calling is set (see Phone Settings) then no caller ID is transmitted to the called party. The caller_id API call response is still giving the last selected caller id.
-
Else, if the user external caller ID is set then that ID is used. The caller_id API call response is returning this caller id.
-
Else, the default caller ID of the selected trunk is used. The caller_id API call response is returning NULL or empty.
Resource
GET /me/phone/caller_id
Parameters
None
Payload
None
Response
Object Response < string >
Context
Authorization |
User |
Example
Request
GET https://xelion.nl/api/v1/master/me/phone/caller_id
Response
{
"object": "0141632641",
"links": [
{
"rel": "self",
"href": "http://www.xelion.nl/api/v1/master/me/phone/caller_id",
"method": "GET"
}
]
}