Retrieve API
Retrieve the extracted text executed through the whisper API. This can be used to retrieve the text of the conversion process when the conversion is done in async mode.
Endpoint | /whisper-retrieve |
URL | https://llmwhisperer-api.unstract.com/v1/whisper-retrieve |
Method | GET |
Headers | unstract-key: <YOUR API KEY> |
Parameters
Parameter | Type | Default | Required | Description |
---|---|---|---|---|
whisper-hash | string | Yes | The whisper hash returned while starting the whisper process. |
Example Curl Request
curl -X GET --location 'https://llmwhisperer-api.unstract.com/v1/whisper-retrieve?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 Status | Content-Type | Headers | Description |
---|---|---|---|
200 | text/plain | Text dump of the extraction | |
400 | application/json | Error while retrieveing. Refer below for JSON format |
Example 400
Response
{
"message": "<Error Message>"
}
Possible Error Messages
- Whisper not found
- Whisper not ready
- Whisper already delivered
Note: The extracted text can be retrieved only once. Make sure to store the text in your system if you need to access it multiple times. This is for security and privacy reasons.