Create a guardrail
Create a new guardrail for the authenticated user. Management key required.
Authentication
AuthorizationBearer
API key as bearer token in Authorization header
Request
This endpoint expects an object.
name
Name for the new guardrail
allowed_models
Array of model identifiers (slug or canonical_slug accepted)
allowed_providers
List of allowed provider IDs
description
Description of the guardrail
enforce_zdr
Whether to enforce zero data retention
ignored_providers
List of provider IDs to exclude from routing
limit_usd
Spending limit in USD
reset_interval
Interval at which the limit resets (daily, weekly, monthly)
Allowed values:
Response
Guardrail created successfully
data
Errors
400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error