Skip to main content
GET
List log records
Each API key can export logs only for its own organization. See Export logs for start points, cursor handling, delivery guarantees, and polling examples.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your Writer API key. Each key can export logs only for its own organization.

Path Parameters

organizationId
integer<int64>
required

ID of the organization the API key belongs to.

Query Parameters

order
enum<string>
default:browse

tail reads the incremental stream in (inserted_at, id) order. browse reads a date window.

Available options:
browse,
tail
cursor
string

Opaque resume token from a prior x-next-cursor header. Tail only. Can't be combined with start_date.

start_date
string

ISO 8601 timestamp, epoch seconds, or epoch milliseconds. In tail mode, the backfill start; defaults to now. In browse mode, the window start; send it with end_date, or omit both to read the last 90 days. A date older than the retention window (90 days by default) returns 400.

end_date
string

ISO 8601 timestamp, epoch seconds, or epoch milliseconds. Browse window end; send it with start_date. Rejected when order=tail.

cursor_started_at_ms
integer<int64>

Browse-only continuation timestamp. Send together with cursor_log_id.

Required range: x >= 0
cursor_log_id
string

Browse-only continuation ID. Send together with cursor_started_at_ms.

limit
integer
default:100

Page size. Values above 1000 are reduced to 1000. With include_bodies=true, set limit to 50 or less; the default of 100 returns 400.

Required range: x >= 1
format
enum<string>
default:otlp

Response body shape.

Available options:
otlp,
native
signal
enum<string>
default:traces

OTLP only. traces returns resourceSpans; logs returns resourceLogs.

Available options:
traces,
logs
include_bodies
boolean
default:false

Request available prompt and response bodies for LLM calls. API-key callers receive unmasked bodies even when content masking is enabled in Control Center.

model
string[]

Filter by model. Repeat the parameter to pass more than one value.

created_by
string[]

Filter by user ID. Repeat the parameter to pass more than one value.

source
enum<string>[]

Filter by source. writer_agent is WRITER Agent. Repeat the parameter to pass more than one value.

Available options:
llm_gateway,
writer_agent,
other
provider
string

Filter by provider.

status
string

Filter by status.

finish_reason
string

Filter by finish reason.

guardrail_outcome
string

Filter by guardrail outcome.

Search metadata such as request, session, run, root-run, and user IDs, and model. Doesn't search prompt or response text.

Response

One page of log records. With format=native, the body is a result array and pagination object. With format=otlp, the body is an OTLP/JSON payload with resourceSpans or resourceLogs.

result
object[]
pagination
object