POST /logs
AvailableStructured SDK log & debug capture ingest (server-side sanitized, kill-switch-aware).
POST
https://ctrlapp.krdcode.com/api/public/sdk/v1/logsAuth:
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"
}]
}