Skip to main content
POST
/
clients
/
me
/
integrations
/
0x
/
swap
/
sources
Get available swap sources
curl --request POST \
  --url https://api.portalhq.io/api/v3/clients/me/integrations/0x/swap/sources \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "chainId": "<string>",
  "zeroXApiKey": "<string>"
}
'
{
  "data": {
    "rawResponse": {
      "sources": [
        "<string>"
      ],
      "zid": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

Client API Key or Client Session Token (CST). Pass as a Bearer token in the Authorization header.

Body

application/json
chainId
string
required

Chain ID in CAIP-2 format (e.g. eip155:1).

zeroXApiKey
string

Optional 0x API key. If not provided, Portal uses a managed key.

Response

Swap sources retrieved successfully

data
object