https://api.spreadefi.io/v1application/jsonX-Api-Key headerX-Api-Key header on every request:X-Api-Key: your_api_key_here401 Unauthorized.GET /estimate to show the user how much they will receive.POST /exchanges to open the exchange and get a deposit address.GET /exchanges/{id} (poll) to follow the status until finished.| Status | Meaning |
|---|---|
waiting | Awaiting the user's deposit |
confirming | Deposit received, waiting for network confirmations |
exchanging | Assets are being swapped |
sending | Funds are being sent to the recipient |
finished | Completed successfully |
expired | No deposit received before expiry |
failed | Something went wrong |
refunded | Funds returned to the refund address |
429 Too Many Requests. Contact support for higher limits.{ "code": 401, "error": "Unauthorized", "description": "Invalid API key" }| Code | Meaning |
|---|---|
| 400 | Bad request |
| 401 | Invalid API key |
| 404 | Resource not found |
| 422 | Validation error |
| 429 | Rate limit exceeded |
| 500 | Internal server error |