List RSS feeds
const url = 'https://digize.com/api/v1/newsletter/feeds';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/feeds \ --header 'x-api-key: <x-api-key>'The workspace’s RSS and Atom feeds: what each does with new items (a draft post each, or a digest on a schedule), when it was last checked and its next digest, and its items so far.
Needs the newsletter:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
object
object
The feed’s own title, from its last check.
draft: a draft post for each new item; digest: the new items in a post sent on a schedule.
The digest’s schedule in words.
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.
Why the last check or digest didn’t work.
object
object
Example
{ "data": [ { "mode": "draft", "digest": { "frequency": "daily", "day": "sunday", "hour": 9 }, "audience": { "tags": [], "excludeTags": [], "stages": [] }, "latest": [ { "state": "baseline" } ] } ]}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" }}