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

# Count app users

> <Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Returns how many users the app has.

The count covers the people who signed up to the app or were invited to it. It leaves out accounts Base44 added to the app on its own, such as workspace admins and support staff granted access, and it leaves out the short-lived accounts a test run creates.

Row-level security applies, so a `User` entity whose read rule narrows what a caller sees returns that narrower number.

This endpoint is limited to 100 requests per minute per app, shared with the app's other user listing calls.

<Note>This endpoint accepts a personal API key belonging to a user with editor access to the app. Workspace API keys are not accepted.</Note>



## OpenAPI

````yaml /developers/references/app-management/app-management-openapi.json get /api/apps/{app_id}/entities/User/count
openapi: 3.1.0
info:
  title: Base44 App Management API
  version: 1.0.0
servers:
  - url: https://app.base44.com
security:
  - ApiKeyAuth: []
paths:
  /api/apps/{app_id}/entities/User/count:
    get:
      summary: Count app users
      description: >-
        <Info>This API is in beta. Endpoints, fields, and behavior may still
        change, so avoid depending on it in production.</Info>


        Returns how many users the app has.


        The count covers the people who signed up to the app or were invited to
        it. It leaves out accounts Base44 added to the app on its own, such as
        workspace admins and support staff granted access, and it leaves out the
        short-lived accounts a test run creates.


        Row-level security applies, so a `User` entity whose read rule narrows
        what a caller sees returns that narrower number.


        This endpoint is limited to 100 requests per minute per app, shared with
        the app's other user listing calls.


        <Note>This endpoint accepts a personal API key belonging to a user with
        editor access to the app. Workspace API keys are not accepted.</Note>
      operationId: count_users_api_apps__app_id__entities_User_count_get
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            description: ID of the app whose users you want to count.
            title: App Id
          description: ID of the app whose users you want to count.
          example: 6820f3a4e7b91d003c45a1f2
      responses:
        '200':
          description: The number of the app's users.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppUserCountResponse'
        '401':
          description: Missing or invalid credentials.
        '403':
          description: You don't have editor access to this app.
        '404':
          description: App not found.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Rate limit exceeded (100 requests per minute).
components:
  schemas:
    AppUserCountResponse:
      properties:
        count:
          type: integer
          title: Count
          description: Number of the app's users.
          example: 42
      type: object
      required:
        - count
      title: AppUserCountResponse
    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:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api_key
      description: Personal API key.

````