Documentation Index

Fetch the complete documentation index at: https://developer.rocket.chat/llms.txt

Use this file to discover all available pages before exploring further.

Get Visitor Information by ID

Prev Next
Get
/api/v1/livechat/visitors.info

Retrieve information for a Livechat visitor by ID.

Permission required: view-l-room

The response does not include the visitor token. To obtain a token, register or update the visitor using Register a New Livechat Visitor, which returns the token in the response.

The response may include externalIds when the visitor has been linked to an external system by an omnichannel app (e.g. WhatsApp BSUID). This field cannot be set through REST registration endpoints.

Changelog

Version Description
8.5.0 The token field is no longer returned in the response. Retrieve the token from the visitor registration endpoint instead.
8.4.0 Added externalIds field to the visitor response.
Header parameters
X-Auth-Token
stringRequired

The authToken of the authenticated user.

ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-Id
stringRequired

The userId of the authenticated user.

ExamplerbAXPnMktTFbNpwtJ
Query parameters
visitorId
stringRequired

The visitor ID.

Responses
200

OK

Success Example
{
  "visitor": {
    "_id": "6a22b1765528fa64dd29de70",
    "username": "guest-10",
    "status": "online",
    "ts": "2026-06-05T11:22:30.664Z",
    "_updatedAt": "2026-06-05T11:22:30.665Z",
    "name": "Postman Test Visitor",
    "phone": [
      {
        "phoneNumber": "+15551234567"
      }
    ],
    "visitorEmails": [
      {
        "address": "postman-test@example.com"
      }
    ]
  },
  "success": true
}
Expand All
object
visitor
object
_id
string
username
string
status
string
ts
string
_updatedAt
string
name
string
phone
Array of object
object
phoneNumber
string
visitorEmails
Array of object
object
address
string
department
string
externalIds
Array of object

Channel-specific external identifiers (e.g. WhatsApp BSUID). Set by omnichannel apps via apps-engine, not through this REST endpoint's request body.

object
appId
string

ID of the omnichannel app that registered this identifier.

entityId
string

External identifier value (e.g. Meta BSUID).

metadata
object

Optional app-specific metadata (e.g. WhatsApp username).

success
boolean
400

Bad Request

Example 1
{
  "success": false,
  "error": "must have required property 'visitorId' [invalid-params]",
  "errorType": "invalid-params"
}
Example 2
{
  "success": false,
  "error": "visitor-not-found"
}
object
success
boolean
error
string
errorType
string
401

Unauthorized

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

Forbidden

Permission Error
{
  "success": false,
  "error": "User does not have the permissions required for this action [error-unauthorized]"
}
Unauthorized
{
  "success": false,
  "error": "unauthorized"
}
object
success
boolean
error
string