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



## OpenAPI

````yaml https://znift.com/api/v1/openapi.json get /v1/tasks/archived
openapi: 3.1.0
info:
  title: Znift Tasks API
  version: 1.0.0
servers: []
security: []
paths:
  /v1/tasks/archived:
    get:
      responses:
        '200':
          description: Task result
          content:
            application/json:
              schema:
                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
                    userId:
                      type: string
                      pattern: ^usr_.*$
                    order:
                      type: number
                    details:
                      type: string
                      maxLength: 50000
                    archivedAt:
                      type: string
                      format: date-time
                    googleCalendarEventId:
                      type: string
                  required:
                    - _id
                    - text
                    - date
                    - isCompleted
                    - createdAt
                    - userId
                    - order
        '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.