Export trace data as JSONL, CSV, or OpenAI fine-tuning format. Results are streamed for large datasets. Supports cursor-based pagination for iterating through large result sets.
Your AgentMark API key. Create one in the dashboard under Settings > API Keys.
Example: Authorization: Bearer am_live_abc123
Your application ID. Found in the dashboard under Settings > General.
"app_abc123"
Export format.
jsonl, csv, openai Maximum rows per page.
1 <= x <= 2000If true, excludes Input, Output, OutputObject, and ToolCalls fields for smaller payloads.
Filter from this date (ISO 8601). Defaults to 30 days ago.
Filter to this date (ISO 8601). Defaults to now.
Filter by span type.
GENERATION, SPAN, EVENT, all Exact match on model name.
Filter by status code.
STATUS_CODE_UNSET, STATUS_CODE_OK, STATUS_CODE_ERROR Partial match on span name.
Filter traces where any score is greater than or equal to this value.
Filter traces where any score is less than or equal to this value.
Exact match on user ID.
Filter traces that contain this tag.
Metadata filter key. Must be used with metadata_value.
Metadata filter value. Must be used with metadata_key.
Cursor for pagination. Use the next_cursor value from the previous response's _export_meta.
Exported trace data. Format depends on the format parameter:
_export_meta objectNewline-delimited JSON. Each line is an ExportRow object.
The last line is an ExportMeta object with pagination info.
See the ExportRow and ExportMeta schemas below for the exact structure.