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