Overview
Endpoints
Learn more about the different endpoints of Swap API:
GET /rfq/pool/v2/{CHAIN_ID} - Get information about a blockchain network supported by clipper.
Authorization
In order to prevent abuse on the API we implement rate limits on the requests, to overcome these limits as an aggregator get in contact with the support team to get API credentials (user and password) here.
For API v2 the api key auth is required.
The API uses the API KEY authentication method. You have to include the credentials in the header x-api-key
.
Example: If your api key is TzuiYrpRgN2
Errors
Common Error Codes
400
Bad Request - Invalid data in the request
401
Unauthorized
403
Forbidden Error
500
Internal Server Error
503
External Service Error
Error Format
error_code
and data
are not always present
Examples
If we make a request to quote endpoint and the body does not have the field
chain_id
(required param), the API response will look like similar to this:
If we make a request to quote endpoint and we send an
input_asset_symbol
that clipper does not support, the API response will look like similar to this
If we make a request to quote endpoint and we send invalid credentials
Clipper Error Codes
These codes appear in the field errorCode
422
Invalid input data
409
Quote problems
Last updated
Was this helpful?