---
title: "private/get_subaccounts"
method: POST
path: "/private/get_subaccounts"
tags: ["Subaccounts"]
---

# private/get_subaccounts

`POST /private/get_subaccounts`

## Request

- Base URL: `https://api.derive.xyz/v3`
- URL: `https://api.derive.xyz/v3/private/get_subaccounts`
- Auth: API key in header `X-DeriveWallet` and API key in header `X-DeriveTimestamp` and API key in header `X-DeriveSignature`

Returns the wallet address and the sorted list of subaccount IDs owned by that wallet. Yields an empty list if the wallet has no subaccounts.

## Request body

- GetSubaccountsRequest
  - `wallet` string, required: 20-byte Ethereum address as a 0x-prefixed lowercase hex string.

## Response `200`

Success

- PrivateGetSubaccountsResponse
  - `subaccount_ids` integer[], required
  - `wallet` string, required

## Other responses

- `default`: JSON-RPC error (see Error Codes)

## Changes

- **2026-10-20** `0c500202be49`: 2 info
  - the endpoint scheme security `DeriveWallet AND DeriveTimestamp AND DeriveSignature` was added to the API
  - added the media type `application/json` for the response with the status `default`

[Operation history](https://skmtc.dev/lyra/apis/derive-v3-api/changes/private/get_subaccounts/post.md)

---

[API](https://skmtc.dev/lyra/apis/derive-v3-api.md) - [All operations](https://skmtc.dev/lyra/apis/derive-v3-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lyra/apis/derive-v3-api/revisions/415f8a73b10c?raw)
