Queue an agent publish
curl --request POST \
--url https://api-us.hihobbes.com/api/v1/agent/publish-jobs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"version": 2,
"operationKey": "<string>",
"confirmation": "publish_to_production"
}
'import requests
url = "https://api-us.hihobbes.com/api/v1/agent/publish-jobs"
payload = {
"version": 2,
"operationKey": "<string>",
"confirmation": "publish_to_production"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({version: 2, operationKey: '<string>', confirmation: 'publish_to_production'})
};
fetch('https://api-us.hihobbes.com/api/v1/agent/publish-jobs', 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": "The operation conflicts with current state or idempotency history."
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "Rate limit or organization quota exceeded."
}{
"detail": "The workflow is disabled or temporarily unavailable."
}Agent Publishing
Queue an agent publish
Run tests and publish the exact current staging version after confirmation.
POST
/
api
/
v1
/
agent
/
publish-jobs
Queue an agent publish
curl --request POST \
--url https://api-us.hihobbes.com/api/v1/agent/publish-jobs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"version": 2,
"operationKey": "<string>",
"confirmation": "publish_to_production"
}
'import requests
url = "https://api-us.hihobbes.com/api/v1/agent/publish-jobs"
payload = {
"version": 2,
"operationKey": "<string>",
"confirmation": "publish_to_production"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({version: 2, operationKey: '<string>', confirmation: 'publish_to_production'})
};
fetch('https://api-us.hihobbes.com/api/v1/agent/publish-jobs', 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": "The operation conflicts with current state or idempotency history."
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "Rate limit or organization quota exceeded."
}{
"detail": "The workflow is disabled or temporarily unavailable."
}Requires
agent:publish.
Send the current staging version, a stable operationKey, and
confirmation: "publish_to_production" only after the user explicitly approves
that exact version. Hobbes runs the existing conversation tests before changing
production and returns 202 Accepted with a job to poll.Authorizations
bearerapiKeyHeader
Hobbes API key with the hb_live_ prefix.
Body
application/json
Response
Successful Response
Available options:
queued, running, succeeded, failed Show child attributes
Show child attributes