Skip to main content
POST
/
v1
/
accounts
/
subaccounts
Create a new Subaccount
curl --request POST \
  --url https://sandbox-api.borderless.xyz/v1/accounts/subaccounts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "identityId": "cm9db4g2s2r7ro224ra6u1qvl",
  "name": "Main Account",
  "assets": [
    {
      "asset": "ETH",
      "address": "0xE79a68B87544ed42Cc5aA805bb056201e7942D3A"
    }
  ]
}
'
{
  "id": "<string>",
  "name": "<string>",
  "addresses": [
    {
      "id": "<string>",
      "asset": "POL",
      "address": "<string>"
    }
  ],
  "identityId": "<string>",
  "createdAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
  • Standalone Subaccount
  • Dfns Subaccount
  • Fireblocks Subaccount
  • Utila Subaccount
  • MultiProvider Subaccount
identityId
string
required

The id of the identity associated with the account. Learn more at Identity Guide.

Required string length: 25
Example:

"cm9db4g2s2r7ro224ra6u1qvl"

name
string
required

A unique identifier for your account, allowing you to distinguish it from other accounts.

Required string length: 3 - 50
Example:

"Main Account"

assets
object[]

An array of assets associated with blockchain addresses. Refer to the Own Managed Address Documentation.

Response

Successfully created Subaccount data.

id
string
required
name
string
required
addresses
object[]
required
identityId
string
required
createdAt
string<date-time>
required