Documentation Index
Fetch the complete documentation index at: https://docs.lemondata.cc/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Use this endpoint to update the name, usage limit, allowed models, expiry, or status of an existing user API key.Request Body
At least one field must be provided.| Field | Type | Default / Limits | Notes |
|---|---|---|---|
status | enum | - | active, inactive, suspended, revoked |
name | string | length 1-50 | Updated display name |
limitAmount | number | null | min 0, input max 1000000 | null = unlimited, 0 = zero quota. Positive values are normalized to a stored cap that cannot exceed 100000 USD equivalent. |
limitCurrency | enum | default USD | USD only. Sending CNY returns 400 currency_retired. |
models | string[] | - | Updated logical model allowlist |
expiresAt | string | null | RFC3339 datetime | null clears the expiry |
Notes
-
Monetary fields are USD-only.
CNYinputs are retired and return400 currency_retired. - Hard delete is intentionally not supported in Management API v1.
-
revokedis terminal for ordinary operational use; create a new key instead of expecting a future un-revoke flow.