posts

Progress of document indexing for AI chat

get/api/posts/{id}/ai-index-status

Request

  • The document declares no server URL.
  • Auth: none declared

Path parameters

idstring required

Response

state'unsupported' | 'preparing' | 'ready' | 'failed' required

'unsupported' — nothing on this post can be indexed. 'preparing' — at least one supported file is still pending or processing. 'ready' — indexing has settled and at least one supported file was indexed. 'failed' — indexing has settled and none succeeded.

indexedChunksnumber required

Live count of post_chunk rows for this post. Deliberately not a percentage: the total chunk count is unknowable until chunking finishes, so any ratio would be invented.

supportedFilesnumber required

Files on this post whose mime type can be indexed

readyFilesnumber required

Supported files that finished indexing successfully

Changes