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

# Get v1tasksanalytics



## OpenAPI

````yaml https://znift.com/api/v1/openapi.json get /v1/tasks/analytics
openapi: 3.1.0
info:
  title: Znift Tasks API
  version: 1.0.0
servers: []
security: []
paths:
  /v1/tasks/analytics:
    get:
      parameters:
        - schema:
            type: string
            format: date
          required: true
          name: startDate
          in: query
        - schema:
            type: string
            format: date
          required: true
          name: endDate
          in: query
      responses:
        '200':
          description: Task result
          content:
            application/json:
              schema:
                type: object
                properties:
                  totalTasks:
                    type: integer
                    minimum: 0
                  completedTasks:
                    type: integer
                    minimum: 0
                  completionRate:
                    type: number
                    minimum: 0
                    maximum: 100
                  currentStreak:
                    type: integer
                    minimum: 0
                  priorityBreakdown:
                    type: object
                    properties:
                      high:
                        type: object
                        properties:
                          total:
                            type: integer
                            minimum: 0
                          completed:
                            type: integer
                            minimum: 0
                        required:
                          - total
                          - completed
                      medium:
                        type: object
                        properties:
                          total:
                            type: integer
                            minimum: 0
                          completed:
                            type: integer
                            minimum: 0
                        required:
                          - total
                          - completed
                      low:
                        type: object
                        properties:
                          total:
                            type: integer
                            minimum: 0
                          completed:
                            type: integer
                            minimum: 0
                        required:
                          - total
                          - completed
                      none:
                        type: object
                        properties:
                          total:
                            type: integer
                            minimum: 0
                          completed:
                            type: integer
                            minimum: 0
                        required:
                          - total
                          - completed
                    required:
                      - high
                      - medium
                      - low
                      - none
                  dailyStats:
                    type: array
                    items:
                      type: object
                      properties:
                        total:
                          type: integer
                          minimum: 0
                        completed:
                          type: integer
                          minimum: 0
                        date:
                          type: string
                          format: date
                      required:
                        - total
                        - completed
                        - date
                required:
                  - totalTasks
                  - completedTasks
                  - completionRate
                  - currentStreak
                  - priorityBreakdown
                  - dailyStats
        '400':
          description: Task result
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      deletedCount:
                        type: integer
                        minimum: 0
                    required:
                      - code
                      - message
                required:
                  - error
        '401':
          description: Task result
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      deletedCount:
                        type: integer
                        minimum: 0
                    required:
                      - code
                      - message
                required:
                  - error
        '403':
          description: Task result
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      deletedCount:
                        type: integer
                        minimum: 0
                    required:
                      - code
                      - message
                required:
                  - error
        '404':
          description: Task result
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      deletedCount:
                        type: integer
                        minimum: 0
                    required:
                      - code
                      - message
                required:
                  - error
        '429':
          description: Task result
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      deletedCount:
                        type: integer
                        minimum: 0
                    required:
                      - code
                      - message
                required:
                  - error
        '500':
          description: Task result
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      deletedCount:
                        type: integer
                        minimum: 0
                    required:
                      - code
                      - message
                required:
                  - error
      security:
        - apiKey: []
        - bearer: []
        - session: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
    bearer:
      type: http
      scheme: bearer
    session:
      type: apiKey
      in: cookie
      name: __Secure-znift-production.session_token

````

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