Organization traces
List agent sessions, most recently active first unless sort says otherwise.
Enter your API key here (sent as Otari-Key header).
050What to order by. Latency runs from a session's start to its last activity.
last_activityPossible values: The direction of sort.
descPossible values: Only sessions in this workspace. Narrows the caller's scope; never widens it.
Sessions active at or after this instant (ISO 8601).
Sessions started before this instant (ISO 8601).
Owning users.
API keys.
Sessions with an LLM call recorded under any of these model ids (exact match).
Agent harnesses.
Only sessions with, or without, an unrecovered error.
Part of a trace id, session name, harness or user id, in any case.
Successful Response
Validation Error
GET /api/v1/organizations/me/traces HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"has_more": true,
"items": [
{
"api_key_id": "text",
"cost": 1,
"error_count": 1,
"harness": "text",
"input_tokens": 1,
"last_activity_at": "2026-01-01T00:00:00.000Z",
"name": "text",
"output_tokens": 1,
"session_source": "client",
"span_count": 1,
"started_at": "2026-01-01T00:00:00.000Z",
"step_count": 1,
"trace_id": "text",
"user_id": "text",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000"
}
]
}The organization's owners' break-glass openings, newest first. Owners only.
Enter your API key here (sent as Otari-Key header).
050Successful Response
Validation Error
GET /api/v1/organizations/me/traces/audit/break-glass HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"has_more": true,
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"kind": "organization",
"organization_id": "123e4567-e89b-12d3-a456-426614174000",
"read_at": "2026-01-01T00:00:00.000Z",
"reader_email": "text",
"reader_user_id": "123e4567-e89b-12d3-a456-426614174000",
"reason": "text",
"reference": "text",
"session_user_id": "text",
"trace_id": "text",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000"
}
]
}Count the agent sessions that match.
Enter your API key here (sent as Otari-Key header).
Only sessions in this workspace. Narrows the caller's scope; never widens it.
Sessions active at or after this instant (ISO 8601).
Sessions started before this instant (ISO 8601).
Owning users.
API keys.
Sessions with an LLM call recorded under any of these model ids (exact match).
Agent harnesses.
Only sessions with, or without, an unrecovered error.
Part of a trace id, session name, harness or user id, in any case.
Successful Response
Validation Error
GET /api/v1/organizations/me/traces/count HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"count": 1
}The session a gateway request was traced into, by the Otari-Request-ID it was sent.
The usage log's request_group_id is that id, so a request log row opens its session here. A request outside the scope, or with no trace stored, is a 404.
Enter your API key here (sent as Otari-Key header).
Successful Response
One agent session as the session list shows it.
USD, a snapshot of the usage rows' cost. Usage stays the billing record.
Spans that ended in an error no fallback recovered, including tools' errors, which do not fail the session.
The agent or client that sent the requests, from its User-Agent.
What grouped the session's requests: the client's own id, its agent harness's id, an OTLP conversation id, or nothing (a single request).
Requests the gateway served in the session.
Validation Error
GET /api/v1/organizations/me/traces/requests/{request_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"api_key_id": "text",
"cost": 1,
"error_count": 1,
"harness": "text",
"input_tokens": 1,
"last_activity_at": "2026-01-01T00:00:00.000Z",
"name": "text",
"output_tokens": 1,
"session_source": "client",
"span_count": 1,
"started_at": "2026-01-01T00:00:00.000Z",
"step_count": 1,
"trace_id": "text",
"user_id": "text",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000"
}Count the sessions active in each bucket, split by whether they failed.
A session is active from its start to its last activity, so a long one counts in every bucket it ran through. Here start and end bound the buckets: a session that began before start or was still active at end counts in the buckets between them it overlaps. Buckets are aligned to their size in UTC and only the populated ones are returned. A session failed when it holds an unrecovered error other than a tool's. A tool's error goes back to the model, an MCP tool's included, so a session whose only errors are tools' counts as succeeded.
Enter your API key here (sent as Otari-Key header).
hourPossible values: Only sessions in this workspace. Narrows the caller's scope; never widens it.
Sessions active at or after this instant (ISO 8601).
Sessions started before this instant (ISO 8601).
Owning users.
API keys.
Sessions with an LLM call recorded under any of these model ids (exact match).
Agent harnesses.
Only sessions with, or without, an unrecovered error.
Part of a trace id, session name, harness or user id, in any case.
Successful Response
Validation Error
GET /api/v1/organizations/me/traces/series HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"bucket": "1m",
"points": [
{
"bucket": "text",
"failed": 1,
"succeeded": 1
}
]
}One agent session: its turns, and every span inside them.
A trace outside the scope is a 404. Without workspace_id, an id in more than one of the caller's workspaces is a 409 rather than a guess.
Enter your API key here (sent as Otari-Key header).
The workspace the trace is in, as its list entry names it.
Successful Response
How this read reached the session's content: 'owner' for its own user, 'share' through a share its user made, 'break_glass' for a recorded opening without one, 'none' otherwise.
nonePossible values: True when the session holds more spans than one read returns.
Validation Error
GET /api/v1/organizations/me/traces/{trace_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"content_access": "none",
"content_share": {
"active": true,
"audience": "organization_admins",
"created_at": "2026-01-01T00:00:00.000Z",
"id": "123e4567-e89b-12d3-a456-426614174000",
"note": "text",
"read_count": 0,
"reads": [
{
"read_at": "2026-01-01T00:00:00.000Z",
"reader_email": "text",
"reader_user_id": "123e4567-e89b-12d3-a456-426614174000"
}
],
"revoked_at": "2026-01-01T00:00:00.000Z"
},
"gates": [
{
"blocked": 1,
"enforcement": "required",
"flagged": 1,
"gate_id": "text",
"gate_type": "text",
"message": "text",
"origin": "repo",
"passed": 1,
"refused": 1,
"runs": [
"text"
],
"span_id": "text",
"undecided": 1
}
],
"spans": [
{
"approximate": true,
"attributes": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"cache_read_tokens": 1,
"cache_write_tokens": 1,
"content": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"content_private": false,
"context_window": 1,
"cost": 1,
"duration_ms": 1,
"end_time": "2026-01-01T00:00:00.000Z",
"error_class": "text",
"input_tokens": 1,
"kind": "text",
"model": "text",
"name": "text",
"opens_turn": true,
"operation": "text",
"origin": "gateway",
"otel_span_id": "text",
"otel_trace_id": "text",
"outcome": "ok",
"output_tokens": 1,
"parent_span_id": "text",
"provider": "text",
"reasoning_tokens": 1,
"recovered": true,
"request_id": "text",
"span_id": "text",
"start_time": "2026-01-01T00:00:00.000Z",
"tool_call_id": "text",
"tool_name": "text",
"tool_type": "text"
}
],
"state": "active",
"summary": {
"api_key_id": "text",
"cost": 1,
"error_count": 1,
"harness": "text",
"input_tokens": 1,
"last_activity_at": "2026-01-01T00:00:00.000Z",
"name": "text",
"output_tokens": 1,
"session_source": "client",
"span_count": 1,
"started_at": "2026-01-01T00:00:00.000Z",
"step_count": 1,
"trace_id": "text",
"user_id": "text",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000"
},
"tool_costs": [
{
"calling": 1,
"calls_sharing_request": 1,
"calls_sharing_result": 1,
"later_requests": 1,
"rereading": 1,
"result_tokens": 1,
"span_id": "text",
"subagent": 1,
"total": 1,
"writing": 1
}
],
"truncated": true,
"turns": [
{
"cache_read_tokens": 1,
"continued": true,
"cost": 1,
"ended_at": "2026-01-01T00:00:00.000Z",
"errors": 1,
"index": 1,
"input_tokens": 1,
"llm_calls": 1,
"output_tokens": 1,
"started_at": "2026-01-01T00:00:00.000Z",
"state": "active",
"step_ids": [
"text"
],
"tool_calls": 1
}
]
}Open a session's content without its owner's share, as an owner of the organization.
For an investigation the session's owner cannot be asked to share for, a member who left included. The opening is recorded with its reason before anything opens, and listed for every owner at GET .../audit/break-glass. The session's owner is not told.
Enter your API key here (sent as Otari-Key header).
The workspace the trace is in, as its list entry names it.
Why you are opening a session's content without its owner's share. Recorded with the opening.
Successful Response
How this read reached the session's content: 'owner' for its own user, 'share' through a share its user made, 'break_glass' for a recorded opening without one, 'none' otherwise.
nonePossible values: True when the session holds more spans than one read returns.
Validation Error
POST /api/v1/organizations/me/traces/{trace_id}/break-glass HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"reason": "text"
}{
"content_access": "none",
"content_share": {
"active": true,
"audience": "organization_admins",
"created_at": "2026-01-01T00:00:00.000Z",
"id": "123e4567-e89b-12d3-a456-426614174000",
"note": "text",
"read_count": 0,
"reads": [
{
"read_at": "2026-01-01T00:00:00.000Z",
"reader_email": "text",
"reader_user_id": "123e4567-e89b-12d3-a456-426614174000"
}
],
"revoked_at": "2026-01-01T00:00:00.000Z"
},
"gates": [
{
"blocked": 1,
"enforcement": "required",
"flagged": 1,
"gate_id": "text",
"gate_type": "text",
"message": "text",
"origin": "repo",
"passed": 1,
"refused": 1,
"runs": [
"text"
],
"span_id": "text",
"undecided": 1
}
],
"spans": [
{
"approximate": true,
"attributes": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"cache_read_tokens": 1,
"cache_write_tokens": 1,
"content": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"content_private": false,
"context_window": 1,
"cost": 1,
"duration_ms": 1,
"end_time": "2026-01-01T00:00:00.000Z",
"error_class": "text",
"input_tokens": 1,
"kind": "text",
"model": "text",
"name": "text",
"opens_turn": true,
"operation": "text",
"origin": "gateway",
"otel_span_id": "text",
"otel_trace_id": "text",
"outcome": "ok",
"output_tokens": 1,
"parent_span_id": "text",
"provider": "text",
"reasoning_tokens": 1,
"recovered": true,
"request_id": "text",
"span_id": "text",
"start_time": "2026-01-01T00:00:00.000Z",
"tool_call_id": "text",
"tool_name": "text",
"tool_type": "text"
}
],
"state": "active",
"summary": {
"api_key_id": "text",
"cost": 1,
"error_count": 1,
"harness": "text",
"input_tokens": 1,
"last_activity_at": "2026-01-01T00:00:00.000Z",
"name": "text",
"output_tokens": 1,
"session_source": "client",
"span_count": 1,
"started_at": "2026-01-01T00:00:00.000Z",
"step_count": 1,
"trace_id": "text",
"user_id": "text",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000"
},
"tool_costs": [
{
"calling": 1,
"calls_sharing_request": 1,
"calls_sharing_result": 1,
"later_requests": 1,
"rereading": 1,
"result_tokens": 1,
"span_id": "text",
"subagent": 1,
"total": 1,
"writing": 1
}
],
"truncated": true,
"turns": [
{
"cache_read_tokens": 1,
"continued": true,
"cost": 1,
"ended_at": "2026-01-01T00:00:00.000Z",
"errors": 1,
"index": 1,
"input_tokens": 1,
"llm_calls": 1,
"output_tokens": 1,
"started_at": "2026-01-01T00:00:00.000Z",
"state": "active",
"step_ids": [
"text"
],
"tool_calls": 1
}
]
}The shares one of your sessions has had, ended ones included, newest first, each with its newest reads.
Enter your API key here (sent as Otari-Key header).
The workspace the trace is in, as its list entry names it.
020Successful Response
More shares follow this page.
falseValidation Error
GET /api/v1/organizations/me/traces/{trace_id}/shares HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"has_more": false,
"items": [
{
"active": true,
"audience": "organization_admins",
"created_at": "2026-01-01T00:00:00.000Z",
"id": "123e4567-e89b-12d3-a456-426614174000",
"note": "text",
"read_count": 0,
"reads": [
{
"read_at": "2026-01-01T00:00:00.000Z",
"reader_email": "text",
"reader_user_id": "123e4567-e89b-12d3-a456-426614174000"
}
],
"revoked_at": "2026-01-01T00:00:00.000Z"
}
]
}Let the organization's admins, or the deployment's operator, read what one of your sessions was about.
A session's content is private to its own user. A share lets its audience read it until you end it or lose the workspace, and each read through it is recorded for you. Only the session's own user can share it.
Enter your API key here (sent as Otari-Key header).
The workspace the trace is in, as its list entry names it.
Let an audience read what one of your sessions was about.
Successful Response
A session's owner letting an audience read what it was about.
Whether it still lets its audience read.
Who may read: the organization's owners and admins, or the deployment's operator.
Why it was shared, in its owner's words.
How many reads it has had in all.
0When it ended: its owner ended it, or lost the workspace.
Validation Error
POST /api/v1/organizations/me/traces/{trace_id}/shares HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 48
{
"audience": "organization_admins",
"note": "text"
}{
"active": true,
"audience": "organization_admins",
"created_at": "2026-01-01T00:00:00.000Z",
"id": "123e4567-e89b-12d3-a456-426614174000",
"note": "text",
"read_count": 0,
"reads": [
{
"read_at": "2026-01-01T00:00:00.000Z",
"reader_email": "text",
"reader_user_id": "123e4567-e89b-12d3-a456-426614174000"
}
],
"revoked_at": "2026-01-01T00:00:00.000Z"
}Stop a share letting its audience read what your session was about.
Enter your API key here (sent as Otari-Key header).
The workspace the trace is in, as its list entry names it.
Successful Response
No content
Validation Error
DELETE /api/v1/organizations/me/traces/{trace_id}/shares/{share_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
No content
Every read through one share of your session, newest first, a page at a time.
Enter your API key here (sent as Otari-Key header).
The workspace the trace is in, as its list entry names it.
050Successful Response
More reads follow this page.
Validation Error
GET /api/v1/organizations/me/traces/{trace_id}/shares/{share_id}/reads HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"has_more": true,
"items": [
{
"read_at": "2026-01-01T00:00:00.000Z",
"reader_email": "text",
"reader_user_id": "123e4567-e89b-12d3-a456-426614174000"
}
]
}Last updated
Was this helpful?
