Skip to main content
get/knowledge-fs/spaces/{knowledge_base_id}/logical-documents/{document_id}/processing-tasks/{task_id}
Request example
Response
get/knowledge-fs/spaces/{knowledge_base_id}/logical-documents/{document_id}/processing-tasks/{task_id}

Authorization

Authorizationstringheaderrequired#

Every request authenticates with an API key: Authorization: Bearer {API_KEY}. App endpoints take an app API key; knowledge endpoints take a knowledge base API key (Get Started).

Keep keys server-side; never embed them in client code. Requests with a missing or invalid key fail with HTTP 401 (unauthorized).

Path parameters

knowledge_base_idstringrequired#
Knowledge base ID: the last segment of the Service API endpoint shown in the knowledge base's API Access dialog (…/knowledge-fs/spaces/<knowledge base ID>), and the segment after /datasets/new/ in the address bar.
document_idstringrequired#
The document ID, from List Documents.
task_idstringrequired#
Indexing task ID: latest_task.id from Get Document or List Documents, or id from List Document Indexing Tasks. The task must belong to this document.

Responses

application/json
The indexing task.
active_operationsstring[]#
Operations under way in the current phase, such as parse, chunk, embedding, or publication.
completed_atstring#
When the task ended, ISO 8601. null while it runs.
created_atstring#
When the task was created, ISO 8601. Get Indexing Task reports the same task's times in epoch milliseconds.
document_idstring#
Document ID.
document_revisioninteger#
Revision this task builds.
error_codestring#
Error code when state is failed.
error_messagestring#
The message for error_code. Can differ from failure.message.
failureobject#
Error details when state is failed. stage is the phase the task failed in, and traceId is the task ID. null otherwise.
idstring#
Indexing task ID. The same ID works with Get Indexing Task, Cancel Indexing Task, and Retry Indexing Task.
knowledge_space_idstring#
Internal ID of the knowledge base. Not the knowledge base ID in the path.
phasestring#
What the task is doing: queued, parsing, outline_summary, chunking_indexing, graph_admission, publication, or complete.
progress_percentinteger#
Progress from 0 to 100, derived from stage.
retry_atstring#
When the automatic retry runs, ISO 8601. Set while state is retry_wait.
semantic_enrichmentobject#
Knowledge graph building after the revision publishes. Indexing finishes the knowledge graph before publishing, so it doesn't schedule this step. state is not_scheduled while the task runs and disabled once it has ended. nodes_completed stays 0.
stagestring#
Last checkpoint reached, in forward order: queued, parsed, outline_built, nodes_generated, projection_built, smoke_eval_passed, published. It stays at the last checkpoint when the task fails or is canceled, so read state for the outcome.
statestring#

Run state:

  • dispatch_pending, queued: waiting for a worker.
  • retry_wait: an automatic retry is scheduled at retry_at.
  • running: a worker is indexing.
  • succeeded: the revision is published and serves queries.
  • failed: see failure. Restart it with Retry Indexing Task.
  • canceled.
  • superseded: a newer attempt replaced this one.

succeeded, failed, canceled, and superseded are terminal.

updated_atstring#
When the task last changed, ISO 8601.