GET https://api.imageintelligence.com/v2/ask/{id}
Retrieve a previously created ask job by id
.
Name | In | Description |
---|---|---|
id required | path | string The ID of an ask job |
Resources from the ask job successfully returned
id required | string | ||||||||||
createdAt required | integer UNIX timestamp for when the job was created Format: int64 | ||||||||||
status required | string The status for a job Possible values: COMPLETED_SUCCESSFULLY, COMPLETED_PARTIAL_ERROR, COMPLETED_ALL_ERROR, IN_PROGRESS | ||||||||||
customId optional | string An arbitrary client specific resource identifier to reference this job (usually UUID) | ||||||||||
feedId optional | string User specified ID to reference the source of the images within this job | ||||||||||
webhookUrl optional | string Publicly accessible POST endpoint for receiving job status updates | ||||||||||
question required | string The Yes/No question to be answered Max Length: 256 | ||||||||||
examples optional | object
| ||||||||||
jobResults required | object
| ||||||||||
imageResults required | array[object]
|
{
"id": "5d689c71-e68f-46c3-ac71-4053806e71de",
"jobResults": {
"image": {
"id": "52547074-a622-11e6-8f61-63f37dc33285",
"url": "https://publicly.available.domain.net/image-001.jpg",
"proxyUrl": "https://api.quickpix.io/images/c7e9a2ca-c2ee-4290-90b4-04fe3df35be0",
"customId": "some_garage_door_opened_image"
}
},
"imageResults": [
{
"id": "52547074-a622-11e6-8f61-63f37dc33285",
"url": "https://publicly.available.domain.net/image-001.jpg",
"proxyUrl": "https://api.quickpix.io/images/c7e9a2ca-c2ee-4290-90b4-04fe3df35be0",
"customId": "some_garage_door_opened_image",
"status": "COMPLETED_SUCCESSFULLY"
},
{
"id": "52547074-a622-11e6-8f61-63f37dc33286",
"url": "https://publicly.available.domain.net/image-002.jpg",
"proxyUrl": "https://api.quickpix.io/images/c7e9a2ca-c2ee-4290-90b4-04fe3df35be1",
"customId": "some_garage_door_closed_image",
"status": "COMPLETED_SUCCESSFULLY"
}
],
"question": "Is my garage door open?",
"examples": {
"yes": [
"https://publicly.available.domain.net/yes-image-001.jpg",
"https://publicly.available.domain.net/yes-image-002.jpg",
"https://publicly.available.domain.net/yes-image-003.jpg"
],
"no": [
"https://publicly.available.domain.net/no-image-001.jpg",
"https://publicly.available.domain.net/no-image-002.jpg",
"https://publicly.available.domain.net/no-image-003.jpg"
]
},
"createdAt": 1487648348000,
"status": "COMPLETED_SUCCESSFULLY",
"customId": "6c78df0a-67b6-4d5f-93cf-5820cfee501c",
"feedId": "Camera_123456",
"webhookUrl": "https://publicly.available.domain.net/90f8754aa4e287bbb2c07ec99ade0de72ddbd4b6Et"
}