Skip to main content

Status API

Use the Status API to check the status of a running execution. This endpoint allows you to track the execution initiated via the Execution API.

Request

Endpoint/deployment/api/<organization_id>/<api_name>
URLhttps://us-central.unstract.com/deployment/api/<organization_id>/<api_name>/
MethodGET
HeadersAuthorization: Bearer <YOUR API KEY>
BodyNone

Parameters

ParameterTypeDefaultRequiredDescription
execution_idstringYesThe ID of the execution.
You can find it in the Execution API response or the API Deployment logs.

Example Curl Request

curl -X GET --location 'https://globe.unstract.com/deployment/api/org_HJqNgodUQsA99S3A/dasda/?execution_id=e748d90f-af7d-4a98-813d-4c47344ff595' \
--header 'Authorization: Bearer <Your API Key>'

Response

Refer to Possible HTTP Status Codes for a complete list of status codes.

Example 200 Response

{
"status": "COMPLETED",
"message": [
{
"file": "abc.pdf",
"status": "Success",
"result": {
"input_file": "abc.pdf",
"result": "unknown"
},
"metadata": {
"source_name": "abc.pdf",
"source_hash": "9bfb3c389658c442101e8c01c7f5eb722e2440297c490a63bf2a848083067da9",
"organization_id": "ABCD",
"workflow_id": "152d2209-af26-474b-b57b-1b786c8a046c",
"execution_id": "<Id of execution at which the file actually executed without using file history>",
"total_elapsed_time": "<total time of execution>",
"tool_metadata": [
{
"tool_name": "classify",
"elapsed_time": "<Tool execution time>",
"output_type": "JSON"
}
]
}
}
]
}

Possible Execution status

StatusDescription
PENDINGThe execution is still being processed. Check back later.
QUEUEDThe task has been queued for asynchronous execution. Check back later.
INITIATEDThe execution has been initiated and will begin soon. Check back later.
READYThe execution is ready for the build phase. Check back later.
EXECUTINGThe execution currently being executed. Please check again later.
COMPLETEDThe execution has been successfully completed, either fully or partially.
ERRORThe API encountered an error during execution, or all file executions have failed.