TypeScript SDKAPI ReferenceOperationsCreateGuardrailRequest - TypeScript SDKCopy pageCreateGuardrailRequest type definitionThe TypeScript SDK and docs are currently in beta. Report issues on GitHub. Example Usage 1import { CreateGuardrailRequest } from "@openrouter/sdk/models/operations";23let value: CreateGuardrailRequest = {4 requestBody: {5 name: "My New Guardrail",6 },7}; Fields FieldTypeRequiredDescriptionExamplehttpRefererstring➖The app identifier should be your app’s URL and is used as the primary identifier for rankings.This is used to track API usage per application.appTitlestring➖The app display name allows you to customize how your app appears in OpenRouter’s dashboard.appCategoriesstring➖Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings.requestBodyoperations.CreateGuardrailRequestBody✔️N/A{"name": "My New Guardrail","description": "A guardrail for limiting API usage","limit_usd": 50,"reset_interval": "monthly","allowed_providers": ["openai","anthropic","deepseek"],"ignored_providers": null,"allowed_models": null,"enforce_zdr": false}