Elizon Docs
API Reference

Create Knowledge Base

POST /api/v1/knowledge-bases — create an empty Knowledge Base.

Creates an empty Knowledge Base. Add content with Upload documents or Submit URLs.

POST /api/v1/knowledge-bases

Request body

FieldTypeRequiredDescription
projectIdstring (UUID)With an org-scoped key: yesThe project to create it in. A project-scoped key always creates in its own project; naming a different one returns 403.
namestring (1–100 chars)YesUnique within the project.
embeddingLlmConfigIdstring (UUID)YesThe LLM provider connection that embeds the content. List yours with GET /agents/llm-providers.
embeddingModelstringYesAn embedding model that connection offers, for example text-embedding-3-small. It cannot be changed later without re-indexing every document.
searchModehybrid | vector | keywordNoDefault hybrid (keyword and vector search blended).
hybridAlphanumber 0–1NoBlend for hybrid: 0 is keyword only, 1 is vector only. Default 0.5.

Response

201 Created — the Knowledge Base, in the shape of Get Knowledge Base.

Errors

StatuserrorWhen
400validation errorA field fails validation ({ "errors": [{ "path", "message" }] }).
400project_requiredAn org-scoped key did not pass projectId.
400invalid_requestThe Knowledge Base service refused the body, for example an unknown embedding model.
403forbiddenA project-scoped key named another project.
409conflictA Knowledge Base with this name already exists in the project.
422project_not_foundprojectId is not a project of your organization.

Example

curl -X POST https://api.elizon.ai/api/v1/knowledge-bases \
  -H "X-API-Key: elz_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "projectId": "2b7e…",
    "name": "Pump manuals",
    "embeddingLlmConfigId": "8b1e…",
    "embeddingModel": "text-embedding-3-small"
  }'