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 Users Presence

Prev Next
Get
/api/v1/users.presence

Get presence of multiple workspace users. You can filter by date and user IDs. If the Presence_broadcast_disabled setting is true, the endpoint returns an empty array. You can find this setting under Manage > Workspace > Settings > Troubleshoot.

Changelog

Version Description
8.6.0 Added statusSource and statusExpiresAt to returned user objects.
8.5.0 Restored comma-separated ids query parameter support.
1.1.0 Added
Header parameters
X-User-Id
stringRequired

The authenticated user ID.

ExamplerbAXPnMktTFbNpwtJ
X-Auth-Token
stringRequired

The authenticated user token.

ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
Query parameters
from
string

The last date when the status was changed. Format: ISO 8601 datetime. Timezone, milliseconds and seconds are optional. If you don't pass from parameter, you'll get a list of all users' presence and the result will have a full field with value true .

Example2019-05-22T12:11:45.392Z
ids
string

The user IDs whose presence you want. Provide one or more IDs using any of these formats:

  • ?ids=userId1 — single ID
  • ?ids=userId1,userId2 — comma-separated string
  • ?ids=userId1&ids=userId2 — repeated query parameter
ExampleJ4sWseCgs8eEnWvhE,BsNr28znDkG8aeo7W
Responses
200
Success Example
{
  "users": [
    {
      "_id": "rocket.cat",
      "name": "Rocket.Cat",
      "username": "rocket.cat",
      "status": "online",
      "utcOffset": 0,
      "statusText": "In a call",
      "statusSource": "internal",
      "avatarETag": "5BB9B5ny5DkKdrwkq"
    },
    {
      "_id": "rocketchat.internal.admin.test",
      "name": "RocketChat Internal Admin Test",
      "username": "rocketchat.internal.admin.test",
      "status": "online",
      "utcOffset": -2,
      "statusText": "Focus time",
      "statusSource": "manual",
      "statusExpiresAt": "2026-06-22T18:00:00.000Z",
      "avatarETag": "iEbEm4bTT327NJjXt"
    }
  ],
  "full": true,
  "success": true
}
Expand All
object
users
Array of object
object
_id
string
name
string
username
string
status
string
utcOffset
integer
statusText
string

The user's status message.

statusSource
string

The claim that set the user's current status. One of internal, manual, or external (priority order: internal > manual > external). Omitted when the user has no recorded status source.

statusExpiresAt
string

Date as an ISO 8601 string indicating when the user's current status expires. Omitted when the status has no expiration.

avatarETag
string
full
boolean
success
boolean
401

Unauthorized

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