repos

Reindex Repo

Force a fresh re-index of a repo against its current HEAD.

The optional body lets the caller opt into regenerating AI docs on this re-index — same generate_docs / docs_file_percentage knobs as POST /repos/index. When generate_docs=True the credit-hold gate from the initial-index path runs unchanged: free → 403, Pro → atomic credit hold, admin → no hold.

post/repos/{repo_id}/reindex

Path parameters

repo_idstring required

Request body

generate_docsboolean nullable
docs_file_percentagenumber nullable
wiki_style'comprehensive' | 'caveman' | 'reference' | 'tutorial' nullable
docs_language'en' | 'ru' | 'es' | 'fr' | 'de' | 'zh' | 'ja' | 'ko' | 'it' | 'pt' | 'nl' | 'pl' | 'tr' | 'ar' | 'hi' nullable

Response

Successful Response

snapshot_idstring required
short_idstring required
status'queued' | 'indexing' | 'ready' | 'failed' required
cachedboolean required

Changes