Sessions and content
Follow a session's events in order, read private interaction content through an audited read, and erase everything stored about a subject.
A session is every event that carries the same session ID: a chat conversation, a support thread, a multi-step agent job. The session timeline puts those events in source-time order across traces, so you can follow a user’s whole conversation rather than one request.
axonpush separates metadata (what happened, when, how long, which model)
from content (prompts, completions, tool arguments, payloads). Metadata is
readable with observe:read. Content is only returned through an explicit,
audited read.
Give events a session ID
axonpush reads the session ID from the first of these span or event attributes
that is set: gen_ai.conversation.id, session.id, sessionId, thread_id.
Set one of them on every span in the conversation. With OpenTelemetry:
span.set_attribute("session.id", conversation_id)In the dashboard
Open a trace that carries a session ID and click Conversation. The session page shows:
- Conversation: the agent runs in the session, in order, with their messages when content is available.
- Timeline: every event in the session ordered by source time, 100 per page. A Collection gap badge marks a recorded capture gap.
- Interaction: the selected event. Its content is loaded on demand, and the read is audited. Open trace jumps to the event’s trace. Content that came from the archive carries a From archive badge.
Only organisation owners and admins can read content in the dashboard. Other members see the timeline and metadata only.
Read a session timeline
GET /telemetry/sessions/{sessionId} returns the session’s events ordered by
time. It never returns content: every event has contentState: "not_loaded"
and no attributes or payload.
curl -s "https://api.axonpush.xyz/telemetry/sessions/$SESSION_ID?environmentId=prod&limit=100" \
-H "X-API-Key: $AXONPUSH_API_KEY"The SDK helpers for sessions, content reads and erasure ship in the next SDK release. Until then, call the HTTP API as shown on this page.
| Parameter | Notes |
|---|---|
appId | Restrict to one app |
environmentId | Environment slug or ID |
limit | Default 100, max 500 |
cursor | nextCursor from the previous page. Preferred. |
offset | Legacy paging, max 100,000. Cannot be combined with cursor. |
replayOnly | Only events whose operation name is browser.replay |
Read an event’s content
GET /telemetry/events/{eventId}/content returns one event with its payload and
attributes. This is the only API that returns a single event’s raw content, and
every successful read is recorded with the reader’s identity before the content
is returned. If the read cannot be recorded, the request fails with 503
instead of returning unaudited content.
curl -s "https://api.axonpush.xyz/telemetry/events/$EVENT_ID/content" \
-H "X-API-Key: $AXONPUSH_CONTENT_KEY"contentState tells you what you got:
| Value | Meaning |
|---|---|
available | The payload is in the response |
absent | The event was stored without a payload |
unavailable | A payload exists but could not be loaded |
expired | The event has passed retention |
restricted | You are not allowed to read content (returned on trace reads) |
not_loaded | Metadata-only response (timelines and event search) |
When the hot row has expired but the archive still holds the event, the read
falls back to the archive and the event carries origin: "archive". A busy
archive answers 503 with Retry-After, and deleted history answers 410.
Who can read content
| Caller | telemetry.content and trace span content | Replay events |
|---|---|---|
| Dashboard owner or admin | Yes | Yes |
| Dashboard member | No | No |
API key with content:read | Yes | Needs replay:read as well |
API key without content:read | 403 content:read required | No |
“Replay events” are events whose operation name contains replay. Grant
content:read only to keys that need raw content, and keep it off keys you
hand to coding agents for routine investigation. See
API keys.
Sentry Session Replay is not ingested. Replay items in a Sentry envelope are
dropped and counted as unsupported in ingest outcomes.
replayOnly and replay:read only apply to replay events you send yourself.
Erase a subject
DELETE /telemetry/subjects/{subjectType}/{subjectId}?appId=... erases what
axonpush holds about one person or other subject within an app, and blocks
new events about that subject from being stored afterwards.
An event belongs to a subject when its attributes contain
telemetry.subjects with that type and ID, or, for subjectType=user, when
its user ID matches. Declare subjects when you send data:
{ "telemetry.subjects": { "user": "u_123", "customer": "acme" } }curl -s -X DELETE "https://api.axonpush.xyz/telemetry/subjects/user/u_123?appId=$APP_ID&environmentId=prod" \
-H "X-API-Key: $AXONPUSH_ERASE_KEY"What erasure does, in one transaction:
- Records a tombstone for the subject in that app (and environment, if given). Later ingest of an event that names the subject is refused, including delayed retries and replays.
- Strips content, attributes, trace, session and user fields from matching stored events and expires them, so they disappear from every read and from exports.
- Removes the subject’s references from the archive index, and revokes the archive keys for the subject where the deployment’s key authority supports it.
The response is {"status": "accepted", "erased": 500, "more": true}:
erased is how many stored events this call scrubbed and more says whether
any remain. Object deletion then completes in the background through the
normal retention job.
Things to know:
appIdis required unless the API key is bound to an app. OmitenvironmentIdto erase across all environments of the app.- One call scrubs up to 500 stored events. The first call already hides the
rest from reads; call again until
moreisfalseto scrub them all. The call is idempotent. - Legal holds are checked in the same transaction, and a hold can block the erasure. See Audit.
- API keys need the
content:erasescope, and credentials limited by scoped access grants cannot erase. In a dashboard session, only owners and admins can erase. - There is no erase button in the dashboard. Use the API, an SDK or the MCP
tool
telemetry_erase.
Related
- Traces, where the session link starts
- Archived traces
- Audit, access log, legal holds and evidence
- API:
telemetry.timeline,telemetry.content,telemetry.erase - MCP tools:
telemetry_timeline,telemetry_content,telemetry_erase