Base URL
https://api.stablepay.global/v2
Authentication
All endpoints require Bearer token authentication:Response Format
All responses follow this structure:Endpoints
Users
| Method | Endpoint | Description |
|---|---|---|
POST | /users | Create a new user |
GET | /users/:id | Get user details |
GET | /users | List users |
KYC
| Method | Endpoint | Description |
|---|---|---|
POST | /users/:id/kyc/pan/verify | Verify PAN |
POST | /users/:id/kyc/digilocker/initiate | Start Aadhaar verification |
POST | /users/:id/bank-accounts | Add and verify bank account |
GET | /users/:id/kyc/status | Get KYC status |
Transactions
| Method | Endpoint | Description |
|---|---|---|
POST | /transactions | Create transaction |
GET | /transactions/:id | Get transaction |
GET | /transactions | List transactions |
GET | /quotes | Get exchange rate quote |
GET | /quotes/rate | Get current exchange rate info |
Webhooks
| Method | Endpoint | Description |
|---|---|---|
GET | /webhooks | List webhook events |
POST | /webhooks/:id/retry | Retry failed webhook |
