Get a RUM user

Get one signed-in user of a RUM application, with their activity in a time range.

GET https://errors.betterstack.com/api/v4/applications/{application_id}/users/{id}

URL parameters

application_id
required string
id
required string

Query parameters

from
datetime
to
datetime
team_id
string

Headers

Authorization
required string
200

Response body

{
  "data": {
    "id": "user_123",
    "type": "rum_user",
    "attributes": {
      "application_id": "123456",
      "name": "jane@example.com",
      "group_id": "456",
      "group_name": "Acme Inc.",
      "country": "Czechia",
      "city": "Prague",
      "referrer": "google",
      "utm": {
        "source": "newsletter",
        "campaign": "launch"
      },
      "first_seen_at": "2026-11-10T08:12:44.000Z",
      "last_seen_at": "2026-11-23T17:03:56.000Z",
      "error_count": 3,
      "session_count": 5,
      "sessions_url": "https://rum.betterstack.com/team/t12345/sessions#/?q=user.identifier%3D%22user_123%22&s=123456"
    }
  }
}
401

Response body

{
  "errors": "Invalid Team API token. How to find your Team API token: https://betterstack.com/docs/logs/api/getting-started/#obtaining-a-logtail-api-token"
}
403
404

Response body

{
  "errors": "Resource with the provided ID was not found"
}
422

Response body

{
  "errors": "Sorry, some values are incorrect",
  "invalid_values": {
    "to": "to must be after from."
  }
}

Response attributes

id
string
type
string
application_id
string
name
string or null
group_id
string or null
group_name
string or null
country
string or null
city
string or null
referrer
string or null
utm
object
first_seen_at
datetime or null
last_seen_at
datetime or null
error_count
integer
session_count
integer
sessions_url
string

Example cURL

Get a user
curl --request GET \
  --url https://errors.betterstack.com/api/v4/applications/123456/users/user_123 \
  --header "Authorization: Bearer $TOKEN"