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



## OpenAPI

````yaml https://znift.com/api/v1/openapi.json get /v1/tasks/dashboard
openapi: 3.1.0
info:
  title: Znift Tasks API
  version: 1.0.0
servers: []
security: []
paths:
  /v1/tasks/dashboard:
    get:
      parameters:
        - schema:
            type: string
            format: date
          required: true
          name: date
          in: query
      responses:
        '200':
          description: Task result
          content:
            application/json:
              schema:
                type: object
                properties:
                  overdue:
                    type: array
                    items:
                      type: object
                      properties:
                        _id:
                          type: string
                          pattern: ^tsk_.*$
                        text:
                          type: string
                          minLength: 1
                          maxLength: 10000
                        date:
                          type: string
                          format: date
                        isCompleted:
                          type: boolean
                        priority:
                          type: string
                          enum:
                            - high
                            - medium
                            - low
                        dueTime:
                          type: integer
                          minimum: 0
                          maximum: 1439
                        timeSpent:
                          type: number
                          minimum: 0
                        previousDates:
                          type: array
                          items:
                            type: string
                            format: date
                        subtasks:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                                pattern: ^sub_.*$
                              text:
                                type: string
                                minLength: 1
                                maxLength: 500
                              isCompleted:
                                type: boolean
                            required:
                              - id
                              - text
                              - isCompleted
                        createdAt:
                          type: string
                          format: date-time
                      required:
                        - _id
                        - text
                        - date
                        - isCompleted
                        - createdAt
                  pending:
                    type: array
                    items:
                      type: object
                      properties:
                        _id:
                          type: string
                          pattern: ^tsk_.*$
                        text:
                          type: string
                          minLength: 1
                          maxLength: 10000
                        date:
                          type: string
                          format: date
                        isCompleted:
                          type: boolean
                        priority:
                          type: string
                          enum:
                            - high
                            - medium
                            - low
                        dueTime:
                          type: integer
                          minimum: 0
                          maximum: 1439
                        timeSpent:
                          type: number
                          minimum: 0
                        previousDates:
                          type: array
                          items:
                            type: string
                            format: date
                        subtasks:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                                pattern: ^sub_.*$
                              text:
                                type: string
                                minLength: 1
                                maxLength: 500
                              isCompleted:
                                type: boolean
                            required:
                              - id
                              - text
                              - isCompleted
                        createdAt:
                          type: string
                          format: date-time
                      required:
                        - _id
                        - text
                        - date
                        - isCompleted
                        - createdAt
                  completedToday:
                    type: array
                    items:
                      type: object
                      properties:
                        _id:
                          type: string
                          pattern: ^tsk_.*$
                        text:
                          type: string
                          minLength: 1
                          maxLength: 10000
                        date:
                          type: string
                          format: date
                        isCompleted:
                          type: boolean
                        priority:
                          type: string
                          enum:
                            - high
                            - medium
                            - low
                        dueTime:
                          type: integer
                          minimum: 0
                          maximum: 1439
                        timeSpent:
                          type: number
                          minimum: 0
                        previousDates:
                          type: array
                          items:
                            type: string
                            format: date
                        subtasks:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                                pattern: ^sub_.*$
                              text:
                                type: string
                                minLength: 1
                                maxLength: 500
                              isCompleted:
                                type: boolean
                            required:
                              - id
                              - text
                              - isCompleted
                        createdAt:
                          type: string
                          format: date-time
                      required:
                        - _id
                        - text
                        - date
                        - isCompleted
                        - createdAt
                  stats:
                    type: object
                    properties:
                      pendingCount:
                        type: integer
                        minimum: 0
                      completedTodayCount:
                        type: integer
                        minimum: 0
                      streak:
                        type: integer
                        minimum: 0
                      streakAsOf:
                        type:
                          - string
                          - 'null'
                        format: date
                    required:
                      - pendingCount
                      - completedTodayCount
                      - streak
                      - streakAsOf
                required:
                  - overdue
                  - pending
                  - completedToday
                  - stats
        '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.