Skip to main content
Version: 2.0.0

Status API

Check the status of the text extraction process. This can be used to check the status of the conversion process when the conversion is done in async mode.

Endpoint/whisper-status
URLhttps://llmwhisperer-api.us-central.unstract.com/api/v2/whisper-status
MethodGET
Headersunstract-key: <YOUR API KEY>

Parameters

ParameterTypeDefaultRequiredDescription
whisper_hashstringYesThe whisper hash returned while starting the whisper process.

Example Curl Request

curl -X GET --location 'https://llmwhisperer-api.us-central.unstract.com/api/v2/whisper-status?whisper_hash=XXXXXXXXXXXXXXXXXXX' \
-H 'unstract-key: <Your API Key>'
info

To include the headers in the response use curl -i in the request.

Response

HTTP StatusContent-TypeHeadersDescription
200application/jsonThe API will return a JSON with the status. Refer below for JSON format
400application/jsonThe API will return a JSON with the error message. Refer below for JSON format

Example 200 Response

{
"detail": [
{
"execution_time_in_seconds": 4,
"message": "extraction_success",
"page_no": 1
},
{
"execution_time_in_seconds": 4,
"message": "extraction_success",
"page_no": 2
}
],
"message": "<human readble message>",
"status": "processed"
}

Example 400 Response

{
"message": "Whisper job not found for the provided whisper hash"
}

Possible Statuses

200 OK

  • accepted: The document has been accepted and has been added to the processing queue.
  • processing: The document is still being processed. Check back later.
  • processed: The document has been processed and the text is ready to be retrieved.
  • error: The document processing has failed. Check the error message for more details.
  • retrieved: The text has been retrieved.