These are the v1 (pre-BLS) docs, kept for reference — this page
describes the retired flow. The current design is under v2 in the
version picker.
ACTIVE, PAUSED, EXHAUSTED, CLOSED) as the Maker manages their liquidity.
Most ad endpoints return blockchain transaction data (contract address, signature, auth token) that your application must submit to the smart contract to finalize the operation on-chain. After the on-chain transaction is confirmed, call the corresponding /confirm endpoint to notify the relayer.
All amounts are expressed in the smallest unit of the token (e.g., wei for EVM tokens, stroops for Stellar). Always pass amounts as decimal strings, not numbers, to avoid integer overflow.
GET /v1/ads
List ads with optional filters. Returns a paginated list.Query parameters
Response fields
Array of ad objects. See the Ad object fields section below.
GET /v1/ads/:id
Retrieve a single ad by its UUID.Path parameters
Response fields
Returns a single Ad object.POST /v1/ads/create
Create a new liquidity ad. The response contains signed transaction data that you must submit to theAdManager smart contract on-chain to activate the ad. After the transaction is mined, call POST /v1/ads/:id/confirm with the transaction hash.
Requires authentication.
Request body
UUID of the route this ad will serve. Determines the source and destination token pair.
Initial amount to deposit into the ad pool, in the smallest token unit (e.g.,
"1000000000" for 1000 USDC with 6 decimals).Response fields
POST /v1/ads/:id/fund
Add more tokens to an existing ad’s liquidity pool. Returns signed transaction data to submit to theAdManager contract. After the transaction is confirmed, call POST /v1/ads/:id/confirm.
Requires authentication.
Path parameters
Request body
Response fields
POST /v1/ads/:id/withdraw
Initiate a partial withdrawal from an ad’s pool. Returns signed transaction data to submit to theAdManager contract. After the transaction is confirmed, call POST /v1/ads/:id/confirm.
Requires authentication.
Path parameters
Request body
Response fields
POST /v1/ads/:id/confirm
Notify the relayer that a previously-initiated blockchain transaction (create, fund, or withdraw) has been confirmed on-chain. This updates the ad’s state in the relayer database. Requires authentication.Path parameters
Request body
Response fields
PATCH /v1/ads/:id/update
Update mutable parameters on an existing ad. You can change the ad’s status, min/max trade amounts, or metadata without an on-chain transaction. Requires authentication.Path parameters
Request body
Response fields
POST /v1/ads/:id/close
Permanently close an ad and withdraw all remaining funds. Returns signed transaction data to submit to theAdManager contract. This action is irreversible.
Requires authentication.
Path parameters
Request body
Response fields
Ad object fields
The following fields appear on every ad object returned byGET /v1/ads and GET /v1/ads/:id.