Skip to main content
POST
/
api
/
v1
/
events
/
ingest
Ingest events
curl --request POST \
  --url https://api.example.com/api/v1/events/ingest \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "events": [
    {
      "code": "<string>",
      "customer_id": "<string>",
      "event_id": "<string>",
      "timestamp": "<string>",
      "properties": {}
    }
  ],
  "allow_backfilling": true
}
'
{
  "failures": [
    {
      "event_id": "<string>",
      "reason": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json
events
object[]
required
allow_backfilling
boolean | null

allow ingesting events with timestamps more than a day in the past

Response

Events ingested successfully

failures
object[]