Reference

Reindexing and widget configuration

Two operations that change a project after it exists: rebuilding the searchable text of documents it already holds, and changing how the widget behaves on your site.

Reindexing

Reindexing reprocesses the documents a project already holds: each file is read again and its searchable text rebuilt. Use it after a change that affects extraction, or when a document was imported before such a change and still answers from stale content.

Running it twice is safe. The previous version of a document is replaced, not added to, so the corpus does not grow and nothing is indexed twice.

Cost and duration

One processing pass per fragment
Reindexing costs one processing pass per fragment of every document. A large corpus takes minutes and counts against your request allowance; if the service is busy, the work waits and resumes rather than dropping a document.

A document whose original file is no longer stored cannot be reindexed. It is reported as skipped rather than silently dropped, and keeps its previous state until a pass succeeds.

Widget configuration

The public widget reads its configuration from GET /widget/{website_id}/config, which needs no key - the project UID in the path and the referring domain are what authorise it. The dashboard reads and writes the same settings through GET and PUT /api/widget-config, which require an account key with widget:write to write and widget:read to read.

The template field selects one of the shipped layouts. Unknown templates fall back to the default rather than breaking the embed, so an outdated snippet keeps rendering after a template is renamed.

Widget vs REST authentication
The embedded widget authenticates with the tenant's key from its script tag. It can only reach the chat endpoint and its own configuration: it never carries an admin or account-level credential.