Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

import { UpdateKeysRequestBody } from "@openrouter/sdk/models/operations";

let value: UpdateKeysRequestBody = {};

Fields

FieldTypeRequiredDescriptionExample
disabledboolean:heavy_minus_sign:Whether to disable the API keyfalse
includeByokInLimitboolean:heavy_minus_sign:Whether to include BYOK usage in the limittrue
limitnumber:heavy_minus_sign:New spending limit for the API key in USD75
limitResetoperations.UpdateKeysLimitReset:heavy_minus_sign:New limit reset type for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday.daily
namestring:heavy_minus_sign:New name for the API keyUpdated API Key Name