POST
/
v1
/
events
/
batch
curl --request POST \
  --url https://ingest.hyperline.co/v1/events/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "customer_id": "cus_CrqwefTRWBWRT",
    "event_type": "api_call",
    "timestamp": "2024-12-20T16:04:11Z",
    "record": {
      "id": "D32NAA8",
      "durationInMs": 32,
      "isVerified": true
    }
  }
]'
{
  "events_created": [
    {
      "customer_id": "cus_CrqwefTRWBWRT",
      "event_type": "api_call",
      "timestamp": "2024-12-20T16:04:11Z",
      "record": {
        "id": "D32NAA8",
        "durationInMs": 32,
        "isVerified": true
      }
    }
  ],
  "events_failed": [
    {
      "customer_id": "cus_CrqwefTRWBWRT",
      "event_type": "api_call",
      "timestamp": "2024-12-20T16:04:11Z",
      "record": {
        "id": "D32NAA8",
        "durationInMs": 32,
        "isVerified": true
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json · object[]
Events payload

The body is of type object[].

Response

201 - application/json
Events created

The response is of type object.