PlatformTracking
Version 1 of the server API
Events and payment attribution, version 1
Your backend can now send events to /api/v1/events, or up to 100 at once to /api/v1/events/batch. Each response says whether the event was accepted or a duplicate of one Graytower already had, so a retry is easy to confirm. Every error has a stable code, a message, and a request ID, and points at the field that caused it.
Payment attribution from your server uses /api/v1/payments/attribution, with the same error format.
The whole contract is published as an OpenAPI document at /api/v1/openapi.json. Start with the Events API, then see Errors and retries for what to do when a request fails.
Improvements and fixes
- NewDeveloper settings warn when a server key is used from a browser, so you can replace it before it leaks further.
- NewEach server key shows its last error, with the request ID to quote to support.
- ImprovedA request with the wrong kind of key gets a 403 that names the key it needs, instead of a 401.
- NewA server event without an occurredAt takes its time from the eventId, so every retry stores the same event.