Skip to content

Posts by date

GET
/api/v1/newsletter/calendar
curl --request GET \
--url 'https://digize.com/api/v1/newsletter/calendar?from=2026-04-15T12%3A00%3A00Z&to=2026-04-15T12%3A00%3A00Z' \
--header 'x-api-key: <x-api-key>'

Posts scheduled, or that went, from from to before to (62 days at most), by when: the Posts page’s calendar. Drafts aren’t on it.

Needs the newsletter:read permission.

from
required
string format: date-time
to
required
string format: date-time

Done

Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
name
required
string
subject
required
string
state
required
string
Allowed values: draft scheduled sending paused sent cancelled failed
kind
required
string
Allowed values: issue resend
at
required

When it’s set to go, or when it went.

string format: date-time
recipients
required
number
tested
required

Whether it has an A/B test.

boolean

Example

{
"data": [
{
"state": "draft",
"kind": "issue"
}
]
}

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