API Overview
Authentication and endpoint map for RoSentry HTTP APIs.
Base routes
- Public ingest:
/api/ingest,/api/economy/ingest - Project APIs:
/api/v1/errors,/api/v1/stats - Public share links:
/api/share/[token] - Internal notifications:
/api/notifications/* - Internal economy sync:
/api/economy/sync,/api/economy/key
Authentication
API key auth
Used by ingest and v1 data APIs:
- Header:
x-api-key: rs_...
Internal dispatch auth
Used by background dispatch:
- Header:
x-internal-key: <NOTIFICATION_SECRET>
Session auth
Used by team and test-notification APIs:
- Supabase auth session cookie (logged-in user)
Endpoint summary
POST /api/ingest- ingest single or batch eventsGET /api/ingest- health checkPOST /api/economy/ingest- push player balances from the gameGET /api/v1/errors- list grouped or raw eventsGET /api/v1/stats- aggregate stats by timeframeGET /api/share/[token]- public share-link data (no auth, token is the credential)POST /api/share/[token]- update group status via an editor share linkPOST /api/notifications/test- send test notification for a channelPOST /api/notifications/dispatch- internal dispatch for matched fingerprints