Documentation Index
Fetch the complete documentation index at: https://docs.bitcoinflash.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Flash API uses JWT (JSON Web Token) Bearer authentication. Most endpoints require a valid token to be included in the request headers.Getting Your Authentication Credentials
You can authenticate requests using either method:Method 1: JWT Bearer Token
How to get your JWT token:- Register a new account — you’ll receive a
user_idand an OTP via email - Verify your OTP to activate your account
- Login to receive your JWT token
Authorization header:
- Validity: 60 minutes
- Refresh: Use
POST /api/v1/auth/refreshto extend validity - Revoke: Use
POST /api/v1/auth/logoutto invalidate
Method 2: Staging User ID (Staging Only)
For staging/development environments, you can use theX-Staging-User-Id header instead of JWT.
How to get your Staging User ID:
- After registering, you will receive your
user_idvia email or in the registration response - Your
user_idis your Staging User ID — use it directly in the header
X-Staging-User-Id header:
Using the Token
Include either authentication method in your request headers for all protected requests:Token Lifecycle
| Action | Endpoint | Description |
|---|---|---|
| Get token | POST /api/v1/auth/login | Returns a JWT valid for 60 minutes |
| Refresh token | POST /api/v1/auth/refresh | Extends the token validity |
| Revoke token | POST /api/v1/auth/logout | Invalidates the current token |
Public Endpoints (No Auth Required)
The following endpoints do not require authentication:POST /api/v1/auth/registerPOST /api/v1/auth/loginPOST /api/v1/auth/verify-otpPOST /api/v1/auth/reactivatePOST /api/v1/auth/regenerate-otpPOST /api/v1/auth/password/reset-requestPOST /api/v1/auth/password/resetPOST /api/v1/waitlist/create
Roles
Certain endpoints are restricted by user role:| Role | Access Level |
|---|---|
admin | Full access including user management, rates, aggregators |
service_client | Access to KYC management, user lists, transaction monitoring |
user | Access to personal wallet, transactions, KYC, orders |