Add source
Knowledge Bases
Add source
Add content to a knowledge base. All source types use this single endpoint with multipart/form-data.
Returns 202 immediately — content is processed asynchronously. Poll job status before using the KB in calls.
| Source type | Form fields |
|---|---|
| URL | type=url, source=<public_url> |
| File | file=<binary> — do not include a type field |
| Text | type=text, source=<text_content> |
Supported file formats: PDF, DOCX, XLSX, TXT, MD
POST
Add source
Documentation Index
Fetch the complete documentation index at: https://docs.oneinbox.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Use api_key from POST /v1/api-keys
Path Parameters
Body
multipart/form-data
Source type. Required for URL and text sources. Omit entirely when uploading a file.
Available options:
url, text Example:
"url"
The URL or raw text to index. Required when type is url or text.
Example:
"https://docs.yourproduct.com/faq"
File to upload. Required when adding a file source. Supported formats — PDF, DOCX, XLSX, TXT, MD.