Skip to main content
The QuanuX server exposes a REST API on port 8080. All endpoints that modify state or access sensitive data require a bearer token passed in the Authorization header. You obtain a token by logging in with your QuanuX credentials, then include it in subsequent requests.

POST /api/auth/login

Exchange your QuanuX username and password for a bearer token. Request body
string
required
Your QuanuX account username.
string
required
Your QuanuX account password.
string
Optional. The client ID for machine-to-machine authentication. If omitted, the request authenticates as a user session.
string
Optional. The client secret corresponding to client_id.
Response
string
Bearer token to include in subsequent API requests.
string
Unique identifier for the authenticated session.
array
List of permission scopes granted to this token.
Example
Response

Using the token

Pass the token in the Authorization header for all subsequent API requests:

POST /api/auth/register-client

Register a named API client for machine-to-machine access. Use this when you want to grant a service or script its own credentials rather than using your personal account token. Request body
string
required
A human-readable name for the client (e.g., "backtest-runner" or "ci-pipeline").
string
Optional. Contact email associated with this client.
Response
string
The generated client ID. Use this as client_id in /api/auth/login requests.
string
The generated client secret. Store this securely — it is only shown once.
string
Confirmation message.
Example
Response
The client_secret is returned only at registration time. Store it in your OS keyring with quanuxctl secrets set — it cannot be retrieved again.

Common authentication errors