Get Next Agent Information
Get information about the next available agent for an incoming conversation. This endpoint returns the available agents who have not been assigned to any chat yet.
HTTP Method | URL | Requires Auth |
---|---|---|
GET | /api/v1/livechat/agent.next/:token | no |
Key | Example value | Description |
---|---|---|
token * | iNKE8a6k6cjbqWhWd | The visitor token . |
curl --location 'http://localhost:3000/api/v1/livechat/agent.next/54fc5544030bcecda053311cb6b98920bdf953f242c129d7b8065000b1f9b2e9'
{
"agent": {
"_id": "7Gm3PoFCJWTCJ68XR",
"emails": [
{
"address": "[email protected]",
"verified": true
}
],
"name": "Livechat Agent",
"username": "livechat.agent"
},
"success": true
}
Last modified 26d ago