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

# List application users

> List application users.

 Returns a paginated list of the application's users. Public: the
 application is selected by `client_id`.



## OpenAPI

````yaml /proto-openapi/api/openapi.yaml get /api/v1/applications/users
openapi: 3.0.3
info:
  title: Monaco Protocol API
  description: REST API for the Monaco Protocol hybrid CLOB exchange.
  version: 1.0.0
servers:
  - url: https://staging.apimonaco.xyz
    description: Staging server (Testnet)
security: []
tags:
  - name: AccountsService
  - name: ApplicationsService
  - name: AuthService
  - name: BuildercodeRewardsService
  - name: CopyTradingService
  - name: DelegatedAgentsService
  - name: FaucetService
  - name: FeesService
  - name: HealthService
  - name: ManagedMarketsService
    description: |-
      Wallet-authenticated maker assignments. The signed session must match both
       configured maker user and application. Owner IDs are process fences, never auth.
       Only wallet sessions are supported; delegated-agent sessions receive 403.
  - name: MarginAccountsService
    description: |-
      Current public isolated-margin semantics:
       - a user has one parent margin account per application scope
       - opening orders create or reuse isolated position buckets under that parent
       - parent account creation is handled internally by margin workflows
  - name: MarketService
  - name: OrderbookService
  - name: OrdersService
  - name: PositionsService
    description: |-
      Current public isolated-margin semantics:
       - positions link to a parent margin account and, when applicable, a bucket id
       - opening orders create or reuse isolated position buckets under the parent
       - users can open another isolated position by reusing the parent account with a different market bucket
  - name: PulseService
  - name: SweeperService
  - name: TraderCodeService
  - name: TradesService
  - name: WhitelistService
  - name: WithdrawalsService
paths:
  /api/v1/applications/users:
    get:
      tags:
        - ApplicationsService
        - Applications
      summary: List application users
      description: |-
        List application users.

         Returns a paginated list of the application's users. Public: the
         application is selected by `client_id`.
      operationId: list_application_users
      parameters:
        - name: pageSize
          in: query
          schema:
            type: integer
            format: uint32
            minimum: 1
            maximum: 1000
            default: 20
          description: Items per page (max 1000)
        - name: isActive
          in: query
          schema:
            type: boolean
        - name: accountType
          in: query
          schema:
            type: string
            enum:
              - master
              - sub
            minLength: 1
          description: Account type filter
        - name: address
          in: query
          schema:
            type: string
            minLength: 1
          description: Wallet address
          required: true
        - name: pageToken
          in: query
          description: |-
            Pagination cursor with two states:
              - Omitted or empty string (""): start a cursor walk with no prior
                position.
              - Non-empty: an opaque cursor from a previous response's
                `nextPageToken`; results resume immediately after that position.

             Ordered by user id ascending, NOT newest-first: `users.created_at` is
             nullable, so it cannot be a total keyset key, and excluding the rows
             without one would hide users from the listing an application
             reconciles against.

             `total` and `totalPages` are populated — bounded by the server count
             ceiling, see `totalCapped`.

             Filters must match the request that produced the token, or the request
             is rejected 400.
          schema:
            type: string
        - name: clientId
          in: query
          description: Application client ID
          schema:
            type: string
            minLength: 1
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListAppUsersResponse'
        '400':
          description: Bad request (missing client_id, invalid filter or page token)
        '404':
          description: No active application has this client_id
        '429':
          description: >-
            Public read rate limit exceeded for this client IP; retry after the
            interval in details.retryAfter
        '500':
          description: Internal server error
components:
  schemas:
    ListAppUsersResponse:
      type: object
      properties:
        users:
          type: array
          items:
            $ref: '#/components/schemas/AppUser'
          nullable: true
        total:
          example: 50
          type: integer
          description: >-
            Number of users matching the filter, bounded by the server ceiling —
            a lower bound when totalCapped is true.
          format: uint32
          nullable: true
        pageSize:
          example: 20
          type: integer
          description: Items per page
          format: uint32
          nullable: true
        totalPages:
          example: 3
          type: integer
          description: >-
            Number of pages at this pageSize, bounded by the server ceiling — a
            lower bound when totalCapped is true.
          format: uint32
          nullable: true
        nextPageToken:
          type: string
          description: >-
            Cursor for the next page, minted from the last row of an
            over-fetched
             page: this listing is one ordered read, so a page shorter than
             `pageSize` proves the walk is exhausted and this is empty.
          nullable: true
        totalCapped:
          example: false
          type: boolean
          description: >-
            True when more than the server ceiling of users matched, so the
            count stopped at the ceiling and total/totalPages are a lower bound.
          nullable: true
    AppUser:
      type: object
      properties:
        id:
          example: 123e4567-e89b-12d3-a456-426614174000
          type: string
          description: User UUID
          format: uuid
          nullable: true
        address:
          example: '0x742d35Cc6634C0532925a3b8D4060f31E2C3d8B5'
          type: string
          description: Wallet address
          nullable: true
          pattern: ^0x[0-9a-fA-F]{40}$
          minLength: 42
          maxLength: 42
        username:
          example: trader123
          type: string
          description: Display username
          nullable: true
        accountType:
          example: master
          type: string
          description: 'Account type: master or sub'
          nullable: true
        createdAt:
          example: '2023-11-13T10:30:00Z'
          type: string
          description: Account creation timestamp (ISO 8601)
          nullable: true
        isActive:
          example: true
          type: boolean
          description: Whether the user account is active
          nullable: true
        masterAccountId:
          type: string
          description: Master account ID (for sub-accounts)
          format: uuid
          nullable: true
        updatedAt:
          example: '2023-11-13T10:35:00Z'
          type: string
          description: Last update timestamp (ISO 8601)
          nullable: true

````

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