These are the JSON schemas for events the SDK sends to the Guard ingest endpoint. You don’t normally interact with these directly — they’re documented here for debugging and self-hosting.
Request event
Field Type Description urlstringRequest URL as the framework provides it. May include scheme/host (Python) or be path-only (Node, Go) endpointstringPath with query string methodstringHTTP method, uppercased status_codeintResponse status code request_headersobjectLowercased keys, sensitive values redacted request_bodyanyParsed JSON when possible, capped at 64KB response_headersobjectLowercased keys response_bodyanyParsed JSON when possible, capped at 64KB duration_msintResponse time in milliseconds client_ipstringExtracted from proxy headers
"endpoint" : " /api/users/42 " ,
"content-type" : " application/json " ,
"authorization" : " [REDACTED] "
"response_headers" : { "content-type" : " application/json " },
"email" : " ja***@example.com "
"client_ip" : " 203.0.113.42 "
Error event
Field Type Description _typestringAlways "error" error_typestringException class name error_messagestringError message levelstring"fatal", "error", or "warning"fingerprintstring?Optional grouping key (Node, Python) stack_framesStackFrame[]Stack trace request_urlstring?Request URL that caused the error request_methodstring?HTTP method client_ipstring?Client IP timestampintUnix milliseconds
Stack frame
Field Type Description filestringSource file path lineintLine number columnint?Column (Node, Python 3.11+) functionstringFunction name contextstring[]?Surrounding source lines (Python only) in_appbooltrue if your code, false for library/runtime