List workflows
GET
/api/v1/automations/workflows
const url = 'https://digize.com/api/v1/automations/workflows';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/workflows \ --header 'x-api-key: <x-api-key>'Every workflow with its nodes, connections and its runs over the last 30 days, the last changed first.
Needs the automations:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
Media typeapplication/json
object
rows
required
Array<object>
object
id
required
string
name
required
string
description
required
string
status
required
Active runs on its trigger; paused holds waiting runs; draft never runs.
string
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
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
total
required
number
Example
{ "rows": [ { "status": "active", "nodes": [ { "type": "trigger.form_submitted", "settings": { "onError": "stop" } } ] } ]}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" }}