{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elocuenti-com/json-schema/elocuenti-com-knowledge-entry-list-response-schema.json",
  "title": "KnowledgeEntryListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elocuenti-com-knowledge-api-openapi.yml#/components/schemas/KnowledgeEntryListResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/KnowledgeEntrySummary"
      },
      "title": "Data"
    },
    "request_id": {
      "type": "string",
      "description": "The identifier of this request. Give it to support if you need help.",
      "title": "Request Id"
    },
    "next_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Send it as `cursor` to get the next page. `null` on the last page. Treat it as opaque: do not build or edit it.",
      "title": "Next Cursor"
    },
    "has_more": {
      "type": "boolean",
      "description": "`true` when there is another page after this one.",
      "title": "Has More"
    }
  },
  "required": [
    "data",
    "request_id",
    "next_cursor",
    "has_more"
  ],
  "$defs": {
    "KnowledgeEntrySummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The identifier of the entry.",
          "title": "Id"
        },
        "external_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The identifier the entry has in your own system, or `null` for an entry that did not come from it (one written in the dashboard, for example).",
          "title": "External Id"
        },
        "title": {
          "type": "string",
          "description": "The title.",
          "title": "Title"
        },
        "category": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The label that groups the entry, or `null`.",
          "title": "Category"
        },
        "type": {
          "type": "string",
          "description": "`faq` or `general`. Entries made in the dashboard can have other types, such as `document`.",
          "title": "Type"
        },
        "status": {
          "type": "string",
          "enum": [
            "published",
            "archived",
            "draft"
          ],
          "description": "`published`: the AI uses the entry. `archived`: it does not, but the entry stays in your business. `draft`: saved in the dashboard and not yet published; the API reads drafts but does not create them.",
          "title": "Status"
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "When the entry was created (UTC, ISO 8601).",
          "title": "Created At"
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "When the entry last changed (UTC, ISO 8601).",
          "title": "Updated At"
        }
      },
      "required": [
        "id",
        "external_id",
        "title",
        "category",
        "type",
        "status",
        "created_at",
        "updated_at"
      ],
      "description": "An entry, without its text.",
      "title": "KnowledgeEntrySummary"
    }
  }
}