> ## 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 entity records

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

Returns how many production records an entity holds.

The count covers the records the calling credential can read, so an entity whose row-level security rules narrow reads returns a smaller number than the entity actually holds. An entity with no `rls` rules returns its full count.

Don't pass `User` as the `entity_name`. To count the app's users, use [Count app users](/api-reference/count-app-users) instead.



## OpenAPI

````yaml /developers/references/app-management/app-management-openapi.json get /api/apps/{app_id}/entities/{entity_name}/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/{entity_name}/count:
    get:
      summary: Count entity records
      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 production records an entity holds.


        The count covers the records the calling credential can read, so an
        entity whose row-level security rules narrow reads returns a smaller
        number than the entity actually holds. An entity with no `rls` rules
        returns its full count.


        Don't pass `User` as the `entity_name`. To count the app's users, use
        [Count app users](/api-reference/count-app-users) instead.
      operationId: count_entities_api_apps__app_id__entities__entity_name__count_get
      parameters:
        - name: entity_name
          in: path
          required: true
          schema:
            type: string
            description: >-
              Name of the entity, exactly as [List entity
              schemas](/api-reference/list-entity-schemas) reports it. Don't
              pass `User` here. It doesn't fail, but it reads and writes a
              separate, disconnected set of records stored under that name, not
              the app's real user accounts, which are managed through their own
              endpoints.
            title: Entity Name
          description: >-
            Name of the entity, exactly as [List entity
            schemas](/api-reference/list-entity-schemas) reports it. Don't pass
            `User` here. It doesn't fail, but it reads and writes a separate,
            disconnected set of records stored under that name, not the app's
            real user accounts, which are managed through their own endpoints.
          example: Invoice
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            description: ID of the app whose entity records you want to count.
            title: App Id
          description: ID of the app whose entity records you want to count.
          example: 6820f3a4e7b91d003c45a1f2
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityCountResponse'
        '401':
          description: Missing or invalid credentials.
        '403':
          description: You don't have editor access to this app.
        '404':
          description: App not found, or the app has no entity with this name.
        '429':
          description: >-
            Rate limit exceeded. The base limit is 100 requests per minute, and
            this endpoint shares it with [List entity
            records](/api-reference/list-entity-records). See [Rate
            limits](/developers/references/apps-api/get-started/rate-limits) for
            the multiplier your plan gets.
components:
  schemas:
    EntityCountResponse:
      properties:
        count:
          type: integer
          title: Count
          description: Number of records you can read in this entity.
          example: 128
      type: object
      required:
        - count
      title: EntityCountResponse
      description: The number of records stored in one of an app's entities.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api_key
      description: Personal API key.

````