API Reference
Get Job
GET
/
v2
/
jobs
/
{id}
Authorization
Path
curl --request GET \
--url https://mango.sievedata.com/v2/jobs/{id} \
--header 'X-API-Key: <x-api-key>'
{
"id": "34196fe0-6fc9-4cc7-a716-48861ef15c86",
"function_id": "f7de8467-17f3-4599-8f9d-ef601b172f71",
"function": null,
"status": "finished",
"created_at": "2023-10-03T19:06:59.863000",
"started_at": "2023-10-03T19:06:59.912000",
"completed_at": "2023-10-03T19:13:26.469000",
"inputs": {
"video": {
"type": "sieve.Video",
"name": "video",
"data": {
"url": "https://storage.googleapis.com/sieve-public-data/assets/nature.mp4"
},
"description": null
},
},
"outputs": [
{
"type": "sieve.Video",
"name": null,
"data": {
"url": "https://storage.googleapis.com/sieve-public-data/assets/nature.mp4",
"_path": null
},
"description": null
}
],
"error": "",
"visibility": "private",
"run_id": "34196fe0-6fc9-4cc7-a716-48861ef15c86-ebe6922a-a645-4dfd-9a22-468f65326d7d"
}
This endpoint returns a JSON object with information about the job along with its outputs.
Request
id
string
requiredid of the job
Response
id
string
The id of the job.
function_id
string
The id of the function that the job belongs to. This can be the first 7 characters of the full id.
function
string
The name of the function that the job belongs to.
status
string
The status of the job. Possible values: ‘queued’, ‘processing’, ‘error’, ‘finished’, ‘cancelled’;
created_at
string
The time the job was created.
started_at
string
The time the job started processing by the function.
completed_at
string
The time the job was completed.
inputs
list
outputs
list
error
string
The error that the job ran into. Empty string if there’s no error.
visibility
string
“public” or “private”.
run_id
string
The run_id of the job
curl --request GET \
--url https://mango.sievedata.com/v2/jobs/{id} \
--header 'X-API-Key: <x-api-key>'
{
"id": "34196fe0-6fc9-4cc7-a716-48861ef15c86",
"function_id": "f7de8467-17f3-4599-8f9d-ef601b172f71",
"function": null,
"status": "finished",
"created_at": "2023-10-03T19:06:59.863000",
"started_at": "2023-10-03T19:06:59.912000",
"completed_at": "2023-10-03T19:13:26.469000",
"inputs": {
"video": {
"type": "sieve.Video",
"name": "video",
"data": {
"url": "https://storage.googleapis.com/sieve-public-data/assets/nature.mp4"
},
"description": null
},
},
"outputs": [
{
"type": "sieve.Video",
"name": null,
"data": {
"url": "https://storage.googleapis.com/sieve-public-data/assets/nature.mp4",
"_path": null
},
"description": null
}
],
"error": "",
"visibility": "private",
"run_id": "34196fe0-6fc9-4cc7-a716-48861ef15c86-ebe6922a-a645-4dfd-9a22-468f65326d7d"
}