Get Open Conversation of a Visitor
    • Dark
      Light
    • PDF

    Get Open Conversation of a Visitor

    • Dark
      Light
    • PDF

    Article summary

    Get
    /api/v1/livechat/visitor/{token}/room

    Retrieve open conversations associated with a particular visitor.

    Header parameters
    X-Auth-Token
    stringRequired

    The authToken of the authenticated user.

    ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
    X-User-Id
    stringRequired

    The userId of the authenticated user.

    ExamplerbAXPnMktTFbNpwtJ
    Path parameters
    token
    stringRequired

    The visitor token.

    Responses
    200
    Success Example
    {
      "rooms": [
        {
          "_id": "D2hej3mmvkwyB4HR6",
          "t": "l",
          "cl": false,
          "servedBy": {
            "_id": "XycfA5CetCPuEjqxw",
            "username": "kim.jane",
            "ts": "2021-07-18T11:50:38.822Z"
          }
        }
      ],
      "success": true
    }
    Expand All
    object
    rooms
    Array of object
    object
    _id
    string
    t
    string
    cl
    boolean
    servedBy
    object
    _id
    string
    username
    string
    ts
    string
    success
    boolean
    401

    Unauthorized

    Authorization Error
    {
      "status": "error",
      "message": "You must be logged in to do this."
    }
    object
    status
    string
    message
    string

    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.