TypeScript SDKOperations

CreateGuardrailResponse - TypeScript SDK

CreateGuardrailResponse method reference

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Guardrail created successfully

Example Usage

1import { CreateGuardrailResponse } from "@openrouter/sdk/models/operations";
2
3let value: CreateGuardrailResponse = {
4 data: {
5 id: "550e8400-e29b-41d4-a716-446655440000",
6 name: "My New Guardrail",
7 createdAt: "2025-08-24T10:30:00Z",
8 },
9};

Fields

FieldTypeRequiredDescriptionExample
dataoperations.CreateGuardrailData✔️The created guardrail{"id": "550e8400-e29b-41d4-a716-446655440000","name": "Production Guardrail","description": "Guardrail for production environment","limit_usd": 100,"reset_interval": "monthly","allowed_providers": ["openai","anthropic","google"],"allowed_models": null,"enforce_zdr": false,"created_at": "2025-08-24T10:30:00Z","updated_at": "2025-08-24T15:45:00Z"}