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

# List tasks

> List tasks with filtering, sorting, and pagination. Supports export and activity export.



## OpenAPI

````yaml /api-reference/cx/swagger.json post /insights/_attention
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:
  /insights/_attention:
    post:
      tags:
        - todo
      summary: List tasks
      description: >-
        List tasks with filtering, sorting, and pagination. Supports export and
        activity export.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/pkg_routes_todo_insights.AttentionRequest'
        description: Workflow analytics request
        required: true
      responses:
        '200':
          description: Workflow analytics response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: Bad request - invalid request body
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '403':
          description: Forbidden - admin scope and workflow insights feature flag required
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_todo_insights.AttentionRequest:
      type: object
      properties:
        assignee:
          type: string
        assignee_type:
          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.