> ## Documentation Index
> Fetch the complete documentation index at: https://docs.whitebit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List of Sub-Accounts

> The endpoint returns list of current user [sub-accounts](/glossary#sub-account).

A sub-account created with `email` shows `status` `active` once the end user has set the password from the invitation email; until then `userId` is `null`. Poll this endpoint for `active` before editing the sub-account's permissions, creating its API key or requesting its KYC URL. A sub-account created without an email (`shareKyc: true`) is `active` from the first call.

<Warning>
Rate limit: 1000 requests/10 sec.
</Warning>

<Note>
The API does not cache the response.
</Note>


POST

Copy URL

Copy URL

## Used in these guides

* [Embedded Trading sub-account integration](https://docs.whitebit.com/guides/sub-account-integration.md) — managed sub-accounts, fee-share, and partner onboarding.
* [Wallet-as-a-Service integration](https://docs.whitebit.com/guides/waas-integration.md) — sub-accounts as end-user wallets: deposits, payouts, and per-user API keys.


## OpenAPI

````yaml openapi/private/main_api_v4.yaml POST /api/v4/sub-account/list
openapi: 3.0.3
info:
  title: WhiteBIT Private HTTP API V4
  description: |
    WhiteBIT Private HTTP API V4 for Main balance changes.

    Base URL: https://whitebit.com

    All endpoints return time in Unix-time format.
    All endpoints return either a JSON object or array.
    For receiving responses from API calls please use http method POST.
  version: 4.0.0
  contact:
    name: WhiteBIT Support
    email: support@whitebit.com
    url: https://whitebit.com
servers:
  - url: https://whitebit.com
    description: WhiteBIT Global Server
  - url: https://whitebit.eu
    description: WhiteBIT EU Server
  - url: https://whitebit.tr
    description: WhiteBIT TR Server
  - url: https://whitebit.ge
    description: WhiteBIT GE Server
security:
  - ApiKeyAuth: []
    PayloadAuth: []
    SignatureAuth: []
tags:
  - name: Main Account
    description: Main balance and related operations
  - name: Deposit
    description: Cryptocurrency and fiat deposit operations
  - name: Withdraw
    description: Cryptocurrency and fiat withdrawal operations
  - name: Transfer
    description: Balance transfer operations
  - name: Codes
    description: WhiteBIT codes operations
  - name: Crypto Lending - Fixed
    description: Fixed crypto lending plans
  - name: Crypto Lending - Flex
    description: Flexible crypto lending plans
  - name: Fees
    description: Fee information
  - name: Sub-Account
    description: Sub-account management
  - name: Sub-Account API Keys
    description: Sub-account API key management
  - name: Mining Pool
    description: Mining pool operations
  - name: Credit Line
    description: Credit line information
  - name: JWT
    description: JWT token management
  - name: Travel Rule
    description: Travel Rule compliance endpoints for deposits and withdrawals
paths:
  /api/v4/sub-account/list:
    post:
      tags:
        - Sub-Account
      summary: List of Sub-Accounts
      description: >
        The endpoint returns list of current user
        [sub-accounts](/glossary#sub-account).


        A sub-account created with `email` shows `status` `active` once the end
        user has set the password from the invitation email; until then `userId`
        is `null`. Poll this endpoint for `active` before editing the
        sub-account's permissions, creating its API key or requesting its KYC
        URL. A sub-account created without an email (`shareKyc: true`) is
        `active` from the first call.


        <Warning>

        Rate limit: 1000 requests/10 sec.

        </Warning>


        <Note>

        The API does not cache the response.

        </Note>
      operationId: listSubAccounts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                search:
                  type: string
                  description: >-
                    Returns only sub-accounts whose alias or email contains this
                    text. To find one sub-account by alias, compare `alias` in
                    the results exactly, because the search also returns
                    sub-accounts whose alias or email contains the text as part
                    of a longer value.
                  example: trading
                limit:
                  type: integer
                  minimum: 1
                  maximum: 100
                  default: 30
                  example: 30
                offset:
                  type: integer
                  minimum: 0
                  maximum: 10000
                  default: 0
                  example: 0
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  offset:
                    type: integer
                  limit:
                    type: integer
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/SubAccount'
        '400':
          description: Request validation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    SubAccount:
      type: object
      properties:
        id:
          type: string
          description: Sub-account identifier
          example: 8e667b4a-0b71-4988-8af5-9474dbfaeb51
        alias:
          type: string
          description: Sub-account alias/name
          example: trading_bot
        userId:
          type: string
          description: >-
            User identifier associated with account. In List of Sub-Accounts,
            `null` for a sub-account created with `email` until the end user
            sets the password
          nullable: true
          example: u-12345
        email:
          type: string
          description: Sub-account email (masked)
          example: s***@example.com
        status:
          type: string
          description: >-
            Sub-account status. In List of Sub-Accounts, `active` once the end
            user of a sub-account created with `email` has set the password; a
            sub-account created without an email (`shareKyc: true`) is `active`
            from the first list call
          example: active
        color:
          type: string
          description: Sub-account color
          example: '#FF5733'
        kyc:
          type: object
          description: KYC information
          properties:
            shareKyc:
              type: boolean
              description: Whether KYC is shared with main account
              example: false
            kycStatus:
              type: string
              description: KYC status
              example: verified
        permissions:
          type: object
          description: Sub-account permissions
          properties:
            spotEnabled:
              type: boolean
              description: Spot trading enabled
              example: true
            collateralEnabled:
              type: boolean
              description: Collateral trading enabled
              example: false
    Error:
      type: object
      properties:
        code:
          type: integer
        message:
          type: string
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-TXC-APIKEY
      description: The public WhiteBIT API key.
    PayloadAuth:
      type: apiKey
      in: header
      name: X-TXC-PAYLOAD
      description: Base64-encoded JSON request body.
    SignatureAuth:
      type: apiKey
      in: header
      name: X-TXC-SIGNATURE
      description: >-
        HMAC-SHA512 signature of the payload, hex-encoded. Computed as
        hex(HMAC-SHA512(payload, api_secret)).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.