Integrate Octagon's platform data into your own applications with our RESTful API.
The Octagon API allows developers to programmatically access platform data including investment plans, portfolio balances, transaction history, and referral statistics. All responses are in JSON format.
All API requests require an API key passed in the request header. Obtain your key from your dashboard under Settings → API Access.
| Code | Meaning | Description |
|---|---|---|
| 200 | OK | Request succeeded |
| 400 | Bad Request | Invalid parameters |
| 401 | Unauthorized | Missing or invalid API key |
| 403 | Forbidden | Action not permitted for this key |
| 404 | Not Found | Resource does not exist |
| 429 | Too Many Requests | Rate limit exceeded |
| 500 | Server Error | Internal server error — contact support |
/v1/plans
Returns all available investment plans with their rates and limits.
/v1/portfolio
Returns the authenticated user's current portfolio balance and active investments.
/v1/deposit
Creates a new deposit request. Requires amount and currency.
/v1/withdrawals
Returns the user's withdrawal history.
/v1/referrals
Returns referral count, earnings, and referral code.
Configure webhooks in your dashboard to receive real-time event notifications via HTTP POST to your endpoint.
deposit.approved
deposit.rejected
withdrawal.approved
withdrawal.rejected
roi.credited
referral.joined
API keys are available to verified Octagon members. Generate yours from your account dashboard or contact our developer support team.