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

# Full-text search across tasks

> Searches task text using full-text search. Returns matching tasks with ID, text, date, completion status, and priority.



## OpenAPI

````yaml https://znift.com/api/v1/openapi.json get /api/v1/tasks/search
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/search:
    get:
      summary: Full-text search across tasks
      description: >-
        Searches task text using full-text search. Returns matching tasks with
        ID, text, date, completion status, and priority.
      operationId: searchTasks
      parameters:
        - name: query
          in: query
          required: true
          schema:
            type: string
          description: Search query
        - name: includeArchived
          in: query
          schema:
            type: string
            enum:
              - 'true'
              - 'false'
          description: 'Set to "true" to include archived tasks. Default: false'
        - name: limit
          in: query
          schema:
            type: string
          description: 'Maximum number of results as a string (e.g. "10"). Default: 20'
      responses:
        '200':
          description: Search results
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    _id:
                      type: string
                    text:
                      type: string
                    date:
                      type: string
                    isCompleted:
                      type: boolean
                    priority:
                      type: string
                      nullable: true
                    archivedAt:
                      type: number
                      nullable: true
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API key with znift_ prefix. Create one in Profile > API Keys.

````