List custom benchmarks
Page through the custom benchmarks in your default workspace.
/v1/benchmarksLists the custom benchmarks in your organization's default workspace,
sorted by sort_by and sort_direction. Deleted benchmarks and Vizit
benchmarks are never listed. Page with limit and offset; the
Vizit-Total-Count response header carries the number of benchmarks
that match the filters.
Custom benchmarks must be enabled for your organization. Until they
are, every benchmark and collection route answers 404 NOT_FOUND.
Authorization
bearerAuth Short-lived access token issued by Create a token.
Send it on every request as Authorization: Bearer <token>.
In: header
Query Parameters
Keep benchmarks of this scope.
"hero" | "carousel"Case-insensitive substring match on the benchmark name.
Keep benchmarks whose last scoring was under this product category.
uuidField to sort by.
"created_at""created_at" | "updated_at" | "name"Sort direction.
"asc""asc" | "desc"Number of items to return.
101 <= value <= 100Number of items to skip.
00 <= valueResponse Body
application/json
application/json
application/json
application/json
curl -X GET "https://ext.vizit.com/v1/benchmarks"[ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "Spring refresh hero set", "description": "string", "scope": "hero", "asset_type": "string", "image_count": 0, "minimum_images": 30, "recommended_images": 80, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "last_scoring": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "benchmark_id": "f1254acf-0c77-40a6-91d2-a34bd4970fd9", "retailer": "amazon", "product_category_id": "8df7b127-d8ab-4b5d-a571-ee2b3ab38511", "product_category_name": "Snack Bars", "status": "PROCESSING", "requested_at": "2019-08-24T14:15:22Z", "ready_at": "2019-08-24T14:15:22Z", "error_code": "ENQUEUE_FAILED" } }]{ "detail": "string", "status_code": 0, "error_code": "IMAGE_DOWNLOAD_FAILED", "request_id": "266ea41d-adf5-480b-af50-15b940c2b846", "extra": { "failed_urls": [ { "url": "https://cdn.example.com/broken.jpg", "reason": "IMAGE_DOWNLOAD_TIMEOUT" }, { "url": "https://cdn.example.com/icon.svg", "reason": "UNSUPPORTED_IMAGE_FORMAT" } ] }, "timestamp": "2019-08-24T14:15:22Z"}{ "detail": "string", "status_code": 0, "error_code": "IMAGE_DOWNLOAD_FAILED", "request_id": "266ea41d-adf5-480b-af50-15b940c2b846", "extra": { "failed_urls": [ { "url": "https://cdn.example.com/broken.jpg", "reason": "IMAGE_DOWNLOAD_TIMEOUT" }, { "url": "https://cdn.example.com/icon.svg", "reason": "UNSUPPORTED_IMAGE_FORMAT" } ] }, "timestamp": "2019-08-24T14:15:22Z"}{ "detail": "string", "status_code": 0, "error_code": "IMAGE_DOWNLOAD_FAILED", "request_id": "266ea41d-adf5-480b-af50-15b940c2b846", "extra": { "failed_urls": [ { "url": "https://cdn.example.com/broken.jpg", "reason": "IMAGE_DOWNLOAD_TIMEOUT" }, { "url": "https://cdn.example.com/icon.svg", "reason": "UNSUPPORTED_IMAGE_FORMAT" } ] }, "timestamp": "2019-08-24T14:15:22Z"}GETRetrieve a Spark Images batch
Returns the current state of a Spark Images batch. Poll until `status` moves from `PROCESSING` to `COMPLETED` or `ERROR`. `data` is empty until `status` is `COMPLETED`. The batch only completes once every prompt is terminal and Spark Cull has resolved every child image; while cull is settling it stays `PROCESSING` with empty `data`. Once `COMPLETED`, `data` holds the visible children only — each with a short-lived pre-signed download URL that a fresh request refreshes, plus that child's score (`score_status`, `vizit_score`, `vizit_certified`, and `score_error_code` when Vizit does not score the image). One call is therefore enough to get the images and their scores; [Retrieve an image score](/api/images/getImageScore) remains available for a single child and adds the hero GS1 component detail. A batch that has been non-terminal for longer than the 5-minute timeout is reported as `ERROR` here even when the database rows still read as in-flight.
POSTCreate a custom benchmark
Creates an empty custom benchmark in your organization's default workspace. Fill it with [Add images to a benchmark](/api/benchmarks/addBenchmarkImages), [Upload an image to a benchmark](/api/benchmarks/uploadBenchmarkImage) or [Upload images to a benchmark in bulk](/api/benchmarks/bulkUploadBenchmarkImages). Nothing can be scored against it until it holds `minimum_images` visible images. A `hero` benchmark holds hero images and a `carousel` benchmark holds carousel images. Set `asset_type` to make a carousel benchmark of Other assets, such as recipes.