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

# List all archived tasks

> Returns archived tasks sorted by archive date (newest first). Limited to the 200 most recently archived tasks.



## OpenAPI

````yaml https://znift.com/api/v1/openapi.json get /api/v1/tasks/archived
openapi: 3.1.0
info:
  title: Znift Tasks API
  version: 1.0.0
  description: >-
    Public REST API for managing Znift tasks. Designed for AI agents, CLI tools,
    and automation. Authenticate with an API key via the x-api-key header.
servers:
  - url: https://znift.com
    description: Znift Production API
security:
  - apiKey: []
paths:
  /api/v1/tasks/archived:
    get:
      summary: List all archived tasks
      description: >-
        Returns archived tasks sorted by archive date (newest first). Limited to
        the 200 most recently archived tasks.
      operationId: listArchivedTasks
      responses:
        '200':
          description: Array of archived tasks
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Task'
components:
  schemas:
    Task:
      type: object
      properties:
        _id:
          type: string
          description: Task ID
        text:
          type: string
          description: Task text
        date:
          type: string
          format: date
          description: Date in YYYY-MM-DD format
        isCompleted:
          type: boolean
        priority:
          type: string
          enum:
            - high
            - medium
            - low
          nullable: true
        dueTime:
          type: number
          description: Due time as Unix timestamp in ms
          nullable: true
        timeSpent:
          type: number
          description: Time spent in minutes
          nullable: true
        details:
          type: string
          description: Additional task details
          nullable: true
        order:
          type: number
          description: Sort order within date
        createdAt:
          type: number
          description: Creation timestamp in ms
        archivedAt:
          type: number
          description: Archive timestamp in ms
          nullable: true
        previousDates:
          type: array
          items:
            type: string
          description: Dates this task was previously on
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API key with znift_ prefix. Create one in Profile > API Keys.

````