DoclingDocling for IBM watsonx
This is a preview with content being developed and subject to changes. Rely on theofficial announcement and documentationabout the Docling for IBM watsonx product.
API Reference

Poll Status

Check the status of document conversion tasks

Poll Status

Check the progress and status of a document conversion task.

Endpoint

GET /v1/status/poll/{task_id}

Authentication

All requests require authentication using the X-Api-Key header with your API key.

Path Parameters

ParameterTypeRequiredDescription
task_idstringYesThe task ID returned from a conversion request

Request Headers

HeaderRequiredDescription
X-Api-KeyYesYour API key for authentication

Response

Success Response (200 OK)

Returns the current status of the conversion task:

{
  "task_id": "abc123def456",
  "task_type": "convert",
  "task_status": "success",
  "task_position": null,
  "task_meta": null,
  "error_message": null
}
FieldTypeDescription
task_idstringThe unique identifier for this task
task_typestringAlways "convert" for conversion tasks
task_statusstringCurrent status (see Status Values)
task_positionintegerPosition in queue (null when processing or complete)
task_metaobjectAdditional metadata (currently unused)
error_messagestringError description if status is "failure", otherwise null

Status Values

StatusDescriptionNext Action
pendingTask is queued and waiting to be processedContinue polling
processingConversion is currently in progressContinue polling
successConversion completed successfullyRetrieve results using /v1/result/{task_id}
failureConversion failed with an errorCheck error_message field for details

Error Responses

To be added.

Examples

Find examples of using the Status endpoint in the Examples section.

Polling Best Practices

To be added.

Next Steps

Once the status is "success":

  1. Retrieve results - Use the /v1/result/{task_id} endpoint to get the converted document
  2. Process the output - Parse and use the converted content in your application

Common Issues

To be added.

On this page