ListGuardrailKeyAssignmentsResponse - TypeScript SDK

ListGuardrailKeyAssignmentsResponse type definition

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

Example Usage

1import { ListGuardrailKeyAssignmentsResponse } from "@openrouter/sdk/models/operations";
2
3let value: ListGuardrailKeyAssignmentsResponse = {
4 result: {
5 data: [
6 {
7 assignedBy: "user_abc123",
8 createdAt: "2025-08-24T10:30:00Z",
9 guardrailId: "550e8400-e29b-41d4-a716-446655440001",
10 id: "550e8400-e29b-41d4-a716-446655440000",
11 keyHash:
12 "c56454edb818d6b14bc0d61c46025f1450b0f4012d12304ab40aacb519fcbc93",
13 keyLabel: "prod-key",
14 keyName: "Production Key",
15 },
16 ],
17 totalCount: 1,
18 },
19};

Fields

FieldTypeRequiredDescriptionExample
resultmodels.ListKeyAssignmentsResponse✔️N/A{"data": [{"assigned_by": "user_abc123","created_at": "2025-08-24T10:30:00Z","guardrail_id": "550e8400-e29b-41d4-a716-446655440001","id": "550e8400-e29b-41d4-a716-446655440000","key_hash": "c56454edb818d6b14bc0d61c46025f1450b0f4012d12304ab40aacb519fcbc93","key_label": "prod-key","key_name": "Production Key"}
],
“total_count”: 1<br />}