Sazabi
APIAutomations

Get an automation

GET
/automations/{automationId}

Get a single automation by ID.

Path Parameters

automationId*string

Automation ID.

Formatuuid

Query Parameters

projectId?string

Project that owns the automation. Auto-filled from CLI and SDK context when omitted.

Formatuuid

Response Body

application/json

curl -X GET "https://example.com/automations/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "automation": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",    "name": "string",    "kind": "script",    "scriptId": "f0627ad0-1039-49a9-8db1-75a1523ed451",    "scriptName": "string",    "signalDefinitionId": "d7125c3e-7ab8-463b-aa4e-53fd9aaeb380",    "signalType": "expression_matched",    "source": "sazabi_managed",    "enabled": true,    "cronExpression": "string",    "timezone": "string",    "timeoutSeconds": -9007199254740991,    "health": "healthy",    "lastRun": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "automationRunKey": "string",      "status": "running",      "startedAt": "2019-08-24T14:15:22Z",      "completedAt": "2019-08-24T14:15:22Z",      "durationMs": -9007199254740991,      "exitCode": -9007199254740991    },    "successRate": 0,    "runCount": -9007199254740991,    "failedRunCount": -9007199254740991,    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "recordedHistoryStartsAt": "2019-08-24T14:15:22Z",    "scriptIdentifier": "string",    "canToggle": true  }}