Ingest logs
curl -X POST https://api.spawnbase.gg/api/v1/logs \ -H "Authorization: YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '[{"level":"error","message":"payment failed","resource":"shop","metadata":{"playerSource":12}}]'- Body: a JSON array, 1–1000 entries, ≤1 MB. A single object is accepted and wrapped.
- Entry:
message(required, ≤16 KB; stored and returned asbody),level,resource(defaultdefault, ≤128 chars),metadata(≤32 KB serialized).traceId/parentIdare yours to set; the server generates atraceIdwhen absent. - One bad entry rejects the whole batch:
400 bad_entrywith the failing index. Fix and resend — nothing was stored. - Over quota:
429 quota_exceeded. Nothing is silently dropped. - Response:
{ "status": "ok" }.