Skip to main content
Back to API List This 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.

Ingesting Documents

  • To ingest content from a file, use the Upload File API to upload the file to the application.
  • After uploading, include the fileId from the Upload File API response in the Ingest API to process the file content.
  • Supported file formats: PDF, docx, ppt, or txt. Other file types will cause an error.

Ingesting Structured Data

  • To ingest structured data, add the content to the request body using the Chunk Fields listed in the table below.
  • File Structure: The JSON file must follow a specific structure:
    • The file name is used as the recordTitle.
    • The JSON file must be an array of objects, where each object represents a chunk.
    • Each chunk’s fields must correspond to the configured chunk fields.

Crawling Web Pages

  • This API supports incremental web crawling by adding content for an existing web source in Search AI.
    • The sourceName must match the Source Title for the web domain in Search AI.
    • Set sourceType to "web".
    • Provide the URLs to crawl in the urls array under the documents field.
  • The web crawl uses the crawl configuration set in Search AI for that source.
  • Existing URLs are re-crawled; new URLs are crawled if the crawl configuration permits.

API Specifications

Query Parameters

Request Parameters

Sample Request — Ingesting Chunks Directly

The fields inside the chunks object must correspond to the configured chunk fields. To view chunk fields, refer to the Chunk Browser.

Sample Request — Incremental Web Crawl

If a URL is already crawled, it is re-crawled. New URLs are crawled if the source’s crawl configuration permits.

Sample Request — Ingesting Content from Files

Use the Upload File API to upload the file and obtain the fileId. Pass that fileId here to ingest and index the file contents.