Get Agent Run
import requests
url = "https://platform.ankra.app/api/v1/org/ai-agent-runs/{run_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/ai-agent-runs/{run_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/ai-agent-runs/{run_id} \
--header 'Authorization: Bearer <token>'{
"ai_session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"finished_at": "2023-11-07T05:31:56Z",
"goal_status": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"outcome_summary": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"task_name": "<string>",
"tool_iterations": 123,
"trigger_context": "<unknown>",
"turns_used": 123
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}AI Agent Runs
Get Agent Run
Fetch one dispatched AI agent run with its owning task’s name, the full stored outcome summary (the list clips it), and tool_iterations - the tool calls the run’s linked session made, or null when no session is attached. turns_used counts sessions, not tool calls.
GET
/
api
/
v1
/
org
/
ai-agent-runs
/
{run_id}
Get Agent Run
import requests
url = "https://platform.ankra.app/api/v1/org/ai-agent-runs/{run_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/ai-agent-runs/{run_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/ai-agent-runs/{run_id} \
--header 'Authorization: Bearer <token>'{
"ai_session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"finished_at": "2023-11-07T05:31:56Z",
"goal_status": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"outcome_summary": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"task_name": "<string>",
"tool_iterations": 123,
"trigger_context": "<unknown>",
"turns_used": 123
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
Successful Response