Skip to main content
GET
Get user activity grouped by endpoint

Authorizations

Authorization
string
header
required

API key as bearer token in Authorization header

Query Parameters

date
string

Filter by a single UTC date in the last 30 days (YYYY-MM-DD format).

Example:

"2025-08-24"

api_key_hash
string

Filter by API key hash (SHA-256 hex string, as returned by the keys API).

Example:

"abc123def456..."

user_id
string

Filter by org member user ID. Only applicable for organization accounts.

Example:

"user_abc123"

group_by
enum<string>

Set to 'workspace' to split each row per workspace and include workspace_id on every item. Omitted by default, in which case rows are aggregated across workspaces (by date, model, and endpoint) and workspace_id is not returned — preserving the historical response shape.

Available options:
workspace
Example:

"workspace"

workspace_id
string

Filter by workspace ID (UUID). Returns only activity attributed to that workspace. The workspace must belong to the authenticated account.

Example:

"550e8400-e29b-41d4-a716-446655440000"

Response

Returns user activity data grouped by endpoint

data
object[]
required

List of activity items