ConsumptionEvent
One event of the feed, discriminated by kind: a call (cluster-data, external-api) or a job's compute charge (compute).
One event of the feed, discriminated by kind: a call (cluster-data, external-api) or a job's compute charge (compute).
Possible values: [cluster-data, external-api, compute]
- cluster-data
- external-api
- compute
Stable action ID (the root call-log row), use it to deduplicate and the after cursor to resume.
The caller's x-request-id when one was sent, otherwise a platform-generated UUID.
When the action was made (UTC).
user objectrequired
The member of the consumer organization who made the call. On a sponsored event (sponsored is set) the caller is a user of the client organization, so id is a pseudonym and email and description are null.
id objectrequired
The user / service-account ID, the same id as in GET /organizations/{organization_id}/users. On a sponsored event, a pseudonym user- plus ten hexadecimal characters, stable for one person and one sponsor, not linkable across sponsors.
- integer
- string
null on a sponsored event.
The service account's description, null for a human.
The organization the event is listed for and whose ledger the cost comes from. For a sponsored call it is the sponsor, the client organization is in sponsored.organizationId.
What was done: the cluster-data operation (list-datasets, get-dataset, keyword-search, vector-search, vector-search-entries, get-entry-content, get-entry-documents, get-entry-file) or, for external-api, <METHOD> <path>.
Where the call came from: the REST API, an MCP server, or a workflow worker.
Possible values: [api, mcp, worker]
The MCP session the call belongs to, when the MCP client sent one. Always null on a sponsored event, as are jobId and entryRefs. On a sponsored event resultCount is null for a search across datasets, and datasets and dataTokens cover only the sponsor's own datasets.
The workflow job that made the call, null outside a workflow.
true for a 2xx answer. A failed action is charged only when the failure is the caller's (error origin client), any other failure carries cost: []. Sum cost[].total per currency, never count events.
HTTP status the upstream answered with.
Data tokens of the whole response (the envelope of a fan-out, which already covers every dataset).
How many distinct entries (articles) a search returned, how many datasets a listing returned, 1 for a single read. null on actions recorded before this field existed and on failed actions.
Up to 50 composite references (cluster:dataset:entry) of the entries returned, in response order. resultCount stays exact when more than 50 came back.
datasets object[]required
The datasets present in the results the call returned: for a search, the datasets with at least one hit in the page of results served (bounded by its limit), not every dataset searched or matched. [] for a dataset listing, a search that returned nothing, and an external-api action.
Platform dataset ID.
Dataset name at read time.
Data tokens served from this dataset for this action.
List price of those tokens in the dataset's currency, 0 for an unpriced dataset. The amount actually charged is in cost.
cost object[]required
The itemized cost of one metered call, one CostLine per currency actually charged to the ledger, sorted by currency code. An empty array means metering ran and charged nothing.
ISO 4217 currency code this line is denominated in.
Possible values: Value must match regular expression ^[A-Z]{3}$
Royalty charged to the dataset or endpoint provider in this currency, 0 when none fired.
Platform fee charged in this currency, 0 when none fired.
royalty plus alienFee, in this currency.
sponsored objectrequired
Present and non-null only for a client's call made through a sponsored group, listed on the sponsor's feed. null for the organization's own calls.
- ConsumptionEventSponsored
- null
null once the group is deleted.
The client organization, null when the sponsor's fee names none.
null when the client organization is unknown.
Stable action ID (the root call-log row), use it to deduplicate and the after cursor to resume.
The caller's x-request-id when one was sent, otherwise a platform-generated UUID.
When the action was made (UTC).
user objectrequired
The member of the consumer organization who made the call. On a sponsored event (sponsored is set) the caller is a user of the client organization, so id is a pseudonym and email and description are null.
id objectrequired
The user / service-account ID, the same id as in GET /organizations/{organization_id}/users. On a sponsored event, a pseudonym user- plus ten hexadecimal characters, stable for one person and one sponsor, not linkable across sponsors.
- integer
- string
null on a sponsored event.
The service account's description, null for a human.
The organization the event is listed for and whose ledger the cost comes from. For a sponsored call it is the sponsor, the client organization is in sponsored.organizationId.
What was done: the cluster-data operation (list-datasets, get-dataset, keyword-search, vector-search, vector-search-entries, get-entry-content, get-entry-documents, get-entry-file) or, for external-api, <METHOD> <path>.
Where the call came from: the REST API, an MCP server, or a workflow worker.
Possible values: [api, mcp, worker]
The MCP session the call belongs to, when the MCP client sent one. Always null on a sponsored event, as are jobId and entryRefs. On a sponsored event resultCount is null for a search across datasets, and datasets and dataTokens cover only the sponsor's own datasets.
The workflow job that made the call, null outside a workflow.
true for a 2xx answer. A failed action is charged only when the failure is the caller's (error origin client), any other failure carries cost: []. Sum cost[].total per currency, never count events.
HTTP status the upstream answered with.
Data tokens of the whole response (the envelope of a fan-out, which already covers every dataset).
How many distinct entries (articles) a search returned, how many datasets a listing returned, 1 for a single read. null on actions recorded before this field existed and on failed actions.
Up to 50 composite references (cluster:dataset:entry) of the entries returned, in response order. resultCount stays exact when more than 50 came back.
datasets object[]required
The datasets present in the results the call returned: for a search, the datasets with at least one hit in the page of results served (bounded by its limit), not every dataset searched or matched. [] for a dataset listing, a search that returned nothing, and an external-api action.
Platform dataset ID.
Dataset name at read time.
Data tokens served from this dataset for this action.
List price of those tokens in the dataset's currency, 0 for an unpriced dataset. The amount actually charged is in cost.
cost object[]required
The itemized cost of one metered call, one CostLine per currency actually charged to the ledger, sorted by currency code. An empty array means metering ran and charged nothing.
ISO 4217 currency code this line is denominated in.
Possible values: Value must match regular expression ^[A-Z]{3}$
Royalty charged to the dataset or endpoint provider in this currency, 0 when none fired.
Platform fee charged in this currency, 0 when none fired.
royalty plus alienFee, in this currency.
sponsored objectrequired
Present and non-null only for a client's call made through a sponsored group, listed on the sponsor's feed. null for the organization's own calls.
- ConsumptionEventSponsored
- null
null once the group is deleted.
The client organization, null when the sponsor's fee names none.
null when the client organization is unknown.
compute:<jobId>, stable, one per job and organization.
Always null, a job is not an HTTP request.
When the charge was booked, at the job's terminal transition (UTC). It is the instant invoices read.
user objectrequired
Who ran the job: the member, a pseudonym (no email or description) when the creator is not a member of the organization (a public agent run through the Responses API), null once the job is gone.
- ConsumptionEventUser
- null
id objectrequired
The user / service-account ID, the same id as in GET /organizations/{organization_id}/users. On a sponsored event, a pseudonym user- plus ten hexadecimal characters, stable for one person and one sponsor, not linkable across sponsors.
- integer
- string
null on a sponsored event.
The service account's description, null for a human.
The organization charged.
processing for a document processing job, workflow for any other job, deleted once the job is gone.
Possible values: [processing, workflow, deleted]
Always worker, jobs run on workers.
Possible values: [worker]
Always null.
The job charged, also when it has since been deleted.
true when the job completed, a failed job is charged when its failure is the caller's.
Always null.
Always 0, no data was read.
Always null.
Always null.
datasets object[]required
Always [].
Platform dataset ID.
Dataset name at read time.
Data tokens served from this dataset for this action.
List price of those tokens in the dataset's currency, 0 for an unpriced dataset. The amount actually charged is in cost.
cost object[]required
One ComputeCostLine, in the currency the job was charged (USD for some compute).
ISO 4217 currency code this line is denominated in.
Possible values: Value must match regular expression ^[A-Z]{3}$
Compute charged in this currency.
Equal to compute, so a sum of total per currency covers every kind of event.
Always null, compute is never sponsored.
{
"id": "string",
"requestId": "string",
"calledAt": "2024-07-29T15:51:28.071Z",
"user": {
"id": 0,
"email": "user@example.com",
"description": "string"
},
"organizationId": 0,
"kind": "cluster-data",
"action": "string",
"sourceType": "api",
"mcpSessionId": "string",
"jobId": 0,
"success": true,
"responseStatus": 0,
"dataTokens": 0,
"resultCount": 0,
"entryRefs": "Unknown Type: array,null",
"datasets": [
{
"id": 0,
"name": "string",
"dataTokens": 0,
"listPrice": 0
}
],
"cost": [
{
"currency": "string",
"royalty": 0,
"alienFee": 0,
"total": 0
}
],
"sponsored": {
"groupId": 0,
"groupName": "string",
"organizationId": 0,
"organizationName": "string"
}
}