WorkspaceBudget - TypeScript SDK

WorkspaceBudget type definition

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

Example Usage

1import { WorkspaceBudget } from "@openrouter/sdk/models";
2
3let value: WorkspaceBudget = {
4 createdAt: "2025-08-24T10:30:00Z",
5 id: "770e8400-e29b-41d4-a716-446655440000",
6 limitUsd: 100,
7 resetInterval: "monthly",
8 updatedAt: "2025-08-24T15:45:00Z",
9 workspaceId: "550e8400-e29b-41d4-a716-446655440000",
10};

Fields

FieldTypeRequiredDescriptionExample
createdAtstring✔️ISO 8601 timestamp of when the budget was created2025-08-24T10:30:00Z
idstring✔️Unique identifier for the budget770e8400-e29b-41d4-a716-446655440000
limitUsdnumber✔️Spending limit in USD for this interval100
resetIntervalmodels.ResetInterval✔️Interval at which spend resets. Null means a lifetime (one-time) budget.monthly
updatedAtstring✔️ISO 8601 timestamp of when the budget was last updated2025-08-24T15:45:00Z
workspaceIdstring✔️ID of the workspace the budget belongs to550e8400-e29b-41d4-a716-446655440000