API Documentation
Build powerful integrations with our REST API. Manage users, track campaigns, process withdrawals, and access analytics — all programmatically.
Call POST /User/login with your credentials to obtain a JWT token. This same endpoint works for both regular users and admin accounts.
Include the JWT token in the Authorization header of every API request. Send the raw token directly — no "Bearer" prefix needed.
All endpoints return JSON. A successful response has "status": true with data. Errors return status codes (401, 403, 422) with a message.
https://demo.affiliatepro.org/
| Code | Status | Description |
|---|---|---|
| 200 | OK | Request successful |
| 401 | Unauthorized | Missing or invalid JWT token |
| 403 | Forbidden | Valid token but insufficient permissions (e.g. user trying admin endpoint) |
| 422 | Validation Error | Missing or invalid request parameters |
| 500 | Server Error | Internal server error |