Professional Documents
Culture Documents
https://192.168.1.100/api/v1/pbx/auth/ POST
login
Payload :
{
"username": "admin",
"password": "admin"
}
Response :
{
"code": 0,
"message": "OK",
"data": "Bearer
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VyTmFtZSI6ImFkbWluIiwiSUQiOjEs
IlJvbGUiOiJhZG1pbiIsIkV4dGVuc2lvbiI6IiIsImV4cCI6MTcwMzM3MTQ2NH0.G5YND-
nSNLmPZPAQCfI_iOxwhSO0MJhrTBFkWG1LB3I"
}
Note :
Authentication Request
End Point : Method :
https://192.168.1.100/api/v1/pbx/auth/currentuser GET
Payload :
Bearer
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VyTmFtZSI6ImFkbWluIiwiSUQiOjEsIlJv
bGUiOiJhZG1pbiIsIkV4dGVuc2lvbiI6IiIsImV4cCI6MTcwMzM3MTQ2NH0.G5YND-
nSNLmPZPAQCfI_iOxwhSO0MJhrTBFkWG1LB3I
Response :
{
"code": 0,
"message": "OK",
"data": {
"id": 1,
"username": "admin",
"password": "admin",
"role": "admin",
"userExtension": "",
"panelQueueNumber": ""
}
}
Note :
Get User info by bearer token
End Point : Method :
GET
https://192.168.1.100/api/v1/pbx/systeminfo/pjsip
Payload :
Response :
{"code":0,"message":"OK","data":{"available":0,"total":0}}
Note :
Response :
{"code":0,"message":"OK","data":{"available":0,"total":0}}
Note :
Response :
{
"code": 0,
"message": "OK",
"data": [
{
"exten": "100",
"name": "100",
"content": {
"newMsg": "",
"dnd": "",
"wakeup": null
},
"roundtripUsec": "",
"addr": "",
"uri": "",
"statusText": "Unavailable"
}
]
}
Note :
End Point : Method :
GET
https://192.168.1.100/api/v1/pbx/systeminfo/trunk-
info
Payload :
Response :
{
"code": 0,
"message": "OK",
"data": {
"analogOut": "1:1:FXO:RED:Idle:001\n2:2:FXO:RED:Idle:002",
"digitalOut": "",
"iaxOut": "",
"sipOut": "test:client:192.168.1.25:nan:Unregistered"
}
}
Note :
Payload :
Response :
{"code":0,"message":"OK","data":{"available":0,"total":0}}
Note :
Apply Changes
Payload :
Response :
Note :