Use this file to discover all available pages before exploring further.
Back to API ListThis API allows you to ingest and index data into the SearchAI application. You can ingest structured data as chunk fields, ingest an uploaded document, or perform incremental web crawling on existing web sources.
If the given name does not exist, a new source is created automatically.
sourceType
Yes
Accepted values: "json" — to upload structured chunk fields via the request object (fileId is ignored); "file" — to upload documents using a fileId (chunk payload is ignored); "web" — to crawl web pages using provided URLs.
documents
Yes
Depending on sourceType: for json, pass structured content directly with a title and chunks array; for web, pass a urls array of pages to crawl; for file, pass objects with a fileId and optional fileName, permissions, category, and priority.
{ "sourceName": "Abc", "sourceType": "json", "documents": [ { "title": "Cybersecurity", "chunks": [ { "chunkText": "Cybersecurity is the practice of protecting systems, networks, and programs from digital attacks.", "recordUrl": "https://www.example.com/cybersecurity", "chunkTitle": "The Importance of Cybersecurity" } ] } ]}
The fields inside the chunks object must correspond to the configured chunk fields. To view chunk fields, refer to the Chunk Browser.