Log in a Queue

Through this interface, a dynamic agent can log in a queue.

Endpoint

POST /api/v1.1.0/queue/add_dynamicagent?token={token}

Request Parameters

Name Importance Type Description
queueid Required Int The queue number.
extid Required Int The dynamic agent's number.
password Optional Int The password of the queue.

Examples

Request Example
Add the extension 1000 as a dynamic agent to the queue 6700, and the password is 6700123.
POST /api/v1.1.0/queue/add_dynamicagent?token=1e3b3ebb6a974cb42ed31de5413df52d HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: api.yeastarcloud.com
{
    "queueid": "6700",
    "extid": "1000",
    "password": "6700123"
}
Response Example
HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
{
    "status": "Success"
}