Get a run
GET
/api/v1/automations/runs/{id}
const url = 'https://digize.com/api/v1/automations/runs/example';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/automations/runs/example \ --header 'x-api-key: <x-api-key>'One run with the workflow as it was then and every node’s items in and out.
Needs the automations:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”Done
Media typeapplication/json
object
id
required
string
workflowId
required
string
workflowName
required
string
mode
required
string
cause
required
What started it, such as “Order #1042 paid”.
string
status
required
string
nodeName
required
The node it’s on, or stopped at.
string | null
nodesRun
required
number
nodeCount
required
number
startedAt
required
string format: date-time
error
required
string | null
retryOf
required
string | null
nodes
required
Array<object>
object
id
required
string
type
required
The kind of node, such as trigger.form_submitted or action.send_sms.
string
name
required
Unique in the workflow, so expressions can name it: $(‘Wait a day’).
string
position
required
object
x
required
number
y
required
number
params
required
disabled
boolean
settings
object
onError
string
retries
integer
notes
string
edges
required
Array<object>
object
id
required
string
source
required
string
sourceHandle
required
Main, or true/false for If, or a path’s id for Switch.
string
target
required
string
results
required
Array<object>
object
nodeId
required
string
status
required
string
startedAt
required
string format: date-time
input
required
output
required
branch
required
string | null
error
required
string | null
Example
{ "mode": "trigger", "status": "running", "nodes": [ { "type": "trigger.form_submitted", "settings": { "onError": "stop" } } ], "results": [ { "status": "success" } ]}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}