Poll an agent publish job
curl --request GET \
--url https://api-us.hihobbes.com/api/v1/agent/publish-jobs/{job_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-us.hihobbes.com/api/v1/agent/publish-jobs/{job_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-us.hihobbes.com/api/v1/agent/publish-jobs/{job_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"requestedVersion": 123,
"links": {
"staging": {
"url": "<string>",
"availabilityReason": "<string>"
},
"production": {
"url": "<string>",
"availabilityReason": "<string>"
}
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"errorCode": "<string>",
"errorMessage": "<string>",
"productionLink": "<string>",
"completedAt": "2023-11-07T05:31:56Z"
}{
"detail": "API key required or invalid."
}{
"detail": "API key does not include the required scope."
}{
"detail": "Publish job not found in the key's organization."
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "Rate limit or organization quota exceeded."
}Agent Publishing
Poll an agent publish job
Return publish status, a safe failure reason, and the production link after success.
GET
/
api
/
v1
/
agent
/
publish-jobs
/
{job_id}
Poll an agent publish job
curl --request GET \
--url https://api-us.hihobbes.com/api/v1/agent/publish-jobs/{job_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-us.hihobbes.com/api/v1/agent/publish-jobs/{job_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-us.hihobbes.com/api/v1/agent/publish-jobs/{job_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"requestedVersion": 123,
"links": {
"staging": {
"url": "<string>",
"availabilityReason": "<string>"
},
"production": {
"url": "<string>",
"availabilityReason": "<string>"
}
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"errorCode": "<string>",
"errorMessage": "<string>",
"productionLink": "<string>",
"completedAt": "2023-11-07T05:31:56Z"
}{
"detail": "API key required or invalid."
}{
"detail": "API key does not include the required scope."
}{
"detail": "Publish job not found in the key's organization."
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "Rate limit or organization quota exceeded."
}Requires
agent:publish.
Store the response ETag, send it as If-None-Match on the next poll, and honor
Retry-After. An unchanged job returns 304 Not Modified. A failed job does
not change production.Authorizations
bearerapiKeyHeader
Hobbes API key with the hb_live_ prefix.
Headers
Path Parameters
Asynchronous job UUID.
Response
Successful Response
Available options:
queued, running, succeeded, failed Show child attributes
Show child attributes