---
title: "Searches for accounts based on the provided request."
method: POST
path: "/api/Account/search"
tags: ["Account"]
---

# Searches for accounts based on the provided request.

`POST /api/Account/search`

## Request body

- SearchAccountRequest
  - `onlyActiveAccounts` boolean, required

## Response `200`

The search account response.

- SearchAccountResponse
  - `success` boolean, required
  - `errorCode` 0, required — 0 = Success
  - `errorMessage` string
  - `accounts` TradingAccountModel[]
    - `id` integer, required
    - `name` string, required
    - `balance` number, required
    - `canTrade` boolean, required
    - `isVisible` boolean, required
    - `simulated` boolean, required

---

[API](https://skmtc.dev/topstepx/apis/projectx-gateway-api.md) · [All operations](https://skmtc.dev/topstepx/apis/projectx-gateway-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/topstepx/projectx-gateway-api/revisions/688252f4f704/schema)
