> ## 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.

# Get app analytics

> Returns detailed analytics for the specified app, including engagement metrics, deployment info, and governance flags.

    You can get `app_id` values from [`List user apps`](/api-reference/users/list-user-apps) if needed.

    <Note>The `avg_session_duration_sec` field always returns 0 as session tracking has not been implemented yet.</Note>



## OpenAPI

````yaml /developers/references/monitoring-api/monitoring-openapi.json get /{workspace_id}/apps/{app_id}/analytics
openapi: 3.1.0
info:
  title: Base44 Workspace Monitoring API
  description: |2-

        Workspace monitoring and analytics API.
        
        Access usage analytics, user engagement metrics, and governance data for your workspace.
        
        **Features:**
        - Workspace-level analytics and KPIs
        - User activity tracking and credit consumption
        - app engagement metrics and security governance
        
        **Authentication:** Required for all endpoints (admin or owner role)
        
        Use the 🔒 **Authorize** button above to enter your API key.
        
        **Rate Limits:**
        - Analytics endpoints: 50 requests per minute per user
        - User list: 50 requests per minute per user
        - User detail: 75 requests per minute per user
        - User apps: 50 requests per minute per user
        - App list: 50 requests per minute per user
        - App analytics: 50 requests per minute per user
        
        Enterprise workspaces get 2x these limits.
        
        Rate limits are applied per authenticated user and enforced using token-bucket algorithm.
        
  version: 1.2.1
servers:
  - url: https://app.base44.com/api/v1/monitoring
    description: Monitoring API
security:
  - ApiKeyAuth: []
tags:
  - name: analytics
    description: >-
      Workspace-level analytics and KPIs including usage, engagement, and cost
      metrics.
  - name: users
    description: User management, activity tracking, and credit consumption data.
  - name: apps
    description: App-level analytics, engagement metrics, and governance flags.
  - name: superagents
    description: Super Agent inventory and analytics.
paths:
  /{workspace_id}/apps/{app_id}/analytics:
    get:
      tags:
        - apps
      summary: Get app analytics
      description: >-
        Returns detailed analytics for the specified app, including engagement
        metrics, deployment info, and governance flags.

            You can get `app_id` values from [`List user apps`](/api-reference/users/list-user-apps) if needed.

            <Note>The `avg_session_duration_sec` field always returns 0 as session tracking has not been implemented yet.</Note>
      operationId: get_app_analytics__workspace_id__apps__app_id__analytics_get
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
            title: Workspace Id
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            description: App ID.
            title: App Id
          description: App ID.
        - name: from
          in: query
          required: true
          schema:
            type: string
            description: Start date in `YYYY-MM-DD` format.
            title: From
          description: Start date in `YYYY-MM-DD` format.
          example: '2026-06-01'
        - name: to
          in: query
          required: true
          schema:
            type: string
            description: End date in `YYYY-MM-DD` format.
            title: To
          description: End date in `YYYY-MM-DD` format.
          example: '2026-06-30'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppAnalytics'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AppAnalytics:
      properties:
        app_id:
          type: string
          title: App Id
          description: App identifier.
          example: app_abc123
        app_name:
          type: string
          title: App Name
          description: App name.
          example: Sales Dashboard
        unique_users:
          type: integer
          minimum: 0
          title: Unique Users
          description: Number of unique users.
          example: 156
        total_views:
          type: integer
          minimum: 0
          title: Total Views
          description: Total number of views.
          example: 2847
        avg_session_duration_sec:
          type: number
          minimum: 0
          title: Avg Session Duration Sec
          description: Average session duration in seconds.
          example: 0
        views_last_7d:
          type: integer
          minimum: 0
          title: Views Last 7D
          description: Views in last 7 days.
          example: 312
        views_last_30d:
          type: integer
          minimum: 0
          title: Views Last 30D
          description: Views in last 30 days.
          example: 1205
        active_users_last_7d:
          type: integer
          minimum: 0
          title: Active Users Last 7D
          description: Number of users who viewed the app in the last 7 days.
          example: 42
        active_users_last_30d:
          type: integer
          minimum: 0
          title: Active Users Last 30D
          description: Number of users who viewed the app in the last 30 days.
          example: 89
        message_credits_consumed:
          type: number
          minimum: 0
          title: Message Credits Consumed
          description: Message credits consumed by this app.
          example: 4250
        integration_credits_consumed:
          type: number
          minimum: 0
          title: Integration Credits Consumed
          description: Integration credits consumed by this app.
          example: 875
        daily_views:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Daily Views
          description: Daily view counts.
          example:
            - date: '2026-06-29'
              views: 45
            - date: '2026-06-30'
              views: 52
        last_published:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Published
          description: Last publish date in `YYYY-MM-DDTHH:MM:SSZ` format.
          example: '2025-01-10T14:30:00Z'
        visibility:
          type: string
          title: Visibility
          description: >-
            App visibility, such as `"Public"`, `"Public (with login)"`,
            `"Workspace"`, or `"Private"`.
          example: Public (with login)
        has_agent:
          type: boolean
          title: Has Agent
          description: Whether an AI agent is active in the app.
          example: true
        has_backend_function:
          type: boolean
          title: Has Backend Function
          description: Whether backend functions are enabled for the app.
          example: false
        has_authentication:
          type: boolean
          title: Has Authentication
          description: Whether any auth method is enabled.
          example: true
        has_sso:
          type: boolean
          title: Has Sso
          description: Whether SSO is enabled.
          example: false
        has_secrets:
          type: boolean
          title: Has Secrets
          description: Whether secrets are defined for the app.
          example: true
      type: object
      required:
        - app_id
        - app_name
        - unique_users
        - total_views
        - avg_session_duration_sec
        - views_last_7d
        - views_last_30d
        - active_users_last_7d
        - active_users_last_30d
        - message_credits_consumed
        - integration_credits_consumed
        - daily_views
        - visibility
        - has_agent
        - has_backend_function
        - has_authentication
        - has_sso
        - has_secrets
      title: AppAnalytics
      description: Detailed analytics for a specific app
    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: >-
        API key for authentication. See the Authentication page for your API for
        details on how to get your key.

````