Skip to main content
POST
/
v1
/
knowledge-bases
/
{kb_id}
/
sources
Add source to knowledge base
curl --request POST \
  --url http://13.207.23.185:8000/v1/knowledge-bases/{kb_id}/sources \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "url",
  "source": "https://docs.example.com/faq"
}
'

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

Use api_key from POST /v1/api-keys

Path Parameters

kb_id
string
required

Body

application/json
type
enum<string>

Source type:

  • url — a public link; OneInbox fetches and indexes the content
  • text — inline text pasted directly into the request body
  • file — a file upload (PDF, Word, plain text, etc.) sent as multipart/form-data
Available options:
url,
text,
file
Example:

"url"

source
string

Required for url and text types. The URL or raw text content.

Example:

"https://docs.example.com/faq"

Response

201

Created