Get newsletter settings
const url = 'https://digize.com/api/v1/newsletter/settings';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/settings \ --header 'x-api-key: <x-api-key>'The Newsletter module’s settings: the service posts go through when more than one is connected, the address they go from, double opt-in, open and click tracking, the postal address for the footer, and the post URL pattern.
Needs the newsletter:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
object
Whether people who sign up on a form, at checkout or through the API confirm by email first.
The business’s postal address, in every post’s footer as anti-spam laws ask. A post can’t be sent without it.
Where a post is on the workspace’s own site, with {slug} for its slug, such as https://example.com/blog/{slug}; empty for none. The view online and web links use it.
Whether the workspace’s email says when it’s opened and clicked.
object
The open pixel in posts, conversation emails and automations’ emails.
Posts’ links go through Digize first.
Example
{ "provider": "resend"}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" }}