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
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.
