Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
46 lines (37 loc) · 2.3 KB

File metadata and controls

46 lines (37 loc) · 2.3 KB

Get Available Agent Information

Get information about the currently available agent.

HTTP MethodURLRequires Auth
GET/api/v1/omnichannel/agents/availableyes

Query Parameters (Optional)

Supports the #pagination parameters. Additional query parameters are as follows:

KeyData TypeDescription
querystring

Use the query operator to search for specific data.

For more information, see #query-and-fields

textstringThe response is the data that contains this text.
includeExtensionstring

The voice channel extension associated with the agent. If you don't enter any extension number, the endpoint returns a list of all agents who have not been assigned any extensions.

For information about extensions, see Associate agents with extensions in Rocket.Chat.

Example Call

{% code overflow="wrap" %}

curl --location 'http://localhost:3000/api/v1/omnichannel/agents/available' \
--header 'X-Auth-Token: Y97tM4GkYjgaH_fIO5dwBitQQvm3yp-AptYzGQZMX6e' \
--header 'X-User-Id: CkCPNcvsvCDfmWLqC' \
--data ''

{% endcode %}

Example Response

{
    "agent": {
        "_id": "XycfA5CetCPuEjqxw",
        "username": "test.agent",
        "name": "agent123",
        "status": "online",
        "statusLivechat": "online",
        "emails": [
            {
                "address": "agent123@rocket.chat",
                "verified": true
            }
        ],       
        "livechat": {
            "maxNumberSimultaneousChat": "5"
        }
    },
    "success": true
}