PBX API : POST /Device/login

To login device, make an HTTP POST request with admin basic authorization, resource URI:

https://<PBX>/api/v1/Device/login

POST Parameters

Required Parameters

NameDescription
userDestination user for login, example: 100
macmac address of the phone where we want to change user, example 9c7514006666

Response

TypeExample
Success{"type":"result","result":"Login Successful"}
Error{"type":"error","reason":"IP address not found in DB","result":null}

Examples

CLI CURL
curl -X POST -u admin:pass --url "https://{PBX}/api/v1/Device/login"  --data-urlencode "user=100" --data-urlencode "mac=9c7514006666"