GET /api/v1/{context_id}/audit
Changed onAudit view over the trace graph. Returns recent traces with principal/key/time/kind filters.
Request
- The document declares no server URL.
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Spectron context id
Query parameters
Filter by principal (api-key id)
Alias for principal
The trace kind discriminant — a closed three-value set over the trace tables. Serialises to decision / retrieval / response so the /audit wire shape and the kind= filter stay locked to the enum and can't drift (typos are rejected, the match arms are exhaustive, and the OpenAPI schema enumerates the allowed values).
Trace kind filter: decision|retrieval|response
Inclusive lower bound on created_at (RFC 3339)
Inclusive upper bound on created_at (RFC 3339)
Max rows to return (default 100, max 500)
Continuation token from the previous page's page.nextCursor
Response
Changes
- info
added the new optional
queryrequest parametercursor - info
added the non-success response with the status
- info
added the required property
to the response with the status
- info