Skip to main content
POST
Executes a token swap using the Jupiter aggregator, automatically routing through the best available liquidity pools.
Requires authentication via Bearer token. Trading must be enabled in the agent’s policy (allowTrading: true).
Trades are subject to your agent’s policy limits. If the trade value exceeds maxSingleTransactionInUsd or the daily limit, the request is rejected. Enable trading and configure limits via Update policy.

Request body

string
required
Source token to swap from. Accepts a token symbol (e.g., USDC) or mint address.
string
required
Destination token to swap to. Accepts a token symbol (e.g., SOL) or mint address.
number
required
Amount of the source token to swap.
number
default:"50"
Maximum acceptable slippage in basis points. 50 equals 0.5%. The transaction fails if the actual slippage exceeds this value.

Response

boolean
true when the trade succeeds.
object

Errors