Skip to content

Find subscribers who stopped opening

GET
/api/v1/newsletter/subscribers/lapsed
curl --request GET \
--url 'https://digize.com/api/v1/newsletter/subscribers/lapsed?days=1' \
--header 'x-api-key: <x-api-key>'

Clean the list: how many subscribers got a post in the last days (30–365) and opened none of them (a person’s open, or a click), having been subscribed longer than that, and the first 20.

Needs the newsletter:read permission.

days
required
integer
>= 30 <= 365

Done

Media typeapplication/json
object
total
required
number
rows
required
Array<object>
object
contactId
required
string
status
required
string
Allowed values: pending subscribed unsubscribed
source
required
string
Allowed values: form link checkout import manual api agent
detail
required
string | null
consentedAt
required
Any of:
string format: date-time
confirmedAt
required
Any of:
string format: date-time
unsubscribedAt
required
Any of:
string format: date-time
reason
required
string | null
updatedAt
required
string format: date-time
formId
required

The form they signed up with: <siteId>:<form name> for a site’s form.

string | null
utm
required
Any of:
object
source
string
medium
string
campaign
string
term
string
content
string
referrerUrl
required

The page they signed up on, or the one that sent them.

string | null
country
required

ISO 3166-1 alpha-2, from their signup, else a person’s open or click.

string | null
region
required
string | null
engagement
required

0–5 stars from the posts that reached them in the last 90 days: up to 3 for the share they opened, up to 2 for the share they clicked (half or more gives both). Null when none did.

number | null
recentSent
required

Posts that reached them in the last 90 days.

number
recentOpened
required

Of those, ones a person opened.

number
recentClicked
required

Of those, ones they clicked in.

number
lastOpenedAt
required
Any of:
string format: date-time
lastClickedAt
required
Any of:
string format: date-time
tierId
required

Their paid tier (newsletter.tiers.list); null for free. It holds until tierUntil.

string | null
tierUntil
required
Any of:
string format: date-time
tierSource
required
Any of:
string
Allowed values: stripe comp gift
name
required
string
email
required
string | null

Example

{
"rows": [
{
"status": "pending",
"source": "form",
"tierSource": "stripe"
}
]
}

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"
}
}