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
Creates a newtype=user API key in the organization associated with the current management token.
Request Body
| Field | Type | Default / Limits | Notes |
|---|---|---|---|
name | string | required, default Default Key, length 1-50 | Display name, trimmed server-side |
limitAmount | number | null | min 0, input max 1000000 | null or omitted = 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[] | default [] | Optional logical model allowlist |
expiresAt | string | null | RFC3339 datetime | null means no expiry |
Notes
-
Monetary fields are USD-only.
CNYinputs are retired and return400 currency_retired. - The full API key value is shown only once in the response.
-
models: []means the key has no additional model restriction beyond organization policy. -
limitAmount: 0creates a key that is valid but cannot spend quota until updated.