TypeScript SDKOperations

ListGuardrailKeyAssignmentsData - TypeScript SDK

ListGuardrailKeyAssignmentsData method reference

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

Example Usage

1import { ListGuardrailKeyAssignmentsData } from "@openrouter/sdk/models/operations";
2
3let value: ListGuardrailKeyAssignmentsData = {
4 id: "550e8400-e29b-41d4-a716-446655440000",
5 keyHash: "c56454edb818d6b14bc0d61c46025f1450b0f4012d12304ab40aacb519fcbc93",
6 guardrailId: "550e8400-e29b-41d4-a716-446655440001",
7 keyName: "Production Key",
8 keyLabel: "prod-key",
9 assignedBy: "user_abc123",
10 createdAt: "2025-08-24T10:30:00Z",
11};

Fields

FieldTypeRequiredDescriptionExample
idstring✔️Unique identifier for the assignment550e8400-e29b-41d4-a716-446655440000
keyHashstring✔️Hash of the assigned API keyc56454edb818d6b14bc0d61c46025f1450b0f4012d12304ab40aacb519fcbc93
guardrailIdstring✔️ID of the guardrail550e8400-e29b-41d4-a716-446655440001
keyNamestring✔️Name of the API keyProduction Key
keyLabelstring✔️Label of the API keyprod-key
assignedBystring✔️User ID of who made the assignmentuser_abc123
createdAtstring✔️ISO 8601 timestamp of when the assignment was created2025-08-24T10:30:00Z