A
202 Accepted response means the events were queued in the server-side buffer, not yet written to the database. Processing happens within a few seconds.Endpoint
Request body
The authenticated player’s unique identifier. Must exactly match the
sub claim in the access token. The request is rejected with 403 if there is a mismatch.The game’s identifier — the Android package name or iOS bundle identifier (e.g.
com.example.mygame).An array of event objects. Must contain between 1 and 200 items.
Example request
Response
202 Accepted
message field reports how many events were accepted and how many are currently in the server-side buffer awaiting processing.
Error responses
| HTTP status | Code | Message | Meaning |
|---|---|---|---|
401 UNAUTHORIZED | UNAUTHORIZED | — | The Authorization header is missing or the token is invalid or expired. |
403 FORBIDDEN | FORBIDDEN | user_id_mismatch | The user_id field in the request body does not match the sub claim of the authenticated token. |
400 BAD_REQUEST | BAD_REQUEST | invalid_payload | The request body failed schema validation — for example, an unsupported event type, a missing timestamp, or more than 200 events in the array. Check details for field-level errors. |
