Assistant
Start an autonomous agent run from the owned Assistant conversation and track it automatically.
Start an autonomous agent run from the owned Assistant conversation and track it automatically. The request is scoped to Assistant threads and content accessible to the authenticated caller.
POST
/
api
/
v1
/
assistant
/
threads
/
{id}
/
background-tasks
/
agents
/
{agentId}
/
run
Start an autonomous agent run from the owned Assistant conversation and track it automatically.
curl --request POST \
--url https://api.revoengine.com/api/v1/assistant/threads/{id}/background-tasks/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/assistant/threads/{id}/background-tasks/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/assistant/threads/{id}/background-tasks/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)Body
application/json
Response
201
⌘I
Start an autonomous agent run from the owned Assistant conversation and track it automatically.
curl --request POST \
--url https://api.revoengine.com/api/v1/assistant/threads/{id}/background-tasks/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/assistant/threads/{id}/background-tasks/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/assistant/threads/{id}/background-tasks/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)
