Index documents
POST/content-assistance/index
Crawls and indexes one or more documents into the specified knowledge base index type. The documents are fetched from their URLs, chunked, and stored for use in retrieval-augmented generation.
- For GENERAL type: only
urlsis required. - For CATEGORY type: provide
urlsplus eitherscopeIds(concept IDs) orbreadcrumbs. - For PRODUCT type: provide
urlsplusscopeIds(product IDs).
This operation is asynchronous and returns a task that can be monitored via the Tasks endpoint.
Request
Responses
- 200
- 400
- 401
- 404
OK — indexing task started
Bad request — invalid type, missing URLs, or missing scopeIds for CATEGORY/PRODUCT type
Unauthorized — invalid or missing API key
Project not found