Skip to main content
Accept a batch of SDK events
Send one event per completed provider attempt. Reuse its UUID on delivery retries. The project and environment come from the authenticated key.
A 202 response confirms queue acceptance for valid events. Processing and cost calculation happen later. Check data.rejected for failed items.

Operational rules

  • Send 1 to 50 events, up to 256,000 UTF-8 bytes per request.
  • Keep each event at or below 64,000 UTF-8 bytes. One oversized event rejects the entire request with 413.
  • Use uncompressed application/json.
  • Use usage: null when usage is unknown.
  • The current provider values are openai and anthropic.
  • The server validates each event after applying privacy filters.
See token accounting, end-user identity, privacy controls, and retry handling.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Events are validated independently for partial acceptance. Body limits are UTF-8 bytes. Authenticated project and environment are never taken from this payload.

schemaVersion
enum<string>
required
Available options:
1
sdk
object
required
events
object[]
required
Required array length: 1 - 50 elements

Response

Valid events durably accepted; inspect rejected for invalid items. Consumers deduplicate events.

data
object
required