Skip to content

Publishing to the web

Digize doesn’t host a newsletter website. Your own site, one the AI coding agent built on Digize or one you run elsewhere, lists your posts and shows each one from the API (Newsletter API). A post on the web is one the API hands out.

Where it goes On the web
Email and web When it’s sent: the moment it starts going, or when its scheduled time comes.
Web only When you press Publish to web in its editor. It’s never emailed.
Email only Never.

A web-only post stays a draft you can keep changing while it’s live: each save changes it on your site too. A post that went by email can’t be changed; if it’s taken off the web, its report’s Publish to web puts it back. Unpublish (in the editor of a web-only post, or on a sent post’s report) takes it off. Deleting a web-only draft that’s live takes it off as well.

On the web, a post’s address is its slug, made from its title. It’s kept as it is once the post is on the web.

Through the API, POST /api/v1/newsletter/posts/{id}/publish and POST /api/v1/newsletter/posts/{id}/unpublish do the same.

Publishing emits newsletter.published for automations (newsletterId, slug, access), and goes to your webhooks as:

Event When
newsletter.post.published A post went on the web
newsletter.post.updated A web-only post that’s live was changed
newsletter.post.unpublished A post came off the web, or a live web-only post was deleted

Each carries the post’s id, slug, title, url, access, tags and published_at, so your site can rebuild the page or purge its cache. They need newsletter:read.

Newsletter › Settings › Posts on your site takes the address your site shows a post at, with {slug} where the slug goes, such as https://example.com/blog/{slug}. With it set:

  • a post’s url in the API and its webhooks is its address there;
  • {{view_online}} (the email’s View in browser link, and any button or link to it) goes to the post on your site, for posts that go on the web. Its clicks are counted like any other link’s.

Without the pattern, or for an email-only post, View in browser opens the reader’s own copy of the email on your workspace’s link address (/_v/…, the same address the email’s tracked links use): filled in for them, with nothing tracked, nothing run in it and kept out of search engines. A test send’s link opens the post as nobody in particular.