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

# Get Weekly Active Users

> Get weekly active users for each week in the specified time range.

A user is considered active in a given week if they have created at least
min_sessions sessions OR at least min_searches searches during that UTC week.

Weeks are defined as Monday 00:00:00 UTC to Sunday 23:59:59 UTC.

Returns a list of weekly active user counts, one entry per week in the range.

## Permissions

Requires a service user with the `ViewAccountMetrics` permission at the enterprise level.


## OpenAPI

````yaml /v3-openapi.yaml GET /v3/enterprise/metrics/wau
openapi: 3.1.0
info:
  description: Devin v3 API with Service User authentication and RBAC
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3/enterprise/metrics/wau:
    get:
      tags:
        - metrics
      summary: Get Weekly Active Users
      description: >-
        Get weekly active users for each week in the specified time range.


        A user is considered active in a given week if they have created at
        least

        min_sessions sessions OR at least min_searches searches during that UTC
        week.


        Weeks are defined as Monday 00:00:00 UTC to Sunday 23:59:59 UTC.


        Returns a list of weekly active user counts, one entry per week in the
        range.
      operationId: handle_get_wau_metrics_v3_enterprise_metrics_wau_get
      parameters:
        - in: query
          name: time_before
          required: true
          schema:
            title: Time Before
            type: integer
        - in: query
          name: time_after
          required: true
          schema:
            title: Time After
            type: integer
        - in: query
          name: org_ids
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                type: array
              - type: 'null'
            title: Org Ids
        - in: query
          name: min_sessions
          required: false
          schema:
            default: 1
            minimum: 0
            title: Min Sessions
            type: integer
        - in: query
          name: min_searches
          required: false
          schema:
            default: 1
            minimum: 0
            title: Min Searches
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActiveUserMetricsListResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    ActiveUserMetricsListResponse:
      description: >-
        Validated list of active user metrics with ascending order and no
        overlapping periods.
      items:
        $ref: '#/components/schemas/ActiveUserMetricsResponse'
      title: ActiveUserMetricsListResponse
      type: array
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ActiveUserMetricsResponse:
      description: Single entry for active users over time.
      properties:
        active_users:
          title: Active Users
          type: integer
        end_time:
          title: End Time
          type: integer
        start_time:
          title: Start Time
          type: integer
      required:
        - start_time
        - end_time
        - active_users
      title: ActiveUserMetricsResponse
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearerAuth:
      description: 'Service User credential (prefix: cog_)'
      scheme: bearer
      type: http

````