Skip to Content
Docs

Get user activity logs with pagination

POST
/api/get_user_logs

Get user activity logs with pagination. Merges chat answers (user_logs), request errors (stack_logs) and scheduled agent runs (schedule_runs) into one timeline. Runs are ordered by their start time; ones still going (answers, scheduled, workflow and webhook runs) carry running: true until their finished row replaces them. Finished chat rows carry 'labels', the analytics label keys at ANALYTICS_FILTER_MIN_PROBABILITY or better, and 'tag_names' names the tags on the page.

Personal access token scope: analytics:read.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Request Body

application/json
  1. body
api_key_id?string

API Key ID

conversation_id?string

Only rows of this conversation (chat turns and scheduled runs)

date_from?string

Rows at or after this ISO 8601 moment

date_to?string

Rows before this ISO 8601 moment

event_type?string

Filter by event source

Value in"chat""schedule""webhook""workflow""system""search""graph"
feedback?string

Only chat turns rated this way

Value in"like""dislike"
label?string

Only chat turns the decision model labelled this way at ANALYTICS_FILTER_MIN_PROBABILITY or better: one of docs_gap, not_answered, negative_reaction, negative_sentiment, frustrated, asks_human, tag:<id> (a topic of the turn's conversation that can overlap) or topic:<name> (the turn's own topic)

level?string

Filter by log level

Value in"info""error""warning"
page?integer

Page number for pagination

Default1
page_size?integer

Number of logs per page

Default10
passthrough?

Only chat turns whose passthrough values match every given key, compared as text, e.g. {"user_id": "42"}

search?string

Substring filter on the summary

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/get_user_logs' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response200
Empty