Skip to main content
POST
Report business outcomes attributed to traces

Authorizations

x-api-key
string
header
required

Project API key. Manage keys in the Zespan dashboard under project settings.

Body

application/json
outcomes
object[]
required

Up to 100 outcomes per request — the same per-batch cap POST /v1/ingest uses for native SDK events, reused rather than inventing a second limit for a second ingest endpoint.

Required array length: 1 - 100 elements

Response

Batch accepted and written.

accepted
integer
required

Number of outcomes accepted and written from the batch.

Example:

1

dropped
integer

Number of outcomes not written because their sessionId is a session erased in this project in the last 30 days. Outcomes without a sessionId are never dropped.

Example:

0