Get diagnostic details for an agent session
Returns session metadata, transcript events, tool calls/results, errors, and status summary. Full raw provider payloads require agent management permission.
GET
/agent-sessions/{runId}/diagnosticsAuthorization
AuthorizationBearer token (JWT) · headerrequiredor
AuthorizationOAuth2 access token · headerrequiredScopes:
api:reador
AuthorizationBearer token (JWT) · headerrequiredPath parameters
runIdstringrequiredQuery parameters
includeRawstringInclude full raw provider payload fields. Requires agent management permission.
Responses
200
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X GET "https://leadtime.app/api/public/agent-sessions/string/diagnostics" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://leadtime.app/api/public/agent-sessions/string/diagnostics", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});import requests
response = requests.get(
"https://leadtime.app/api/public/agent-sessions/string/diagnostics",
headers={
"Authorization": "Bearer YOUR_TOKEN"
},
)Response
No example response.
Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions