Coinastr Public API — Crypto & XMR Swap Integration
Integrate instant crypto exchange into your product. Set your own margin, control your earnings, and let us handle the liquidity.
Who uses the Coinastr API?
Crypto Services
Add a full exchange to your wallet, DeFi app, or platform with a few API calls.
Aggregators
Pull live rates and swap quotes for your price comparison or data product.
Wallets
Let your users swap assets in-app — your brand, our liquidity.
Payment Systems
Accept any crypto and auto-convert to your settlement coin.
Coin Websites
Display live swap quotes and an exchange button on your coin project page.
Set Your Margin
Add any % markup for your users. We process swaps — you keep the difference.
API Endpoints
Base URL:
?api_key=YOUR_KEY or header X-API-Key: YOUR_KEY.
Request an API key →
Error Codes
200
OK
Request succeeded
400
Bad Request
Missing or invalid parameters — check the error message field
401
Unauthorized
Invalid, expired, or missing API key
422
Unprocessable
Amount below minimum or above maximum allowed
429
Rate Limited
Too many requests — max 60/minute per API key
500
Server Error
Internal error — safe to retry after 5 seconds
Rate Limits & Notes
- ⚡ Rate limit: 60 requests/minute per API key. Headers
X-RateLimit-RemainingandX-RateLimit-Resetare returned on each response. - 🔄 For swap status polling, use 15–30 second intervals — do not poll faster than every 5 seconds.
- 📦 All responses are JSON with a top-level
errorfield on failures. - 🔐 Never expose your API key in client-side JavaScript — proxy requests through your backend server.
Ready to integrate?
API access is available for verified partners. Contact us to get credentials and access to our sandbox environment for testing.
Request API Access →