Get Execution Result
Fetch the result of an Automation run via the Squadbase API.
GET
https://api.squadbase.dev/v0/automation/{projectId}/{automationName}/executions/{executionId}/resultReturns the result of an Automation run. This endpoint always responds with 200 OK: while the run is in progress, output is null and only status is meaningful.
Request headers
Prop
Type
Required
Path parameters
Prop
Type
Required
Response — 200 OK
Prop
Type
{
"executionId": "uuid",
"projectId": "uuid",
"automationName": "daily-sales-alert",
"status": "COMPLETED",
"output": "Sales for 3 products fell 20% or more versus the same weekday last week. ...",
"summary": { "stepCount": 3, "succeededSteps": 3, "failedSteps": 0, "skippedSteps": 0 },
"error": null,
"completedAt": "ISO8601"
}error.type values
| Value | Meaning |
|---|---|
step_failed | A step failed. message contains the step and what went wrong |
timed_out | The run exceeded the time limit (3 hours) |
not_runnable | Something in the Automation is wrong, so the run could not start |
lease_lost / reaped | The connection to the run environment was lost and the run was stopped |
run_failed | The run failed for another reason |
Example
curl 'https://api.squadbase.dev/v0/automation/<PROJECT_ID>/<AUTOMATION_NAME>/executions/<EXECUTION_ID>/result' \
-H 'x-api-key: <YOUR_API_KEY>'Returns 422 if the executionId does not exist or does not belong to the Automation in the path. See Errors.