Why is my document not queryable yet?
Creating or updating a document returns as soon as the text is stored. It is not searchable until compilation completes.
Poll GET /org/kb/nodes/{id} roughly every 15 seconds until content.processing_status reads complete. The states are pending, processing, complete and failed. On failure content.error_code says why. The /content endpoint on the same node carries the status too, but returns the whole document body with it, which a poll does not need.
Poll the document itself, not GET /org/kb/sync-status. That endpoint reports whether queued moves and deletes are still propagating across the whole organization, which is a different question — it can read true because of somebody else’s work, and false while your document is still compiling.
bash
curl https://apiv2.senso.ai/api/v1/org/kb/nodes/$NODE_ID \
-H "X-API-Key: $SENSO_API_KEY"