Add a source.

Connects a new data source to an agent's knowledge base. You can add content via sitemap URL, file upload, or integration connection (Google Drive, SharePoint, etc.). The system will begin indexing the content immediately.

Notes: For large sources, indexing may take several minutes. Check the source status to monitor progress.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

The unique identifier of the agent (formerly known as project).

Body Params

Create a new agent source from a sitemap or a file

string

The sitemap path

boolean

File data retension

integer
enum

OCR processing mode: 0 = Disabled, 1 = OCR enabled, 2 = AI Vision

Allowed:
boolean

Anonymized

file

Single file upload as a data source. Discouraged — use files[] instead for new integrations.

Supported types include documents, audio files, and images. Images require is_vision_enabled: true on the agent. Max file size: 100 MB.

files[]
array of files

Multiple file uploads. Submit each file as a separate files[] part in multipart/form-data. Up to 50 files per request, max 100MB each, max 1GB total batch size.

files[]
boolean

Whether to enable vision processing for images in the file source.

boolean

Whether to compress images for vision processing.

string
enum

The method used for extracting images from the website.

Allowed:
Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json