Skip to content

List newsletter workflows

GET
/api/v1/newsletter/automations
curl --request GET \
--url https://digize.com/api/v1/newsletter/automations \
--header 'x-api-key: <x-api-key>'

The workflows that start from a newsletter event (a subscription, a confirmation, a post published, an open of a post, a referral milestone, a poll answer, a tier change), with their status and runs over the last 30 days. Open one in Automations to change it.

Needs the automations:read permission.

Done

Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
name
required
string
status
required
string
Allowed values: active paused draft
trigger
required

Its trigger’s type.

string
triggerLabel
required
string
summary
required

Its trigger’s settings in a few words.

string
updatedAt
required
string format: date-time
stats
required
object
runs
required

Runs in the last 30 days, tests left out.

number
completed
required
number
failed
required
number
lastRunAt
required
Any of:
string format: date-time

Example

{
"data": [
{
"status": "active"
}
]
}

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}