Get the newsletter overview
const url = 'https://digize.com/api/v1/newsletter/overview';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/overview \ --header 'x-api-key: <x-api-key>'The Newsletter module’s numbers: subscribers now and day by day over the last 30 days with who joined and left, how the last 10 posts that went out were opened and clicked, the revenue credited to posts in the last 30 days, and the latest posts.
Needs the newsletter:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
object
object
The last 30 days, oldest first.
object
Noon on the day, on the workspace’s clock.
Subscribed at the end of the day.
Subscribed in the last 30 days.
Unsubscribed in the last 30 days.
The last 10 posts that went out, oldest first.
object
Sent less bounced.
People who opened, of those the last 10 posts reached.
Orders credited to posts in the last 30 days, and their totals less refunds in minor units.
object
The 5 newest posts.
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.
Example
{ "latest": [ { "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" }}