TypeScript SDKOperations

ListKeyAssignmentsResponse - TypeScript SDK

ListKeyAssignmentsResponse method reference

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

List of key assignments

Example Usage

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

Fields

FieldTypeRequiredDescriptionExample
dataoperations.ListKeyAssignmentsData[]✔️List of key assignments
totalCountnumber✔️Total number of key assignments for this guardrail25