Vault requests

Create an asset vault

Creates a token's asset vault for you, on an EVM chain or on Solana, when the token has a price and passes our token check, and the app shows it once our team approves it. Otherwise the request is queued for our team, and the answer says why.

POST
/api/vaults/create

Authorization

X-API-Key<token>

Your API key. Authorizing a swap or opening a market takes a key issued to your integration, and the shared key the docs fill in reads and quotes only.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/vaults/create" \  -H "Content-Type: application/json" \  -d '{    "chainId": 8453,    "token": "0x940181a94A35A4569E4529A3CDfB74e38FD98631"  }'
{  "status": "created",  "chainId": 8453,  "token": "0x940181a94A35A4569E4529A3CDfB74e38FD98631",  "assetId": "AERO",  "txHash": "0x5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c",  "shown": false,  "message": "the vault is created, and it appears in the app once our team approves it"}
{  "status": "created",  "chainId": 1,  "token": "string",  "assetId": "string",  "txHash": "string",  "shown": true,  "message": "string"}
{  "error": "string",  "code": "string",  "message": "string",  "details": {},  "requestId": "string"}
{  "error": "string",  "code": "string",  "message": "string",  "details": {},  "requestId": "string"}
{  "error": "string",  "code": "string",  "message": "string",  "details": {},  "requestId": "string"}