POST /logs

Available

Structured SDK log & debug capture ingest (server-side sanitized, kill-switch-aware).

POSThttps://ctrlapp.krdcode.com/api/public/sdk/v1/logs
Auth: Bearer <PUBLISHABLE_KEY>

Body cap 256 KiB. Up to 200 events per request. Server enforces recursive redaction: secret keys, authorization/cookie headers, request/response bodies, IPs, emails, and phone-like strings never persist. Kill switch on the app pauses ingest instantly.

Body

json
{
  "env": "prod",
  "device_uid": "<DEVICE_ID>",
  "events": [{
    "ts": "2026-07-16T09:00:00Z",
    "level": "info",
    "message": "checkout completed",
    "attributes": { "orderId": "abc" },
    "event_class": "log",
    "platform": "web",
    "sdk_version": "0.9.1",
    "session_id": "sess-1",
    "trace_id": "trace-abc",
    "span_id": "span-1"
  }]
}
Back to top