Auth
All API requests require authentication using an API key.
Authentication is performed using a Bearer token in the Authorization header.
Each account can generate one or more API keys from the dashboard.
API keys are:
Scoped to the account that created them
Keys should be stored securely and never exposed in client-side applications.
Authorization Header
All requests must include:
Authorization: Bearer YOUR_API_KEY
Example:
curl -X GET https://aurex.cash/api/dashboard/users/{userId} \
-H "Authorization: Bearer YOUR_API_KEY"
Requests without a valid API key will return:
Standard error response format
Invalid API Key
If the API key is:
The API will return:
Multiple API Keys
An account may generate multiple API keys.
Each key:
Shares the same account balance
Has independent rate limiting
Can be revoked individually
This allows separation between environments or services.
If a key is compromised:
Revoked keys immediately lose access to all endpoints.
Security Recommendations
Store API keys in secure server environments only
Do not embed API keys in frontend code
Do not commit keys to public repositories
API keys provide full access to account resources.Anyone with access to the key can create users, issue cards, and move funds.