List posts
const url = 'https://digize.com/api/v1/newsletter/posts';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/newsletter/posts \ --header 'x-api-key: <x-api-key>'Every post, the newest first, with how each went (sent, delivered, opened, clicked, unsubscribed), and the subscriber numbers.
Needs the newsletter:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
object
object
object
Opened by a person, or clicked.
Only a mail app’s own fetch was seen, such as Apple Mail Privacy Protection’s.
Orders credited to it: from its links, or within 7 days of a click.
Those orders’ totals less refunds, in the workspace currency’s minor unit.
issue, or resend: the issue parentId sent again to those who didn’t open it.
The issue a resend went out again for; null for an issue.
object
Subscribed in the last 30 days.
New subscribers a week, the last 12 weeks.
Revenue newsletters brought in the last 30 days, in minor units.
Example
{ "data": [ { "format": "plain", "state": "draft", "visibility": "email_web", "access": "all", "kind": "issue" } ]}What was sent isn’t valid (invalid).
object
object
object
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
object
object
object
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
object
object
object
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
object
object
object
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
object
object
object
Example
{ "error": { "code": "invalid" }}