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

# Create knowledge item

> Add an item to the project's knowledge base and index it for the QA.tech agents. Use `text` for documentation notes, `link` to crawl and index a URL, or `memory` for agent-maintained observations. PDF and icon items are managed in the dashboard.



## OpenAPI

````yaml /api-reference/api.json post /v1/knowledge
openapi: 3.0.0
info:
  title: QA.tech API
  version: 1.0.0
  contact:
    name: QA.tech
    url: https://qa.tech
    email: support@qa.tech
  description: API for triggering and managing AI-powered test runs
servers:
  - url: https://api.qa.tech
    description: Production
    variables: {}
security:
  - BearerAuth: []
tags:
  - name: Runs
  - name: Infrastructure
  - name: Test Cases
  - name: Application Builds
  - name: Status badge
  - name: Remote Tunnels
  - name: Chat
  - name: Applications
  - name: Features
  - name: Metrics
  - name: Release Checks
  - name: Projects
  - name: Knowledge
  - name: Rules
paths:
  /v1/knowledge:
    post:
      tags:
        - Knowledge
      summary: Create knowledge item
      description: >-
        Add an item to the project's knowledge base and index it for the QA.tech
        agents. Use `text` for documentation notes, `link` to crawl and index a
        URL, or `memory` for agent-maintained observations. PDF and icon items
        are managed in the dashboard.
      operationId: CreateKnowledgeItem
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateKnowledgeItemRequest'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateKnowledgeItemResponse'
components:
  schemas:
    CreateKnowledgeItemRequest:
      type: object
      required:
        - type
        - title
      properties:
        type:
          $ref: '#/components/schemas/CreatableKnowledgeItemType'
        title:
          type: string
          minLength: 1
          maxLength: 200
        content:
          type: string
          minLength: 1
          maxLength: 50000
          description: >-
            Text content. Required for text and memory items, not allowed for
            link items.
        url:
          type: string
          format: uri
          description: >-
            URL to crawl and index. Required for link items, not allowed for
            other types.
        excludePaths:
          type: array
          items:
            type: string
          description: Path patterns to exclude while crawling a link item, e.g. /blog/*
        projectShortId:
          allOf:
            - $ref: '#/components/schemas/ProjectShortId'
          description: >-
            Target a specific project by its prefixed short ID
            (proj-slug_shortId or proj_shortId), as returned by the projects
            API. Required for organization-scoped API keys; project-scoped keys
            may only pass their own project's short ID.
    CreateKnowledgeItemResponse:
      type: object
      required:
        - success
        - item
      properties:
        success:
          type: boolean
        item:
          $ref: '#/components/schemas/KnowledgeItem'
    CreatableKnowledgeItemType:
      type: string
      enum:
        - text
        - link
        - memory
      description: >-
        Knowledge item types that can be created through the API. `pdf` and
        `icon` items require file uploads and are managed in the dashboard.
    ProjectShortId:
      type: string
      pattern: ^proj(-.+_.+|_.+)$
    KnowledgeItem:
      type: object
      required:
        - id
        - type
        - title
        - url
        - status
        - createdAt
        - updatedAt
        - content
      properties:
        id:
          type: string
        type:
          $ref: '#/components/schemas/KnowledgeItemType'
        title:
          type: string
        url:
          type: string
          nullable: true
          description: Source URL for link items, null for other types
        status:
          type: string
          description: Ingestion status, e.g. PENDING, PROCESSING, COMPLETED or FAILED
        createdAt:
          type: string
        updatedAt:
          type: string
        content:
          type: string
          nullable: true
          description: Text content for text and memory items, null for other types
    KnowledgeItemType:
      type: string
      enum:
        - pdf
        - link
        - text
        - icon
        - memory
      description: >-
        All knowledge item types. `pdf` and `icon` items are managed in the
        dashboard.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: Bearer

````