OAuth2-based API for partner integrations with the Coinstancy cryptocurrency investment platform.
This API uses OAuth2 Authorization Code Flow. Partners act on behalf of existing Coinstancy users.
Redirects user to consent page
302 - Redirect to consent page
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/oauth/authorize'
--header 'Content-Type: application/json'
Exchanges authorization code for access and refresh tokens
200 - Token generated successfully
Body
400 - Validation error
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/oauth/token'
--header 'Content-Type: application/json'
200 - New token generated
Body
400 - Validation error
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/oauth/token/refresh'
--header 'Content-Type: application/json'
200 - Token revoked successfully
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/oauth/revoke'
--header 'Content-Type: application/json'
200 - List of scopes
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/oauth/scopes'
--header 'Content-Type: application/json'
200 - User profile
Body
401 - Missing or invalid token
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/account/profile'
--header 'Content-Type: application/json'
200 - Profile updated
Body
422 - Validation error
Body
curl --request PATCH
--url 'https://api.coinstancy.com/api/v4/account/profile'
--header 'Content-Type: application/json'
200 - User settings
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/account/settings'
--header 'Content-Type: application/json'
200 - Settings updated
Body
curl --request PATCH
--url 'https://api.coinstancy.com/api/v4/account/settings'
--header 'Content-Type: application/json'
200 - User MFA status
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/account/mfa/status'
--header 'Content-Type: application/json'
200 - TOTP setup initialized
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/account/mfa/app/setup'
--header 'Content-Type: application/json'
200 - TOTP enabled successfully
Body
422 - Validation error
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/account/mfa/app/confirm'
--header 'Content-Type: application/json'
200 - TOTP disabled
Body
curl --request DELETE
--url 'https://api.coinstancy.com/api/v4/account/mfa/app'
--header 'Content-Type: application/json'
200 - Setting updated
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/account/mfa/email/toggle'
--header 'Content-Type: application/json'
200 - List of sessions
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/account/sessions'
--header 'Content-Type: application/json'
200 - Session revoked
Body
404 - Resource not found
Body
curl --request DELETE
--url 'https://api.coinstancy.com/api/v4/account/sessions/{id}'
--header 'Content-Type: application/json'
200 - User's wallets
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/wallets'
--header 'Content-Type: application/json'
200 - Wallet for specified blockchain
Body
404 - Resource not found
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/wallets/{blockchain}'
--header 'Content-Type: application/json'
200 - Wallet balance with all tokens
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/wallets/{blockchain}/balance'
--header 'Content-Type: application/json'
200 - Transaction list
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/wallets/{blockchain}/transactions'
--header 'Content-Type: application/json'
200 - Deposit address
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/wallets/{blockchain}/deposit-address'
--header 'Content-Type: application/json'
200 - Available stable pools
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/pools/stable'
--header 'Content-Type: application/json'
200 - Pool details
Body
404 - Resource not found
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/pools/stable/{id}'
--header 'Content-Type: application/json'
200 - Balance and accrued interest
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/pools/stable/{id}/user-balance'
--header 'Content-Type: application/json'
200 - Transaction history
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/pools/stable/{id}/history'
--header 'Content-Type: application/json'
200 - Validation result
Body
422 - Validation error
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/pools/stable/{id}/check-investment'
--header 'Content-Type: application/json'
Transfers funds from wallet to pool
201 - Investment created
Body
422 - Validation error
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/pools/stable/{id}/invest'
--header 'Content-Type: application/json'
200 - Validation result
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/pools/stable/{id}/check-withdrawal'
--header 'Content-Type: application/json'
201 - Withdrawal initiated
Body
422 - Validation error
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/pools/stable/{id}/withdraw'
--header 'Content-Type: application/json'
200 - Available basket pools
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/pools/basket'
--header 'Content-Type: application/json'
200 - Pool details with assets
Body
404 - Resource not found
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/pools/basket/{id}'
--header 'Content-Type: application/json'
200 - User holdings
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/pools/basket/{id}/holdings'
--header 'Content-Type: application/json'
Calculates investment allocation across assets
200 - Investment preview
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/pools/basket/{id}/preview'
--header 'Content-Type: application/json'
200 - Check result
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/pools/basket/{id}/can-invest'
--header 'Content-Type: application/json'
201 - Investment created
Body
422 - Validation error
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/pools/basket/{id}/invest'
--header 'Content-Type: application/json'
200 - Withdrawal preview
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/pools/basket/{id}/withdrawal-preview'
--header 'Content-Type: application/json'
200 - Check result
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/pools/basket/{id}/can-withdraw'
--header 'Content-Type: application/json'
201 - Withdrawal initiated
Body
422 - Validation error
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/pools/basket/{id}/withdraw'
--header 'Content-Type: application/json'
200 - Deposit list
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/deposits'
--header 'Content-Type: application/json'
200 - Deposit details
Body
404 - Resource not found
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/deposits/{id}'
--header 'Content-Type: application/json'
200 - Available methods
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/deposits/methods'
--header 'Content-Type: application/json'
200 - Deposit address for blockchain
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/deposits/crypto/address/{blockchain}'
--header 'Content-Type: application/json'
201 - Bank transfer instructions generated
Body
422 - Validation error
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/deposits/bank-transfer/initiate'
--header 'Content-Type: application/json'
200 - Bank transfer instructions
Body
404 - Resource not found
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/deposits/bank-transfer/{id}/instructions'
--header 'Content-Type: application/json'
201 - Checkout session created
Body
422 - Validation error
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/deposits/card/initiate'
--header 'Content-Type: application/json'
200 - Payment status
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/deposits/card/{id}/status'
--header 'Content-Type: application/json'
200 - Withdrawal list
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/withdrawals'
--header 'Content-Type: application/json'
200 - Withdrawal details
Body
404 - Resource not found
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/withdrawals/{id}'
--header 'Content-Type: application/json'
200 - Available methods
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/withdrawals/methods'
--header 'Content-Type: application/json'
201 - Withdrawal created
Body
422 - Validation error
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/withdrawals/crypto'
--header 'Content-Type: application/json'
201 - Withdrawal created
Body
422 - Validation error
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/withdrawals/bank-transfer'
--header 'Content-Type: application/json'
200 - Current withdrawal status
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/withdrawals/{id}/status'
--header 'Content-Type: application/json'
200 - Withdrawal cancelled
Body
422 - Cannot cancel (already processed)
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/withdrawals/{id}/cancel'
--header 'Content-Type: application/json'
200 - Years with transactions
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/taxation/years'
--header 'Content-Type: application/json'
200 - Year statistics
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/taxation/stats/{year}'
--header 'Content-Type: application/json'
200 - Transaction list
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/taxation/transactions/{year}'
--header 'Content-Type: application/json'
200 - Realized gains/losses list
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/taxation/realized-gains/{year}'
--header 'Content-Type: application/json'
200 - Interest payments list
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/taxation/interest-payments/{year}'
--header 'Content-Type: application/json'
200 - Export generated
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/taxation/export/csv'
--header 'Content-Type: application/json'
200 - Export generated
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/taxation/export/pdf'
--header 'Content-Type: application/json'
200 - Referred users list
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/referrals'
--header 'Content-Type: application/json'
200 - Referral code and link
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/referrals/code'
--header 'Content-Type: application/json'
200 - Statistics
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/referrals/stats'
--header 'Content-Type: application/json'
200 - Rewards list
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/referrals/rewards'
--header 'Content-Type: application/json'
200 - Portfolio overview
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/dashboard/summary'
--header 'Content-Type: application/json'
200 - Detailed balances by category
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/dashboard/balances'
--header 'Content-Type: application/json'
200 - Active investments list
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/dashboard/investments'
--header 'Content-Type: application/json'
200 - Performance for period
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/dashboard/performance'
--header 'Content-Type: application/json'
200 - Recent activities
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/dashboard/activity'
--header 'Content-Type: application/json'
200 - Chart data points
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/dashboard/charts/portfolio'
--header 'Content-Type: application/json'
200 - Portfolio allocation
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/dashboard/charts/allocation'
--header 'Content-Type: application/json'
200 - KYC verification status
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/kyc/status'
--header 'Content-Type: application/json'
200 - Questionnaire status
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/kyc/questionnaire'
--header 'Content-Type: application/json'
200 - Active subscriptions
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/webhooks/subscriptions'
--header 'Content-Type: application/json'
201 - Subscription created
Body
422 - Validation error
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/webhooks/subscriptions'
--header 'Content-Type: application/json'
200 - Subscription deleted
Body
404 - Resource not found
Body
curl --request DELETE
--url 'https://api.coinstancy.com/api/v4/webhooks/subscriptions/{id}'
--header 'Content-Type: application/json'
200 - Event types list
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/webhooks/events'
--header 'Content-Type: application/json'
200 - Test webhook sent
Body
curl --request POST
--url 'https://api.coinstancy.com/api/v4/webhooks/test'
--header 'Content-Type: application/json'
200 - Delivery history
Body
curl --request GET
--url 'https://api.coinstancy.com/api/v4/webhooks/deliveries'
--header 'Content-Type: application/json'