List RUM groups

List a RUM application's user groups 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}/groups

URL parameters

application_id
required string

Query parameters

from
datetime
to
datetime
query
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": "456",
      "type": "rum_group",
      "attributes": {
        "application_id": "123456",
        "group_id": "456",
        "name": "Acme Inc.",
        "first_seen_at": "2026-11-10T08:12:44.000Z",
        "last_seen_at": "2026-11-23T17:03:56.000Z",
        "user_count": 12,
        "session_count": 40,
        "error_count": 7,
        "replay_count": 44,
        "users_url": "https://rum.betterstack.com/team/t12345/users#/?q=user.group_id%3D%22456%22&s=123456",
        "sessions_url": "https://rum.betterstack.com/team/t12345/sessions#/?q=user.group_id%3D%22456%22&s=123456"
      }
    }
  ],
  "pagination": {
    "first": "https://errors.betterstack.com/api/v4/applications/123456/groups?page=1",
    "last": "https://errors.betterstack.com/api/v4/applications/123456/groups?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, user_count, session_count."
  }
}

Response attributes

id
string
type
string
application_id
string
group_id
string or null
name
string or null
first_seen_at
datetime or null
last_seen_at
datetime or null
user_count
integer
session_count
integer
error_count
integer
replay_count
integer
users_url
string
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 groups
curl --request GET \
  --url "https://errors.betterstack.com/api/v4/applications/123456/groups?order_by=user_count" \
  --header "Authorization: Bearer $TOKEN"