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

# Caller-scoped account search (backs the terminal CMD search)

> Caller-scoped account search (backs the terminal CMD search)



## OpenAPI

````yaml openapi.oms.en.json GET /api/v1/util/search
openapi: 3.0.3
info:
  title: VOS OMS Public API
  version: 1.0.0
  description: >-
    Public REST API surface for Vero OMS. Authentication requests use
    platform.verolabs.co. REST API requests use api-oms.verolabs.co.
servers:
  - url: https://platform.verolabs.co
    description: Authentication host
  - url: https://api-oms.verolabs.co
    description: REST API host
security: []
tags:
  - name: Authentication
    description: Account authentication and password recovery.
  - name: Trading
    description: Order entry, quote, IOI, and trading activity APIs.
  - name: Portfolio & Risk
    description: Accounts, holdings, mappings, and risk-rule read APIs.
  - name: Administration
    description: Permissions, groups, workflow, reference data, and audit APIs.
  - name: System & Diagnostics
    description: Health and latency endpoints.
paths:
  /api/v1/util/search:
    get:
      tags:
        - Administration
      summary: Caller-scoped account search (backs the terminal CMD search)
      description: >-
        Returns only the accounts the calling user is permitted on whose code
        matches `q` (case-insensitive substring).


        Requires `Authorization: Bearer <jwt>` from `POST /api/auth/login`.
      operationId: get_api_v1_util_search
      parameters:
        - name: q
          in: query
          description: Optional case-insensitive substring to match account codes.
          schema:
            type: string
        - name: limit
          in: query
          description: Default 50, capped at 200.
          schema:
            type: integer
            minimum: 1
            maximum: 200
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchAccountsResponse'
      security:
        - bearerAuth: []
      servers:
        - url: https://api-oms.verolabs.co
components:
  schemas:
    SearchAccountsResponse:
      type: object
      properties:
        query:
          type: string
          description: Query value for SearchAccountsResponse.
        accounts:
          type: array
          items:
            $ref: '#/components/schemas/Grant'
          description: Accounts returned by the search response.
      description: SearchAccountsResponse schema.
    Grant:
      type: object
      properties:
        user_id:
          type: string
          description: User identifier.
        account_code:
          type: string
          description: Account code used by administration and mapping records.
        level:
          type: string
          enum:
            - VIEW
            - TRADE
            - ADMIN
          description: Permission level.
        granted_by:
          type: string
          description: User that granted the permission.
        created_at:
          type: string
          format: date-time
          description: Timestamp when the record was created.
        updated_at:
          type: string
          format: date-time
          description: Timestamp when the record was last updated.
      description: Grant schema.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````