Ingest events into Atlas. Events are processed asynchronously, so the response does not indicate when the events have been processed or that the data is correct. For example, if you send a customer ID that does not exist, this endpoint will accept it anyway.
You can obtain this key from the Atlas dashboard. It must be of type secret
The Atlas customer ID. It must be the Atlas customer ID, not your system's customer ID.
1"atlas-internal-customer-id-123"
The event data. Used to report specific data about the events that can be used to identify it or even compute the usage.
{ "quantity": 10 }The event name. Together with data, it is used to process the event. It is usually the slug of the feature that generated the event.
1"api-usage"
The event generation date
"2022-01-01T00:00:00.000Z"
The event idempotency key. Used to ensure that the event is not processed multiple times. Each event must have a unique idempotency key. If not provided, an idempotency key will be automatically generated hashing the event payload.
1"idempotency-key-123"
The id of the user that generated the event
"atlas-internal-user-id-123"
The events have been accepted and will be processed asynchronously.