POST
/
api
/
v1
/
usage
/
ingest
{
  "info": {
    "created_events": 5,
    "duplicates": []
  },
  "errors": []
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Represents a list of customer events.

Attributes: events (list[CustomerEvent]): A list of customer events. Each event should be a dictionary with at-least the following keys: event_name, timestamp, idempotency_key.

events
object[]

Response

200 - application/json

Schema for the response of the customer event ingestion process.

Attributes: info (InfoSchema): Detailed information about the ingestion process, including the number of created events and duplicates. errors (list[ErrorSchema]): A list of errors that occurred during the ingestion process.

info
object
required

Detailed information about the customer event ingestion process.

errors
object[]

A list of errors that occurred during the ingestion process.