POST
/
v0
/
generic
/
visualize_portfolio
/
get
curl --request POST \
  --url https://api.compasslabs.ai/v0/generic/visualize_portfolio/get \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "chain": "arbitrum:mainnet",
  "user": "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
}'
{
  "image": "data:image/svg+xml;base64, ..."
}

Authorizations

x-api-key
string
header
required

Your Compass API key. Get your key here.

Body

application/json
chain
enum<string>
required

The chain to use.

Available options:
base:mainnet,
ethereum:mainnet,
arbitrum:mainnet
user
string
required

The address of the user.

Example:

"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45"

Response

200
application/json
Successful Response
image
string
required

Base64 encoded SVG image

Example:

"data:image/svg+xml;base64, ..."

Was this page helpful?