# Hyperliquid — Retrieve a user's subaccounts

Get Hyperliquid Subaccounts data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no proxies required. Powered by Hyperliquid, pass parameters such as type, user, and retrieve structured data including structured JSON records, identifiers, and response metadata for account navigation, and account identity, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/hyperliquid/hyperliquid-retrieve-a-user-s-subaccounts/184c0411-bf6a-4520-a325-07980de38bcc/
API ID: 184c0411-bf6a-4520-a325-07980de38bcc
Provider: hyperliquid
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/hyperliquid/info/sub-accounts
Page update time: 2026-12-03T02:49:34.581Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:34.148Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Hyperliquid Subaccounts API

POST type="subAccounts" and user. Preserve an unavailable null result separately from an available collection. For subsequent account-specific queries, use the actual target account’s address rather than reusing an agent-wallet identity.

## What You Can Build

- **Account navigation**: Handle available and unavailable subaccount information.
- **Account identity**: Retain the target address for later account-specific queries.

## Response Scope

The response can be null when subaccount information is unavailable. Preserve that state separately from a returned collection.

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Hyperliquid — Retrieve a user's subaccounts request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "additionalProperties": false,
      "examples": [
        {
          "type": "subAccounts",
          "user": "0x677d831aef5328190852e24f13c46cac05f984e7"
        }
      ],
      "properties": {
        "type": {
          "const": "subAccounts",
          "description": "Fixed native Info query discriminator.",
          "enum": [
            "subAccounts"
          ],
          "example": "subAccounts",
          "type": "string"
        },
        "user": {
          "description": "Address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000.",
          "example": "0x677d831aef5328190852e24f13c46cac05f984e7",
          "pattern": "^0x[0-9a-fA-F]{40}$",
          "type": "string"
        }
      },
      "required": [
        "type",
        "user"
      ],
      "type": "object",
      "description": "Retrieve a user's subaccounts Documentation prepared only; runtime not verified."
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "null"
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/hyperliquid/info/sub-accounts' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "type": "subAccounts",
  "user": "0x677d831aef5328190852e24f13c46cac05f984e7"
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
null
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### What should I do with a null result?
Keep it as unavailable subaccount information. Do not create an account record or convert it to a numeric account count.

### Can I query several users in one request?
No. This implementation accepts one user address with its fixed type.

### Does the query create a subaccount?
No. It reads subaccount information and does not submit an account-creation action.

### Which address should later account queries use?
Use the actual account address whose data you need. Master, subaccount and agent-wallet addresses have different roles.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- hyperliquid: https://openany.si/hyperliquid/hyperliquid-retrieve-a-user-s-subaccounts/184c0411-bf6a-4520-a325-07980de38bcc/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
