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

# List Accounts

> List trading accounts with customer/group info, respecting RBAC scope.



## OpenAPI

````yaml /openapi.json get /accounts
openapi: 3.1.0
info:
  title: Slate API
  version: 1.0.0
  description: Trading infrastructure API.
servers:
  - url: https://api.{your-broker}.slate-labs.com
    variables:
      your-broker:
        default: broker
security: []
tags:
  - name: Authentication
  - name: API Tokens
  - name: Customers
  - name: Accounts
  - name: Orders
  - name: Instruments & Groups
  - name: Transactions
  - name: Payments
  - name: Transfers
  - name: Risk
  - name: Workflow & CRM
  - name: Messaging
  - name: Integrations
  - name: Webhooks
  - name: Compliance
  - name: Promo codes
  - name: Reporting
  - name: Audit
  - name: Fraud & moderation
  - name: Broker settings
  - name: Users
  - name: Roles & Teams
  - name: Streams (SSE)
  - name: Simulator
  - name: Observability
  - name: Prop trading
paths:
  /accounts:
    get:
      tags:
        - Accounts
      summary: List Accounts
      description: List trading accounts with customer/group info, respecting RBAC scope.
      operationId: list_accounts_accounts_get
      parameters:
        - name: group_id
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  type: string
                  format: uuid
              - type: 'null'
            title: Group Id
        - name: customer_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Customer Id
        - name: currency
          in: query
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                type: array
              - type: 'null'
            title: Currency
        - name: is_active
          in: query
          required: false
          schema:
            anyOf:
              - type: boolean
              - type: 'null'
            title: Is Active
        - name: account_type
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Account Type
        - name: retention_status
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Filter accounts whose customer has this retention_status
              (active/churning/dormant)
            title: Retention Status
          description: >-
            Filter accounts whose customer has this retention_status
            (active/churning/dormant)
        - name: margin_call_risk
          in: query
          required: false
          schema:
            type: boolean
            description: Filter to accounts approaching margin call
            default: false
            title: Margin Call Risk
          description: Filter to accounts approaching margin call
        - name: search
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Search
        - name: has_open_positions
          in: query
          required: false
          schema:
            anyOf:
              - type: boolean
              - type: 'null'
            description: >-
              True: accounts with ≥1 open position (exact EXISTS check). False:
              no open positions.
            title: Has Open Positions
          description: >-
            True: accounts with ≥1 open position (exact EXISTS check). False: no
            open positions.
        - name: balance_min
          in: query
          required: false
          schema:
            anyOf:
              - type: number
              - type: 'null'
            description: >-
              Inclusive lower bound on trading_accounts.balance (account
              currency). Authoritative Postgres value.
            title: Balance Min
          description: >-
            Inclusive lower bound on trading_accounts.balance (account
            currency). Authoritative Postgres value.
        - name: balance_max
          in: query
          required: false
          schema:
            anyOf:
              - type: number
              - type: 'null'
            description: >-
              Inclusive upper bound on trading_accounts.balance (account
              currency). Authoritative Postgres value.
            title: Balance Max
          description: >-
            Inclusive upper bound on trading_accounts.balance (account
            currency). Authoritative Postgres value.
        - name: equity_min
          in: query
          required: false
          schema:
            anyOf:
              - type: number
              - type: 'null'
            description: >-
              Inclusive lower bound on trading_accounts.equity. NOTE: equity is
              a snapshot column refreshed ~60s by the PnL engine — may lag the
              live row value shown from Redis.
            title: Equity Min
          description: >-
            Inclusive lower bound on trading_accounts.equity. NOTE: equity is a
            snapshot column refreshed ~60s by the PnL engine — may lag the live
            row value shown from Redis.
        - name: equity_max
          in: query
          required: false
          schema:
            anyOf:
              - type: number
              - type: 'null'
            description: >-
              Inclusive upper bound on trading_accounts.equity. NOTE: equity is
              a snapshot column refreshed ~60s by the PnL engine — may lag the
              live row value shown from Redis.
            title: Equity Max
          description: >-
            Inclusive upper bound on trading_accounts.equity. NOTE: equity is a
            snapshot column refreshed ~60s by the PnL engine — may lag the live
            row value shown from Redis.
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
            title: Page
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            maximum: 500
            minimum: 1
            default: 50
            title: Page Size
        - name: sort_by
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Sort By
        - name: sort_dir
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            default: desc
            title: Sort Dir
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - bearerAuth: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````