Find failed runs and the records that failed
A common use of the API is a daily check that reports any run that didn't fully succeed, with the reason for each failed record.
Before you start
You need an API key. See Get started with the Run History API.
Steps
-
List the runs that need attention
Ask for failed and partly successful runs since your last check:
curl "https://{tenantname}.automatedon.io/api/v1/runs?status=Failed,PartiallySucceeded&from=2026-10-21&pageSize=200" \ -H "X-Api-Key: $AO_API_KEY"Add
processIdto check one process only. Dismissed runs are left out unless you addincludeDismissed=true. -
Check for a run-level error
If a run's
errorMessageis set, the run itself failed, usually because its dataset couldn't be collected. There won't be any records to look at. -
Get the failed records
For each run with a
failedCountabove 0, get its failed records with their steps:curl "https://{tenantname}.automatedon.io/api/v1/runs/4182/records?status=Failed&include=steps" \ -H "X-Api-Key: $AO_API_KEY"Each record's
errorMessageis its first error. Insteps, look for actions whereexecutedis true andsuccessis false. Actions withexecutedfalse were skipped because an earlier action in the step failed.
What happens next
Fix the cause in AutomatedOn, then requeue the run there if you need to. The API can't requeue or dismiss runs.