Events

Create a batch of events used to record user actions

Submit between 1 and 20 events in a single request. Each event is processed independently and the response reports the per-event result so the caller can retry only the events that failed.

The event_name values, what triggers each one and how often to send it are listed on Create an event used to record user actions.

post/events/batch

Request

Headers

versionstring required

The version of the api you wish to use

Request body

Example request

{
  "events": [
    {
      "event_datetime": "2025-03-21T17:32:28Z",
      "session_id": "70f05c32-7760-4753-93c9-b759cf7e7fda"
    }
  ]
}

Response

Every event in the batch was accepted for processing.

acceptedinteger required

The number of events that were accepted for processing

failedinteger required

The number of events that failed to be accepted for processing

Example response

{
  "results": [
    {
      "success": true
    }
  ],
  "accepted": 2
}

Changes

No recorded changes to this operation across all 1 revision of this API.