Latest failure for an agent
Returns diagnostics for the most recent failed run of the specified agent. Useful when asking “Why did my agent fail?” without specifying a run ID.
Authorizations
API Key authorization header. Example: "Authorization: ApiKey {your-api-key}"
OAuth 2.0 Bearer token. Example: "Authorization: Bearer {access-token}"
Path Parameters
The ID of the agent
Response
Returns the run diagnostics
Response model for run diagnostics (why a run failed)
0 = Invalid; 1 = Running; 2 = Exporting; 3 = Starting; 4 = Queuing; 5 = Stopping; 6 = Failure; 7 = Failed; 8 = Stopped; 9 = Completed; 10 = Success; 11 = Skipped; 12 = Waiting
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 Run statistics
Possible failure reasons based on status and error message
Suggested actions to resolve the issue