Skip to content

List a post's recipients

GET
/api/v1/newsletter/posts/{id}/recipients
curl --request GET \
--url 'https://digize.com/api/v1/newsletter/posts/example/recipients?status=pending&offset=0&limit=100' \
--header 'x-api-key: <x-api-key>'

Who a post went to and how it went for each: delivered, bounced, opened (by a person or only by their mail app), clicked or unsubscribed.

Needs the newsletter:read permission.

id
required
string
>= 1 characters <= 64 characters
status
string
Allowed values: pending sending sent delivered bounced complained failed cancelled
opened

Only those a person opened it for, or only those not.

boolean

Only those a person opened it for, or only those not.

offset
integer
0 <= 9007199254740991
limit
integer
default: 100 >= 1 <= 1000

Done

Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
newsletterId
required
string
contactId
required
string | null
email
required
string
batch
required
number | null
status
required
string
Allowed values: pending sending sent delivered bounced complained failed cancelled
error
required
string | null
providerId
required
string | null
sentAt
required
Any of:
string format: date-time
deliveredAt
required
Any of:
string format: date-time
openedAt
required
Any of:
string format: date-time
lastOpenedAt
required
Any of:
string format: date-time
opens
required
number
openKind
required
Any of:
string
Allowed values: person machine
openClient
required
string | null
clickedAt
required
Any of:
string format: date-time
clicks
required
number
unsubscribedAt
required
Any of:
string format: date-time
variant
required

The A/B test variant they were dealt (an abTest.results id); null outside the test.

string | null
openDevice
required
Any of:
string
Allowed values: mobile tablet desktop
total
required
number

Example

{
"data": [
{
"status": "pending",
"openKind": "person",
"openDevice": "mobile"
}
]
}

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