curl --request GET \
--url https://api.tastelabs.com/judge/brand-adherence/{job_id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.tastelabs.com/judge/brand-adherence/{job_id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.tastelabs.com/judge/brand-adherence/{job_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tastelabs.com/judge/brand-adherence/{job_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tastelabs.com/judge/brand-adherence/{job_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.tastelabs.com/judge/brand-adherence/{job_id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tastelabs.com/judge/brand-adherence/{job_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"job_id": "<string>",
"status": "accepted",
"reference_url": "<string>",
"source_url": "<string>",
"accepted_at": "2023-11-07T05:31:56Z",
"user_id": "<string>",
"current_step": "<string>",
"step_started_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"cache_hit": {
"design_extraction": {
"reference": true,
"source": true
},
"verifier_extraction": {
"reference": true,
"source": true
},
"final_report": true
},
"is_public": true,
"api_key_name": "<string>",
"completed_at": "2023-11-07T05:31:56Z",
"error": "<string>"
}{
"detail": {
"error": "UNAUTHORIZED",
"message": "Bearer token or X-API-Key required"
}
}{
"detail": {
"error": "FORBIDDEN",
"message": "This key is not allowed to call this endpoint."
}
}{
"detail": {
"error": "NOT_FOUND",
"message": "Submission not found"
}
}"Internal Server Error"Get brand-adherence job
Returns the live status of a brand-adherence job. status advances through accepted, extracting, and judging before reaching completed or failed; current_step names the pipeline stage in progress.
Poll this endpoint, then read the verdict from GET /judge/brand-adherence/{job_id}/result once status is completed. On failed, error carries the reason.
curl --request GET \
--url https://api.tastelabs.com/judge/brand-adherence/{job_id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.tastelabs.com/judge/brand-adherence/{job_id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.tastelabs.com/judge/brand-adherence/{job_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tastelabs.com/judge/brand-adherence/{job_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tastelabs.com/judge/brand-adherence/{job_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.tastelabs.com/judge/brand-adherence/{job_id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tastelabs.com/judge/brand-adherence/{job_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"job_id": "<string>",
"status": "accepted",
"reference_url": "<string>",
"source_url": "<string>",
"accepted_at": "2023-11-07T05:31:56Z",
"user_id": "<string>",
"current_step": "<string>",
"step_started_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"cache_hit": {
"design_extraction": {
"reference": true,
"source": true
},
"verifier_extraction": {
"reference": true,
"source": true
},
"final_report": true
},
"is_public": true,
"api_key_name": "<string>",
"completed_at": "2023-11-07T05:31:56Z",
"error": "<string>"
}{
"detail": {
"error": "UNAUTHORIZED",
"message": "Bearer token or X-API-Key required"
}
}{
"detail": {
"error": "FORBIDDEN",
"message": "This key is not allowed to call this endpoint."
}
}{
"detail": {
"error": "NOT_FOUND",
"message": "Submission not found"
}
}"Internal Server Error"Authorizations
API key issued by the Taste Engine. Create one in the dashboard at https://engine.tastelabs.com/app/api-keys.
Path Parameters
Brand-adherence job identifier, as returned by POST /judge/brand-adherence.
Response
The job's status view.
Status view of a single brand-adherence job.
Lifecycle status of a brand-adherence job.
accepted, extracting, judging, completed, failed Name of the pipeline stage currently running, e.g. waiting_for_extractions, judging_scene.
Per-side reuse at each pipeline layer. Reuse makes the job faster.
Show child attributes
Show child attributes
Name of the API key that created the job, when one was used. null for dashboard runs.
null while the job is still running.
Error message when status is failed.
Was this page helpful?

