Error Response Format
All API errors return a JSON body with adetail field:
| Status | Meaning |
|---|---|
| 400 | Bad request / invalid input |
| 404 | Resource not found |
| 422 | Validation error |
| 500 | Internal server error |
Common Errors
Vault Not Found (404)
GET /v1/vaults to get valid vault IDs.
No Route Found (400)
- Token not supported on the source chain
- Amount too small to bridge
- Liquidity unavailable for this pair
Zero Output Amount (400)
Contract Calls Quote Unavailable (400)
No Deposit Router (400)
Validation Error (422)
Best Practices
- Always check for
approval- It can benullfor native token deposits - Handle quote expiry - Quotes can become stale. If the build fails, fetch a new quote
- Poll with backoff - For status checks, start at 15s intervals. Don’t poll faster than every 10 seconds
- Show the LiFi explorer link - Give users
tracking.lifi_explorerso they can independently track their bridge transfer