The management API is authenticated separately from model-call APIs. Console calls use the active browser session; scripts need a management credential and the matching
New-Api-User header. A model-call sk- API key cannot authenticate management API requests.List API keys
key field in list responses may be masked.
Create an API key
API key name. Use a client or task label such as
claude-code, codex, or cherry-studio.Quota available to this API key. When
unlimited_quota is true, this field does not cap the key.Unix timestamp. Use
-1 for no expiration.Whether the API key has no key-level quota cap. The account balance is still charged normally.
Whether to enable a model allowlist.
Model allowlist value when model limits are enabled.
Groups assigned to the API key. Use commas for multiple groups, for example
codex,codex-passthrough.Whether to allow retrying across groups. This is usually used with
auto or multi-group API keys.Source IP allowlist for this API key. Leave empty for no IP restriction.
Get an API key
API key ID.
Copy the full API key value
Update an API key
status_only.
Delete an API key
Search API keys
Search by API key name.
Boundaries
- Manage only your own API keys.
- Do not infer admin endpoints from this user-facing management API.
- Automation scripts should handle expired sessions, 403 permission errors, and 429 rate limits.