Skip to main content
GET
/
accounts
List Accounts
curl --request GET \
  --url https://api.example.com/accounts

List Accounts

Returns all sub-accounts belonging to the authenticated Prime Account.

Request

GET /accounts
No parameters required.

Examples

curl https://prime-api.legend.xyz/accounts \
  -H "Authorization: Bearer $LEGEND_QUERY_KEY"
Response
{
  "accounts": [
    {
      "external_id": "acc_2o0yiljtp378",
      "signer_type": "eoa",
      "signer_address": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18",
      "legend_wallet_address": "0xc40897f38bc3d4e4d17f9daf46d2a13b4c47642f",
      "created_at": "2025-06-15T10:30:00Z"
    },
    {
      "external_id": "acc_gmi200ohuhq6",
      "signer_type": "eoa",
      "signer_address": "0x8Ba1f109551bD432803012645Ac136ddd64DBA72",
      "legend_wallet_address": "0x8d63d02feb8910736c575808a1691cd70325bbe3",
      "created_at": "2025-06-16T09:15:00Z"
    }
  ]
}

Response fields

FieldTypeDescription
accountsarrayList of sub-account objects
accounts[].external_idstringUnique identifier (acc_ prefix)
accounts[].signer_typestringSigner type ("eoa")
accounts[].signer_addressstringSigner’s Ethereum address
accounts[].legend_wallet_addressstringOn-chain wallet address
accounts[].created_atstringISO 8601 timestamp