The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { ListGuardrailsResponse } from "@openrouter/sdk/models";
let value: ListGuardrailsResponse = {
data: [
{
createdAt: "2025-08-24T10:30:00Z",
id: "550e8400-e29b-41d4-a716-446655440000",
name: "Production Guardrail",
workspaceId: "0df9e665-d932-5740-b2c7-b52af166bc11",
},
],
totalCount: 1,
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
data | models.Guardrail[] | :heavy_check_mark: | List of guardrails | |
totalCount | number | :heavy_check_mark: | Total number of guardrails | 25 |