List My Kimchi Content Events

Lists the same records as ListKimchiContentEvents, limited to the
caller's own requests: the requests whose API key owner (kimchi.user_id)
is the calling user. The request, filters, paging and the lookup by
requestId work as in ListKimchiContentEvents, except that the server
replaces castaiApiKeyOwnerIds with the caller's user ID. Other owner IDs
and inferUserFromApiKey therefore cannot widen the result, and a lookup
of another user's request returns no record. Only users can call this
method, also with their API keys; service accounts are refused, because
their requests belong to no person. Every role that can list LLM
requests can call it. Every page that returns at least one record is
written to the organization's audit log before the records are returned.

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

The ID of the organization.

Query Params
string

Required. The event type to export: "llm_request_content". The value
also names the block that holds the type-specific fields of each record.

string

The nextPageCursor of the previous page. Empty to start at startTime, or
at the organization's first record of the last 90 days when startTime is
not set. Must not be set together with requestId.

int32

Maximum number of items to return. Defaults to 1000, which is also the
maximum; larger values are lowered to 1000. Must not be negative. A page
also ends before the record that would take its text past about 15 MiB,
so it can hold fewer items while hasMore is true. It always holds at
least one record, also one that alone is larger.

string

Exact request ID lookup, the same ID as in ListLLMRequests. When set, the
time window is bypassed entirely and the response holds that one request,
or no record when it does not exist or does not match the other filters.
Must not be set together with cursor.

date-time

Start of the request-time window, inclusive. Without a cursor, reading
also starts here. Must be in the past.

date-time

End of the request-time window, inclusive. Reading stops one hour of
recording time after endTime, and hasMore is then false. A record
recorded again later than that is not returned. Until that hour has
passed, hasMore also turns false when reading reaches the records that
are not available yet; calling again later with nextPageCursor keeps
reading up to one hour after endTime. Without startTime, reading starts
at the organization's first record of the last 90 days, so a window that
ends before then returns no records: send startTime for older windows.
Must be after startTime.

castaiApiKeyIds
array of strings

Filter by API key IDs. Empty = all.

castaiApiKeyIds
models
array of strings

Filter by model names, the model that served the request. Empty = all
models.

models
providers
array of strings

Filter by provider types (e.g. "openai", "groq"). Empty = all providers.

providers
providerNames
array of strings

Filter by provider names (user-defined config aliases). Empty = all.

providerNames
agentSources
array of strings

Filter by agent sources (OTEL client identities, e.g. "claude-code", "pi"). Empty = all.

agentSources
castaiApiKeyOwnerTypes
array of strings

Filter by API key owner types ("serviceAccount" or "user"). Empty = all.

castaiApiKeyOwnerTypes
castaiApiKeyOwnerIds
array of strings

Filter by API key owner IDs: the user or service account that made the
request, reported as kimchi.user_id. Empty = all.

castaiApiKeyOwnerIds
teamIds
array of strings

Filter by team IDs. Empty = all.

teamIds
tags
array of strings

Filter by request tags. Each entry is "key" or "key:value". Empty = all.

tags
string
enum

How multiple tags entries are combined. UNSPECIFIED behaves like ALL.

Allowed:
statuses
array of strings

Filter by response status class. Empty = all statuses.

statuses
Allowed:
double

Minimum total price (USD), inclusive.

double

Maximum total price (USD), inclusive.

string

Minimum total tokens, inclusive.

string

Maximum total tokens, inclusive.

string
^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$

Minimum response duration, inclusive.

string
^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$

Maximum response duration, inclusive.

string

Filter by session ID, the client-provided session ID reported as
session.id. Requests made by a subagent carry their own session ID.

boolean

When true, filters results by the API key owner ID from the auth token.
The ID is added to the castaiApiKeyOwnerIds list.

Responses

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