{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/brain-tube-com/json-schema/brain-tube-com-ingest-request-schema.json",
  "title": "IngestRequest",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/brain-tube-com-api-openapi.json#/components/schemas/IngestRequest",
  "type": "object",
  "required": [
    "title",
    "content"
  ],
  "properties": {
    "title": {
      "type": "string",
      "maxLength": 500
    },
    "content": {
      "type": "string",
      "description": "Full text body of the content"
    },
    "source_url": {
      "type": "string",
      "format": "uri"
    },
    "source_type": {
      "type": "string",
      "enum": [
        "note",
        "manual",
        "article",
        "web",
        "document",
        "pdf",
        "ebook",
        "research_paper",
        "work",
        "reddit",
        "medium",
        "substack",
        "github",
        "notion",
        "chatgpt",
        "claude",
        "gemini",
        "wikipedia"
      ]
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 20
    },
    "force_new": {
      "type": "boolean",
      "default": false
    }
  }
}