Information about linked SIP accounts
Contents
Requests
| HTTP verb | Endpoint | Description |
|---|---|---|
|
|
|
|
|
|
|
|
For all requests:
Domain type: worker
Getting the list of linked SIP accounts
Returns the list of SIP accounts attached to the authorized user.
The output is identical to the content of the 'sip_accounts' field in the response to the '/rest/v1/user/info' REST request.
Using the identifiers of the listed accounts, URLs can be formed for REST requests to entities associated with the corresponding SIP accounts.
For example, '/rest/v1/user/sip/accounts/c7e163c6-8b5e-cb6e-7bf4-441a912ff0b9', '/rest/v1/user/sip/accounts/c7e163c6-8b5e-cb6e-7bf4-441a912ff0b9/parallel'.
Getting SIP account data
Returns selected properties of the SIP account specified by identifier and attached to the authorized user.
Request
Example request
GET /rest/v1/user/sip/accounts/c7e163c6-8b5e-cb6e-7bf4-441a912ff0b9 HTTP/1.1
Response
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": "c7e163c6-8b5e-cb6e-7bf4-441a912ff0b9",
"login": "sip3",
"phonenumber": "13",
"name": "SIP3-{D}-{A}",
"reg": true
"devices": [],
"lic": {
"devices": 123456789
},
"opts": {
"ap_device_model": "",
"ap_devices": [],
"ap_mac_address": "",
"calltimesec": 30,
"dlgtimesec": 0,
"parallel": [
"101"
],
"trunks": -1
},
"ext": {
"k": "abc"
}
}