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

# Generate task activity report

> Generate an Excel report of task activity with filtering and date range



## OpenAPI

````yaml /api-reference/cx/swagger.json post /todo/task/_activity_report
openapi: 3.0.0
info:
  description: CX API.
  title: CX API
  contact:
    name: API Support
    url: https://stax.ai
    email: support@stax.ai
  version: '1.0'
servers:
  - url: https://api.cx.stax.ai
security: []
paths:
  /todo/task/_activity_report:
    post:
      tags:
        - todo
      summary: Generate task activity report
      description: Generate an Excel report of task activity with filtering and date range
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/pkg_routes_todo_task.TaskActivityReportRequest
        description: Activity report request
        required: true
      responses:
        '200':
          description: Excel file with activity report
          content:
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: string
                format: binary
        '400':
          description: Bad request - invalid request body
          content:
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: Internal server error
          content:
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_todo_task.TaskActivityReportRequest:
      type: object
      properties:
        after:
          type: string
        before:
          type: string
        filters:
          $ref: '#/components/schemas/pkg_routes_todo_task.ListTasksFilters'
    pkg_routes_todo_task.ListTasksFilters:
      type: object
      properties:
        assignee:
          type: array
          items:
            type: string
        automation:
          type: array
          items:
            type: string
        client:
          type: array
          items:
            type: string
        client_task_type:
          type: array
          items:
            type: string
        due:
          $ref: '#/components/schemas/types.ListFilterDate'
        flagged:
          type: boolean
        has_email_tasks:
          type: boolean
        ids:
          description: >-
            IDs narrows the list to these task IDs, so the UI can check whether
            a

            task still matches the other filters without loading every ID.
          type: array
          items:
            type: string
        internal_task_type:
          type: array
          items:
            type: string
        plan:
          type: array
          items:
            type: string
        priority:
          type: array
          items:
            type: integer
        project:
          type: array
          items:
            type: string
        search:
          type: string
        show_only_next:
          type: boolean
        status:
          type: array
          items:
            type: string
        template:
          type: array
          items:
            type: string
    types.ListFilterDate:
      type: object
      properties:
        after:
          type: string
        before:
          type: string
  securitySchemes:
    ApiKeyAuth:
      description: CX API key. Create one in CX under Settings → Advanced → API Keys.
      in: header
      name: x-api-key
      type: apiKey

````

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