Get Next Agent Information
    • Dark
      Light
    • PDF

    Get Next Agent Information

    • Dark
      Light
    • PDF

    Article summary

    Get
    /api/v1/livechat/agent.next/{token}

    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. To get the token value, call the Get Rooms endpoint to retrieve the details of all rooms.

    Path parameters
    token
    stringRequired

    The visitor token.

    Responses
    200

    OK

    Success Example
    {
      "agent": {
        "_id": "7Gm3PoFCJWTCJ68XR",
        "emails": [
          {
            "address": "[email protected]",
            "verified": true
          }
        ],
        "name": "Livechat Agent",
        "username": "livechat.agent"
      },
      "success": true
    }
    Expand All
    object
    agent
    object
    _id
    string
    emails
    Array of object
    object
    address
    string
    verified
    boolean
    name
    string
    username
    string
    success
    boolean

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.