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

# Get Project Active Tasks

> Returns every schedule on the project, the tasks each schedule has generated, and a `stats` block with total/completed counts and the completion rate.



## OpenAPI

````yaml GET /api/v1/ops/workspaces/{workspaceId}/projects/{projectId}/active/tasks
openapi: 3.1.0
info:
  title: Xenia Team API - Get Project Active Tasks
  version: 1.0.0
  description: >-
    Returns the project's schedules, the tasks generated from them grouped by
    schedule, and completion statistics.
servers:
  - url: https://api.xenia.team
security: []
paths:
  /api/v1/ops/workspaces/{workspaceId}/projects/{projectId}/active/tasks:
    get:
      tags:
        - Projects
      summary: Get Project Active Tasks
      description: >-
        Returns every schedule on the project, the tasks each schedule has
        generated, and a `stats` block with total/completed counts and the
        completion rate.
      parameters:
        - name: workspaceId
          in: path
          required: true
          description: UUID of the workspace. Must be the workspace the API key belongs to.
          schema:
            type: string
            format: uuid
            example: cb363f7e-c52a-4478-911d-f6a6f791090e
        - name: projectId
          in: path
          required: true
          description: UUID of the project.
          schema:
            type: string
            format: uuid
            example: c7966d63-52ce-4967-b30a-16aaa9e806b5
      responses:
        '200':
          description: Active tasks retrieved successfully.
          content:
            application/json:
              example:
                data:
                  project:
                    id: c7966d63-52ce-4967-b30a-16aaa9e806b5
                    title: Monthly Safety Walk
                    isPaused: false
                    type: role
                    state: ready
                    entityIds:
                      - 7481ca15-cdb1-4e0f-a936-f8f88a56e989
                    isLocationAutoTag: true
                    isSchedulesProject: true
                    assigneesRoles:
                      creationType: role
                      roles:
                        - 7481ca15-cdb1-4e0f-a936-f8f88a56e989
                      locations: []
                      locationGroups: []
                    metadata: {}
                    createdAt: '2026-07-30T18:47:09.085Z'
                    updatedAt: '2026-07-30T18:47:09.085Z'
                  schedules:
                    - seriesId: 6f2e1f1e-1111-4c2c-9d55-2b8a1f0f0001
                      taskUniqueId: 6f2e1f1e-1111-4c2c-9d55-2b8a1f0f0001
                      title: Monthly Safety Walk
                      timezone: America/New_York
                      startDate: '2026-07-01T04:00:00.000Z'
                      endDate: null
                      recurringByEvery: Monthly
                  activeTasks:
                    - id: 232154c0-c239-48f8-b670-0e5d12fd64d0
                      title: Monthly Safety Walk
                      taskStatus: Open
                      dueDate: '2026-08-25T18:30:00.000Z'
                  tasksBySchedule:
                    6f2e1f1e-1111-4c2c-9d55-2b8a1f0f0001:
                      - 232154c0-c239-48f8-b670-0e5d12fd64d0
                  stats:
                    totalTasks: 60
                    completedTasks: 42
                    completionRate: 70
                extra_meta: {}
        '401':
          description: >-
            Unauthorized - Invalid client credentials, or the key does not
            belong to this workspace.
        '403':
          description: >-
            Forbidden - API key not authorized for this route, the role lacks
            the required permission, the workspace does not have the Projects
            feature, or the project id is unknown to the caller. Note an unknown
            or deleted projectId also returns 403, not 404: the project access
            check runs before the handler and denies when it cannot load the
            project.
        '500':
          description: Internal Server Error.
      security:
        - clientKey: []
          clientSecret: []
components:
  securitySchemes:
    clientKey:
      type: apiKey
      in: header
      name: x-client-key
    clientSecret:
      type: apiKey
      in: header
      name: x-client-secret

````