UpdateKeysResponse - TypeScript SDK

UpdateKeysResponse method reference

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

API key updated successfully

Example Usage

1import { UpdateKeysResponse } from "@openrouter/sdk/models/operations";
2
3let value: UpdateKeysResponse = {
4 data: {
5 hash: "f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943",
6 name: "Updated API Key Name",
7 label: "Updated API Key Name",
8 disabled: false,
9 limit: 75,
10 limitRemaining: 49.5,
11 limitReset: "daily",
12 includeByokInLimit: true,
13 usage: 25.5,
14 usageDaily: 25.5,
15 usageWeekly: 25.5,
16 usageMonthly: 25.5,
17 byokUsage: 17.38,
18 byokUsageDaily: 17.38,
19 byokUsageWeekly: 17.38,
20 byokUsageMonthly: 17.38,
21 createdAt: "2025-08-24T10:30:00Z",
22 updatedAt: "2025-08-24T16:00:00Z",
23 },
24};

Fields

FieldTypeRequiredDescriptionExample
dataoperations.UpdateKeysData✔️The updated API key information{"hash": "f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943","name": "My Production Key","label": "sk-or-v1-0e6...1c96","disabled": false,"limit": 100,"limit_remaining": 74.5,"limit_reset": "monthly","include_byok_in_limit": false,"usage": 25.5,"usage_daily": 25.5,"usage_weekly": 25.5,"usage_monthly": 25.5,"byok_usage": 17.38,"byok_usage_daily": 17.38,"byok_usage_weekly": 17.38,"byok_usage_monthly": 17.38,"created_at": "2025-08-24T10:30:00Z","updated_at": "2025-08-24T15:45:00Z","expires_at": "2027-12-31T23:59:59Z"}