API Reference
Log In
API Reference

Export the AI transaction log as CSV

Downloads every AI transaction that matches the filters as a CSV file, oldest first, one row per metered call. It takes the same filters as the list operation, so the window is any startDate and endDate pair at full ISO 8601 precision.

Columns, in order: Operation Type, Request Time (ISO 8601, UTC), Transaction ID, Trace Type, Trace ID, Result (the stop reason), AI Model, Provider, Organization, Subscriber Email, Subscriber ID, Product, Agent, Environment, Squad ID, Squad Name, Squad Role, Task Type, Input Tokens, Output Tokens, Reasoning Tokens, Cached Tokens, Total Tokens, Request Duration (ms), Total Cost. Total Cost is in USD. A cell that starts with =, +, -, @, a tab or a carriage return is prefixed with an apostrophe so spreadsheets do not read it as a formula.

Limits: at most 17,000 transactions and at most 10,400,000 bytes (about 10 MB) of CSV per file. A request over either limit is rejected with 400 instead of returning a shortened file. Narrow the window or add filters.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string

Filter start date/time in ISO 8601 format.

string

Filter end date/time in ISO 8601 format.

int64
0 to 60000

Minimum time to first token (in milliseconds).

int64
0 to 60000

Maximum time to first token (in milliseconds).

int64
0 to 300000

Minimum request duration (in milliseconds).

int64
0 to 300000

Maximum request duration (in milliseconds).

int64
0 to 10000

Minimum mediation latency (in milliseconds).

int64
0 to 10000

Maximum mediation latency (in milliseconds).

int64
0 to 10000000

Minimum input tokens.

int64
0 to 10000000

Maximum input tokens.

int64
0 to 10000000

Minimum output tokens.

int64
0 to 10000000

Maximum output tokens.

int64
0 to 5000000

Minimum reasoning tokens.

int64
0 to 5000000

Maximum reasoning tokens.

int64
0 to 5000000

Minimum cached tokens.

int64
0 to 5000000

Maximum cached tokens.

int64
0 to 20000000

Minimum total tokens.

int64
0 to 20000000

Maximum total tokens.

number
0 to 99999.99

Minimum input cost ($).

number
0 to 99999.99

Maximum input cost ($).

number
0 to 99999.99

Minimum output cost ($).

number
0 to 99999.99

Maximum output cost ($).

number
0 to 999999.99

Minimum total cost ($).

number
0 to 999999.99

Maximum total cost ($).

string
length between 1 and 255

Exact transaction ID match.

transactionIds
array of strings
length between 1 and 100

Any of these exact transaction IDs, at most 100. The Transaction Log's ClickHouse search sends the page's ids here so the rows render from Postgres.

transactionIds

Any of these exact transaction IDs, at most 100. The Transaction Log's ClickHouse search sends the page's ids here so the rows render from Postgres.

string
length between 1 and 255

Exact trace ID match.

string
length between 1 and 255

Filter by trace type. Use 'unknown' for metrics without traceType.

string
length between 1 and 255

Filter by trace name.

string
length between 1 and 255

Filter by organization name.

string

Filter by subscriber email.

string
length between 1 and 255

Filter by subscriber ID.

string
length between 1 and 255

Filter by subscription ID.

string
length between 1 and 255

Filter by product ID.

string
length between 1 and 255

Filter by agent name.

string
length between 1 and 255

Filter by AI provider.

string
length between 1 and 255

Filter by AI model.

string
length between 1 and 255

Filter by model source.

string
length between 1 and 255

Filter by task type.

double
0 to 2

Minimum temperature value.

double
0 to 2

Maximum temperature value.

string
enum

Filter by stop reason.

string
length between 1 and 255

Filter by error reason.

number
0 to 1

Minimum response quality score.

number
0 to 1

Maximum response quality score.

string
length between 1 and 255

Filter by credential name.

string
length between 1 and 255

Filter by system fingerprint.

string
length between 1 and 255

Filter by environment (exact match).

boolean

Whether to include coding assistant metrics (e.g. Claude Code, Gemini CLI). When true, usage from all coding assistants is included, regardless of your team's pricing settings and of includeCodingAssistantProviders. When false (default), only coding assistants your team pays for per API call are included, and the rest are treated as seat subscriptions and left out.

includeCodingAssistantProviders
array of strings

Coding assistants you pay for per API call, not by seat. Their usage counts as spend. Others are treated as seat subscriptions and left out of cost totals. Accepted values: ClaudeCode, ClaudeCowork, CursorIde, GeminiCli, CodexCli, GithubCopilot. The values are validated, but the list does not change the results: the assistants that count as spend come from your team's coding assistant pricing settings. Set includeCodingAssistants to true to include all coding assistants regardless of those settings.

includeCodingAssistantProviders
string
required

ID of the team that owns this data.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
*/*