Skip to main content
POST
/
v1
/
knowledge-bases
/
{kb_id}
/
sources
Add knowledge base source
curl --request POST \
  --url https://api.oneinbox.ai/v1/knowledge-bases/{kb_id}/sources \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form 'source=<string>'
{
  "job": {
    "id": "<string>"
  }
}

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

Authorization
string
header
required

API key from the OneInbox dashboard (API Keys → Create)

Path Parameters

kb_id
string
required

Body

multipart/form-data
file
file

PDF, DOCX, XLSX, TXT, or MD file

type
enum<string>
Available options:
url,
text
source
string

URL or inline text when type is set

Response

202 - application/json

Accepted — indexing job queued

job
object