List RUM users

List a RUM application's signed-in users seen in a time range, most recently seen first. Needs a role with View users and groups under Applications.

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

URL parameters

application_id
required string

Query parameters

from
datetime
to
datetime
query
string
group_id
string
order_by
string
page
integer
per_page
DEFAULT 50 integer
team_id
string

Headers

Authorization
required string

Results are paginated

Use pagination.next and pagination.prev to move through pages or jump to a specific one using page and per_page. See Pagination.

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"
      }
    }
  ],
  "pagination": {
    "first": "https://errors.betterstack.com/api/v4/applications/123456/users?page=1",
    "last": "https://errors.betterstack.com/api/v4/applications/123456/users?page=1",
    "prev": null,
    "next": null,
    "total_count": 1
  }
}
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": {
    "order_by": "order_by must be one of last_seen, first_seen, error_count, session_count."
  }
}

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
pagination.first
string
pagination.last
string
pagination.prev
string or null
pagination.next
string or null
pagination.total_count
integer

Example cURL

List users
curl --request GET \
  --url "https://errors.betterstack.com/api/v4/applications/123456/users?order_by=error_count" \
  --header "Authorization: Bearer $TOKEN"