Authentication
The API uses a layered authentication model. User-session endpoints use bearer tokens, while server-to-server operational endpoints usually require an API key.Bearer tokens
CallPOST /v1/auth/login with your approved integrator email and password. Use the returned token in the Authorization header:
POST /v1/auth/logout. Changing your password also invalidates the current session.
API keys
API keys identify the approved integrator for server-side API operations. Send the key in thex-api-key header:
Required combinations
| Endpoint type | Required authentication |
|---|---|
| Public onboarding | No authentication |
| Login and password reset | No authentication |
| Profile and key metadata | Bearer token or API key where accepted by the endpoint |
| Account creation | x-api-key |
| Investor lookup | x-api-key |
| Wallet funding and balance | CSCS AOS portal access |
| History | CSCS AOS portal access |
Idempotency
Account creation and lookup requests require anIdempotency-Key header. Use a unique key for each new operation and reuse the same key only when retrying an identical request after a timeout or network failure.