Get Execution Result

Fetch the result of an Automation run via the Squadbase API.

GEThttps://api.squadbase.dev/v0/automation/{projectId}/{automationName}/executions/{executionId}/result

Returns 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

ValueMeaning
step_failedA step failed. message contains the step and what went wrong
timed_outThe run exceeded the time limit (3 hours)
not_runnableSomething in the Automation is wrong, so the run could not start
lease_lost / reapedThe connection to the run environment was lost and the run was stopped
run_failedThe 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.

Get Execution Result | Squadbase Docs