Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Soju06/codex-lb/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Account Management API allows you to manage ChatGPT accounts used by Codex-LB for load balancing. You can import accounts, list them with usage statistics, pause/reactivate accounts, and view usage trends.All Account Management endpoints require dashboard authentication via session cookie.
List Accounts
Returns all accounts with their status, usage statistics, and reset times.
Response
Array of account objects
Example Request
Example Response
Import Account
Import a ChatGPT account using an auth.json file from the official OpenAI CLI.
Request
The auth.json file containing ChatGPT session tokens. Must be uploaded as
multipart/form-data.Response
The imported account ID
Account email address
ChatGPT plan type
Initial account status (typically “active”)
Example Request
Example Response
Error Responses
invalid_auth_json: The auth.json file is malformed or missing required fields
duplicate_identity_conflict: An account with this identity already exists
Get Account Trends
Retrieve historical usage trends for a specific account.
Path Parameters
The account ID to fetch trends for
Response
The account ID
Array of usage trend points for primary window
Array of usage trend points for secondary window
Example Request
Example Response
Error Responses
account_not_found: No account exists with the specified ID
Pause Account
Temporarily pause an account, preventing it from being used for requests.
Path Parameters
The account ID to pause
Response
Always returns “paused” on success
Example Request
Example Response
Error Responses
account_not_found: No account exists with the specified ID
Reactivate Account
Reactivate a paused account, making it available for load balancing again.
Path Parameters
The account ID to reactivate
Response
Always returns “reactivated” on success
Example Request
Example Response
Error Responses
account_not_found: No account exists with the specified ID
Delete Account
Permanently delete an account from the system.
Path Parameters
The account ID to delete
Response
Always returns “deleted” on success
Example Request
Example Response
Error Responses
account_not_found: No account exists with the specified ID
Authentication
All account management endpoints require dashboard authentication. You must be logged in to the dashboard and include your session cookie in requests.Common Error Codes
| Code | Description |
|---|---|
account_not_found | The specified account ID does not exist |
invalid_auth_json | The auth.json file is invalid or malformed |
duplicate_identity_conflict | An account with this identity already exists |