The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { GetGuardrailResponse } from "@openrouter/sdk/models/operations";
let value: GetGuardrailResponse = {
data: {
id: "550e8400-e29b-41d4-a716-446655440000",
name: "Production Guardrail",
createdAt: "2025-08-24T10:30:00Z",
},
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
data | operations.GetGuardrailData | :heavy_check_mark: | The 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"} |