POST
/
ingest
curl --request POST \
  --url https://api.withorb.com/v1/ingest \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "events": [
    {
      "customer_id": "<string>",
      "external_customer_id": "<string>",
      "event_name": "<string>",
      "timestamp": "2020-12-09T16:09:53Z",
      "properties": {},
      "idempotency_key": "<string>"
    }
  ]
}'
{
  "debug": {
    "duplicate": [
      "<string>"
    ],
    "ingested": [
      "<string>"
    ]
  },
  "validation_failed": [
    {
      "idempotency_key": "<string>",
      "validation_errors": [
        "<string>"
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

API Keys can be issued in the Orb's web application.

Query Parameters

debug
boolean
default:
false

Flag to enable additional debug information in the endpoint response

backfill_id
string | null

If this ingestion request is part of a backfill, this parameter ties the ingested events to the backfill

Body

application/json
events
object[]
required

Response

200
application/json
OK
validation_failed
object[]
required

Contains all failing validation events. In the case of a 200, this array will always be empty. This field will always be present.

debug
object | null

Optional debug information (only present when debug=true is passed to the endpoint). Contains ingested and duplicate event idempotency keys.