Skip to main content
POST
/
execution
/
withdraw
Withdraw funds
curl --request POST \
  --url https://api.agg.market/execution/withdraw \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-app-id: <api-key>' \
  --data '
{
  "amountRaw": "<string>",
  "tokenSymbol": "<string>",
  "destinationAddress": "<string>",
  "destinationChainId": 123
}
'
{
  "sources": [
    {
      "chainId": 123,
      "amountRaw": "<string>",
      "txHash": "<string>",
      "bridgeOperationId": "<string>"
    }
  ]
}

Authorizations

x-app-id
string
header
required

Your application ID. Required for all app-tier and user-tier routes.

Authorization
string
header
required

JWT access token returned by POST /auth/verify. Required for user-tier routes.

Body

application/json

Body

amountRaw
string
required
tokenSymbol
string
required
destinationAddress
string
required
destinationChainId
number

Response

200

sources
object[]
required