Robot

Job Status

This API enables you to track the current status of a background job. When the job is complete, the response also includes a download link for the generated result/output.

URL

GET https:/app.octagst.com/api/robot/jobstatus/<jobId>

URL Parameters

The jobId must be included as the final segment of the URL path when making this request.

Query Parameters

This API does not require any query parameters.

Request Headers

This API requires following HTTP headers:

  • Authorization

Response

The response will contain following fields:

ParameterData TypeTypeDescription
jobStatusintegerRequiredStatus of the job
errorStringOptionalError message - present only if job failed
urlStringOptionalDownload URL - if job has completed and it has downloadable data

jobStatus values are described below:

JobStatusDescription
0Waiting - Job is waiting in queue
1Working - Job is in progress
100Success - Job is complete
101Failed - An error occurred while executing the job

If the response includes a download URL, the client should retrieve the data immediately. Please note that all download links are time-bound and will automatically expire after a predefined period.