Get Agent Run Transcript
import requests
url = "https://platform.ankra.app/api/v1/org/ai-agent-runs/{run_id}/transcript"
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}/transcript', 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}/transcript \
--header 'Authorization: Bearer <token>'{
"events": [
{
"created_at": "<string>",
"event_type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payload": "<unknown>",
"payload_text": "<string>",
"sequence_number": 123,
"session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"last_sequence_number": 123,
"session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}AI Agent Runs
Get Agent Run Transcript
Read the run’s linked session transcript (ai_session_event page after since). Events whose payload is a bare JSON string - the assistant’s own prose above all - carry it in payload_text; payload keeps object payloads only.
GET
/
api
/
v1
/
org
/
ai-agent-runs
/
{run_id}
/
transcript
Get Agent Run Transcript
import requests
url = "https://platform.ankra.app/api/v1/org/ai-agent-runs/{run_id}/transcript"
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}/transcript', 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}/transcript \
--header 'Authorization: Bearer <token>'{
"events": [
{
"created_at": "<string>",
"event_type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payload": "<unknown>",
"payload_text": "<string>",
"sequence_number": 123,
"session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"last_sequence_number": 123,
"session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.