Creates a new knowledge base.
POST https://gateway.orkeia.ai/knowledge-bases
Authenticationauthorization: <your_token>.
The service expects a wrapper withknowledgeBaseandfilename.
Notes
- For
type: "file", send the correspondingfilenameto the stored content.- For
type: "url"ortype: "text",filenamecan be ignored/left empty, but the field exists in the payload for endpoint consistency.content:
file: storage path/URL of the file (e.g., S3/Storage).url: public/private link to be referenced.text: direct textual content.
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| id | string | No | Unique identifier of the knowledge base (returned by the backend). | ”KB_123456” |
| name | string | Yes | Name of the knowledge base. | ”Internal Policies” |
| description | string | Yes | Brief description of the content/usage. | ”Official corporate documents” |
| enabled | boolean | Yes | Indicates whether the base will be active in the environment. | true |
| sectors | string[] | Yes | Sectors that can consume this base (access governance). | [“hr”, “legal”] |
| content | string | Yes | Source of the content: file path/URL, external link, or literal text (according to type). | “https://storage.orkeia.ai/kb/policies.pdf” |
| type | ”file” | “url” | “text” | Yes | Type of the content. | ”file” |
| multimodal | boolean | Yes | Whether the base contains modalities beyond text (images/audio/video). | false |
| tags | string[] | Yes | Metadata/tags for search and organization. | [“compliance”,“contracts”] |