Events
Batch usage events
This endpoint can be used to send a batch of usage records. Each request may include up to 100 events.
POST
Batches are atomic. If a single event is invalid, Lago rejects the entire batch with a
422 and persists nothing, including the valid events in the same request. “Invalid” covers a bad schema, an unknown subscription, or a duplicate transaction_id (value_already_exist). The error_details object reports failures by the event’s index in the array you sent, not by transaction_id, so keep your array order to trace an index back to its source event.