const url = ' https://digize.com/api/v1/newsletter/published/example ' ;
const options = {method: ' GET ' , headers: { ' x-api-key ' : ' <x-api-key> ' }} ;
const response = await fetch ( url , options );
const data = await response . json ();
--url https://digize.com/api/v1/newsletter/published/example \
--header ' x-api-key: <x-api-key> '
One post on the web by its slug, for the site’s post page: its web HTML, blocks and SEO fields, cut at the paywall for free readers, in full for a paid reader whose token is passed as reader. Null when no published post has that slug.
Needs the newsletter:read permission.
string
>= 1 characters <= 80 characters
reader
A reader token from newsletter.readers.verify: a paid reader gets paid posts in full.
string
<= 1000 characters
A reader token from newsletter.readers.verify: a paid reader gets paid posts in full.
Media type application/json
Any of:
object Its address on the site, from the post URL pattern in Newsletter › Settings; null without one.
string | null
object The title, unless an SEO title was set.
string
The SEO description, the subtitle, or the first words.
string
string
Allowed values: all free paid
The post’s web HTML: semantic tags with nl- classes (nl-image, nl-button, nl-embed, nl-paywall…) for the site to style. Cut at the paywall for free readers.
string
The blocks behind the HTML, cut the same way, for a site that renders its own.
Array
One of:
object Array<object>
default: <= 2000 items
object string
<= 20000 characters
marks
Array<string>
<= 5 items
Allowed values: bold italic underline strike code
href
string
>= 1 characters <= 2000 characters
string
Allowed value: paragraph
object string
default: both
Allowed values: both email web
string
default: all
Allowed values: all free paid
object Array<object>
default: <= 2000 items
object string
<= 20000 characters
marks
Array<string>
<= 5 items
Allowed values: bold italic underline strike code
href
string
>= 1 characters <= 2000 characters
string
Allowed value: heading
object string
default: both
Allowed values: both email web
string
default: all
Allowed values: all free paid
object Array<Array<object>>
default: <= 200 items
string
Allowed value: list
object string
default: both
Allowed values: both email web
string
default: all
Allowed values: all free paid
object Array<Array<object>>
default: >= 1 items <= 50 items
string
Allowed value: quote
object string
default: both
Allowed values: both email web
string
default: all
Allowed values: all free paid
object string
<= 2000 characters
string
"" <= 500 characters
integer
default: 100 >= 10 <= 100
href
string
>= 1 characters <= 2000 characters
string
"" <= 500 characters
string
Allowed value: image
object string
default: both
Allowed values: both email web
string
default: all
Allowed values: all free paid
object string
default: Read more >= 1 characters <= 80 characters
string
>= 1 characters <= 2000 characters
string
default: center
Allowed values: left center right
string
Allowed value: button
object string
default: both
Allowed values: both email web
string
default: all
Allowed values: all free paid
object string
Allowed values: youtube x instagram tiktok
string
<= 2000 characters
string
>= 1 characters <= 40 characters
string
"" <= 500 characters
string
"" <= 200 characters
Any of:
string
<= 2000 characters
string
"" <= 500 characters
string
Allowed value: embed
object string
default: both
Allowed values: both email web
string
default: all
Allowed values: all free paid
object string
Allowed value: divider
object string
default: both
Allowed values: both email web
string
default: all
Allowed values: all free paid
object string
"" <= 50000 characters
string
"" <= 30 characters /^[\w+#.-]*$/
string
Allowed value: code
object string
default: both
Allowed values: both email web
string
default: all
Allowed values: all free paid
object Array<Array<Array<object>>>
default: >= 1 items <= 50 items
string
Allowed value: table
object string
default: both
Allowed values: both email web
string
default: all
Allowed values: all free paid
object string
"" <= 50000 characters
string
Allowed value: html
object string
default: both
Allowed values: both email web
string
default: all
Allowed values: all free paid
object string
default: The rest of this post is for paid subscribers. <= 300 characters
string
Allowed value: paywall
object string
default: both
Allowed values: both email web
string
default: all
Allowed values: all free paid
object string
default: Share the newsletter <= 120 characters
string
default: Know someone who'd like it? Send them your link. Every friend who subscribes counts towards a reward. <= 500 characters
string
default: Share your link >= 1 characters <= 40 characters
string
Allowed value: referral
object string
default: both
Allowed values: both email web
string
default: all
Allowed values: all free paid
object string
>= 1 characters <= 64 characters
string
>= 1 characters <= 120 characters
Any of:
string
<= 2000 characters
string
"" <= 1500 characters
string
default: Learn more >= 1 characters <= 80 characters
string
>= 1 characters <= 2000 characters
string
Allowed value: sponsor
object string
default: both
Allowed values: both email web
string
default: all
Allowed values: all free paid
object string
"" <= 40 characters
string
default: What did you think of this issue? >= 1 characters <= 200 characters
Array<string>
default: Loved it,It was fine,Not for me >= 2 items <= 6 items
string
Allowed value: poll
object string
default: both
Allowed values: both email web
string
default: all
Allowed values: all free paid
Whether something was held back for paid readers.
boolean
The first words, for an archive or a feed.
string
What was sent isn’t valid (invalid).
Media type application/json
object object string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
No key, or one that’s unknown, off or expired.
Media type application/json
object object string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
The key doesn’t have the permission this needs.
Media type application/json
object object string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
Nothing has that id (not_found).
Media type application/json
object object string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
Over the rate limit; see retry-after.
Media type application/json
object object string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal