Skip to main content
POST
Sub-accounts

Authorizations

Authorization
string
header
required

Optional. API key passed via Authorization: Bearer <key>. Required only when API_KEY is configured on the server.

Body

application/json
type
enum<string>
required
Available options:
subAccounts
user
string
required

42-character hex address

Example:

"0xabc..."

Response

Array of sub-account objects

name
string
Example:

"Test"

subAccountUser
string

Sub-account address

master
string

Master account address

clearinghouseState
object

Perp clearinghouse state

spotState
object

Spot clearinghouse state