{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/cognition-labs/main/json-schema/cognition-labs-knowledge-entry-schema.json", "title": "KnowledgeEntry", "x-generated": "2026-10-04", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/cognition-labs-knowledge-api-openapi.yml#/components/schemas/KnowledgeEntry", "allOf": [ { "$ref": "#/$defs/KnowledgeInput" }, { "type": "object", "properties": { "id": { "type": "string" }, "created_at": { "type": "string", "format": "date-time" }, "created_by": { "type": "object", "properties": { "full_name": { "type": "string" }, "id": { "type": [ "string", "null" ] }, "image_url": { "type": [ "string", "null" ] } } } } } ], "$defs": { "KnowledgeInput": { "type": "object", "required": [ "name", "body", "trigger_description" ], "properties": { "name": { "type": "string" }, "body": { "type": "string" }, "trigger_description": { "type": "string", "description": "Describes when this knowledge entry should apply." }, "macro": { "type": "string" }, "parent_folder_id": { "type": "string" }, "pinned_repo": { "type": "string" } } } } }