API Reference
Get Job
GET
/v1/jobs/{id}
X-API-Key*
curl --request GET \
--url https://mango.sievedata.com/v1/jobs/{id} \
--header 'X-API-Key: <x-api-key>'
This endpoint returns a JSON object with information about the job along with its outputs.
Request
idrequired
string
id of the job
Response
id
string
The id of the job.
workflow_id
string
The id of the workflow that the job belongs to.
time
dict
The times when the job was queued, started, and completed.
status
string
The status of the job. Can be “queued”, “started”, “finished”, or “error”.
user_inputs
dict
The inputs that the user provided to trigger the job.
data
list
The outputs of the job. Populated as the job progresses, and can be polled for updates.
types
list
The types of the outputs of the job. Populated as the job progresses, and can be polled for updates.
{
"id": "506f3a2d-cae1-4a84-b816-f9e189a15cf0",
"workflow_id": "85c9563b-cc53-45e6-b993-508efaee9802",
"time": {
"queued":"2023-02-13T02:02:57.015000",
"started":"2023-02-13T04:34:48.949000",
"completed":"2023-02-13T04:38:17.853000"
},
"status": "finished",
"error": "",
"user_inputs": {
"image": {
"url": "https://www.incimages.com/uploaded_files/image/1920x1080/getty_481292845_77896.jpg"
}
},
"data": ["a man sitting at a table with a laptop "],
"types":["builtins.str"],
"next_offset":-1
}
curl --request GET \
--url https://mango.sievedata.com/v1/jobs/{id} \
--header 'X-API-Key: <x-api-key>'
{
"id": "506f3a2d-cae1-4a84-b816-f9e189a15cf0",
"workflow_id": "85c9563b-cc53-45e6-b993-508efaee9802",
"time": {
"queued":"2023-02-13T02:02:57.015000",
"started":"2023-02-13T04:34:48.949000",
"completed":"2023-02-13T04:38:17.853000"
},
"status": "finished",
"error": "",
"user_inputs": {
"image": {
"url": "https://www.incimages.com/uploaded_files/image/1920x1080/getty_481292845_77896.jpg"
}
},
"data": ["a man sitting at a table with a laptop "],
"types":["builtins.str"],
"next_offset":-1
}