Start an Agent run
Start an Agent run. The request enforces Agent roles, ownership, workspace boundaries, and lifecycle state.
curl --request POST \
--url https://api.revoengine.com/api/v1/agents/{agentId}/run \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"instruction": "Review the failed deployment and prepare a rollback recommendation."
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
instruction: 'Review the failed deployment and prepare a rollback recommendation.'
})
};
fetch('https://api.revoengine.com/api/v1/agents/{agentId}/run', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/agents/{agentId}/run"
payload = { "instruction": "Review the failed deployment and prepare a rollback recommendation." }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
Bearer JWT token or API Key (sk-*).
Path Parameters
Body
Instruction or mission passed to the root agent run.
1"Review the failed deployment and prepare a rollback recommendation."
Readable Agent-workspace storage entries attached to the first conversation message.
8["66666666-6666-4666-8666-666666666666"]
Optional trigger type such as REQUEST, EVENT, or SCHEDULE.
"SCHEDULE"
Optional external reference type for correlation.
"scheduleId"
Optional external reference id for correlation.
"44444444-4444-4444-8444-444444444444"
Optional first-dispatch deadline, from acceptance through 30 days ahead. The run is recorded immediately.
"2026-06-13T10:30:00.000Z"
Optional run-scoped state merged into the initial supervisor state.
{
"incidentId": "INC-421",
"severity": "high"
}
Optional registry plugin ids attached for this run.
["55555555-5555-4555-8555-555555555555"]
Response
curl --request POST \
--url https://api.revoengine.com/api/v1/agents/{agentId}/run \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"instruction": "Review the failed deployment and prepare a rollback recommendation."
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
instruction: 'Review the failed deployment and prepare a rollback recommendation.'
})
};
fetch('https://api.revoengine.com/api/v1/agents/{agentId}/run', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/agents/{agentId}/run"
payload = { "instruction": "Review the failed deployment and prepare a rollback recommendation." }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
