Start Run
This is the primary SDK entry point. The SDK calls this automatically when you use guard.run().
Starts a new guarded run. Evaluates all guardrails and returns an initial ALLOW/DENY decision.
Auth: API Key
Request Body
Response 201
If denied:
End Run
Ends a run with a final status. Called automatically by the SDK when exiting the guard.run() context.
Auth: API Key
Request Body
Response 200
Create Step
Creates a step within a run and evaluates guardrails. Called by the SDK before executing model_call() or tool_call().
Auth: API Key
Request Body
Response 201
Update Step
Reports the result of a step after execution. Called by the SDK after fn() completes. Token counts trigger cost calculation.
Auth: API Key
Request Body
Response 200
List Runs
Lists runs with optional filtering and pagination.
Auth: JWT or API Key
Query Parameters
Response 200
Get Run Detail
Returns the full run with its step timeline, tokens, and costs.
Auth: JWT or API Key
Response 200