Skip to main content

Add Account

This API allows you to add accounts to existing vaults.

API endpoint: POST - /api/v1/vaults/accounts

KeyValueDescription
entity_idstringUnique identifier for the entity for which you are adding the account
currency_codestringCurrency for which account needs to be created. (USD, USDC_ETH, USDT_ETH, USDC_SOL etc.)
namestringAccount name

Here is an example request body:

{
"entity_id":"iihr42_XgwZ2aytTpbaCGxwYfSSVo_04_27",
"currency_code":"USDT_ETH",
"name": "My USDT Account"
}

Success response code: 201 (created)

KeyValueDescription
idstringUnique ID of the account
currency_codestringCurrency code of the account
statusstringStatus of the account (e.g. "pending", "active")
account_numberstringAccount number of the account generated

Example response body:

{
"data": {
"id": "roma_snKJBJKBADKB7BJ_07_09",
"currency_code": "USDC_ETH",
"status": "active",
"account_number":"0xBF0E1204a2F9C4ad6CabbC9130f2D74A68C2DefB"
}
}