Administration
Overview of OneKeyLLM admin endpoints.
Admin endpoints use Authorization: Bearer <ADMIN_API_KEY>. They are intended
for dashboards and internal operations.
| Method | Path | Description |
|---|
GET | /v1/organization/admin_api_keys | List organization API keys. |
POST | /v1/organization/admin_api_keys | Create an API key. |
GET | /v1/organization/admin_api_keys/pending_charges | List pending charges. |
DELETE | /v1/organization/admin_api_keys/{id} | Delete an API key. |
POST | /v1/organization/admin_api_keys/{id}/rotate | Rotate an API key. |
POST | /v1/organization/admin_api_keys/{id}/topup | Top up a key budget. |
POST | /v1/organization/my/admin_api_keys | Create a key for the caller's pool. |
| Method | Path | Description |
|---|
GET | /v1/organization/pools | List pools. |
POST | /v1/organization/pools | Create a pool. |
GET | /v1/organization/pools/default | Retrieve the assigned default pool. |
DELETE | /v1/organization/pools/{id} | Delete a pool. |
POST | /v1/organization/pools/{id}/api_keys/{key_id} | Assign an API key to a pool. |
DELETE | /v1/organization/pools/{id}/api_keys/{key_id} | Remove an API key from a pool. |
POST | /v1/organization/pools/{id}/owner/{owner_id} | Assign an owner. |
DELETE | /v1/organization/pools/{id}/owner | Remove the owner. |
| Method | Path | Description |
|---|
GET | /v1/organization/codex_accounts | List Codex accounts. |
POST | /v1/organization/codex_accounts/device_code | Start Codex device-code login. |
POST | /v1/organization/codex_accounts/device_code/{login_id}/poll | Poll the Codex login. |
DELETE | /v1/organization/codex_accounts/{id} | Delete a Codex account. |
POST | /v1/organization/codex_accounts/{id}/disable | Disable a Codex account. |
POST | /v1/organization/codex_accounts/{id}/enable | Enable a Codex account. |
GET | /v1/organization/claude_accounts | List Claude accounts. |
POST | /v1/organization/claude_accounts/oauth/start | Start Claude OAuth login. |
POST | /v1/organization/claude_accounts/oauth/complete | Complete Claude OAuth login. |
DELETE | /v1/organization/claude_accounts/{id} | Delete a Claude account. |
| Method | Path | Description |
|---|
GET | /v1/organization/upstreams | List upstreams. |
POST | /v1/organization/upstreams | Create an upstream. |
DELETE | /v1/organization/upstreams/{id} | Delete an upstream. |
POST | /v1/organization/upstreams/{id}/disable | Disable an upstream. |
POST | /v1/organization/upstreams/{id}/enable | Enable an upstream. |
POST | /v1/organization/upstreams/{id}/topup | Top up an upstream. |