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 bodystring
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.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.
Response
Using the token
Pass the token in theAuthorization 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 bodystring
required
A human-readable name for the client (e.g.,
"backtest-runner" or "ci-pipeline").string
Optional. Contact email associated with this client.
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.
Response