API Reference•stable•Updated 2026-05-13
Guardrails Api
Reference for Kadryn guardrails api.
Endpoint
This page defines the endpoint, authentication, request schema, response schema, errors, rate limits, idempotency behavior, and related webhook events for guardrails api.
Authentication
Use a server-side Kadryn API key.
bash
Authorization: Bearer $KADRYN_API_KEYHeaders
Content-Type: application/jsonIdempotency-Keyfor retry-safe writes.x-kadryn-projectfor project-level attribution.x-kadryn-featurefor feature-level attribution.traceparentfor distributed tracing.
Response
Successful responses return structured JSON and request correlation headers when applicable.
Errors
Handle 400, 401, 403, 409, 429, and retryable 5xx responses explicitly.