API
Errors and limits
Status codes, per-event rejection codes, and rate limits.
Status codes
| Status | Meaning | What to do |
|---|---|---|
200 | Batch processed; see rejected for per-event problems | fix rejected events, don't retry them |
400 | Not a valid batch at all | fix the request |
401 | Bad or revoked key | check the key and environment |
413 | Over 500 events or 1 MB | split and retry |
429 | Rate limited | wait for Retry-After seconds, then retry |
5xx | Our problem | retry with backoff, same insert_ids |
Errors use one shape:
{ "error": { "code": "invalid_key", "message": "This key was revoked on 2026-11-30." } }Rejection codes
| Code | Why |
|---|---|
invalid_event_name | name doesn't match ^[a-z][a-z0-9_]{0,63}$ or uses a reserved $ name |
missing_identity | neither player_id nor device_id |
too_old | time is more than 30 days ago |
in_future | time is more than 1 hour ahead |
too_many_properties | more than 255 keys |
properties_too_large | more than 8 KB serialized |
forbidden_for_key | e.g. setting another player's properties with a publishable key |
Limits
| Events per batch | 500 |
| Batch size | 1 MB (before gzip) |
| Rate | 2,000 events/s per app; 10,000 on Scale |
| Dedup window | 7 days by insert_id; purchases also by transaction_id, forever |