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.

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

The submitted file.

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
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json