Resume a post
const url = 'https://digize.com/api/v1/newsletter/posts/example/resume';const options = { method: 'POST', headers: { 'Idempotency-Key': '5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69', '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 POST \ --url https://digize.com/api/v1/newsletter/posts/example/resume \ --header 'Idempotency-Key: 5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69' \ --header 'x-api-key: <x-api-key>'Goes on sending a paused post to those still waiting, after checking it can: one that paused itself for bounces or spam reports should have its list checked first.
Needs the newsletter:write permission. It can’t be undone.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”Makes the request safe to send again: for 24 hours the same key and request answer the first response without repeating the change.
Example
5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69Responses
Section titled “Responses”Done
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
Any of these tags; empty for everyone subscribed.
Leaves out contacts with any of these tags.
Leads (no orders), customers (1–2) or repeat customers (3 or more); empty for all.
In any of these CRM lists (crm.lists.list), smart or static; empty for no list.
Leaves out anyone in any of these segments (CRM lists, newsletter.segments.list); empty to leave nobody out.
Readers by tier: all (or left out), free readers only, paid readers of any tier, or one tier’s id (newsletter.tiers.list). A paid-only post goes to paid readers whatever this says.
object
People’s first opens by the hour, over the 72 hours after it started.
A blocks post’s content; empty for the other formats.
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
The headline on the site; the subject when empty.
For search results and link previews; the title when empty.
Workspace members (members.list), with their names.
object
Its address on the workspace’s site, from the post URL pattern; null without one or for an email-only post.
object
B, C and D as set.
object
When the test’s batches had all gone (ms).
When the winner is picked unless one is picked first (ms).
Digize for the automatic pick, else the member who picked.
The variants that went, A first; empty until it starts sending.
object
0 for A, 1 for B…
A, B, C or D.
People dealt it for the test.
Sent less bounced, now.
People who opened it (a person’s open) or clicked, now.
object
Whether a resend can be made now or scheduled: an issue that finished, without a resend that’s live.
Who a resend would go to now.
Example
{ "format": "plain", "state": "draft", "visibility": "email_web", "access": "all", "kind": "issue", "audience": { "tags": [], "excludeTags": [], "stages": [] }, "blocks": [ { "content": [], "type": "paragraph", "show": { "on": "both", "tiers": "all" } } ], "web": { "title": "", "subtitle": "", "seoTitle": "", "seoDescription": "", "thumbnail": null, "tags": [], "authors": [] }, "abTest": { "metric": "opens", "reason": "best" }, "resend": { "parent": { "state": "draft" }, "resends": [ { "state": "draft" } ] }}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" }}A request with the same Idempotency-Key is still running (conflict).
object
object
object
Example
{ "error": { "code": "invalid" }}The Idempotency-Key was used with a different request.
object
object
object
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
object
object
object
Example
{ "error": { "code": "invalid" }}