Files
openrouter-python-sdk-retry…/docs/operations/createkeysrequestbody.md
T
github-actions[bot]GitHubspeakeasybotspeakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
0f116c9792 chore: 🐝 Update SDK - Generate 0.9.2 (#205)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
2026-06-11 12:10:31 -04:00

7.4 KiB
Raw Blame History

CreateKeysRequestBody

Fields

Field Type Required Description Example
creator_user_id OptionalNullable[str] Optional user ID of the key creator. Only meaningful for organization-owned keys where a specific member is creating the key. user_2dHFtVWx2n56w6HkM0000000000
expires_at date Optional ISO 8601 UTC timestamp when the API key should expire. Must be UTC, other timezones will be rejected 2027-12-31T23:59:59Z
include_byok_in_limit Optional[bool] Whether to include BYOK usage in the limit true
limit OptionalNullable[float] Optional spending limit for the API key in USD 50
limit_reset OptionalNullable[operations.CreateKeysLimitReset] Type of limit reset for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday. monthly
name str ✔️ Name for the new API key My New API Key
workspace_id Optional[str] The workspace to create the API key in. Defaults to the default workspace if not provided. 0df9e665-d932-5740-b2c7-b52af166bc11