Get a contact's subscription
const url = 'https://digize.com/api/v1/newsletter/subscribers/example';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/subscribers/example \ --header 'x-api-key: <x-api-key>'Whether a contact gets newsletters: subscribed, waiting to confirm or unsubscribed, since when and why. Null if they were never asked.
Needs the newsletter:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Done
object
The form they signed up with: <siteId>:<form name> for a site’s form.
The page they signed up on, or the one that sent them.
ISO 3166-1 alpha-2, from their signup, else a person’s open or click.
0–5 stars from the posts that reached them in the last 90 days: up to 3 for the share they opened, up to 2 for the share they clicked (half or more gives both). Null when none did.
Posts that reached them in the last 90 days.
Of those, ones a person opened.
Of those, ones they clicked in.
Their paid tier (newsletter.tiers.list); null for free. It holds until tierUntil.
Example
{ "status": "pending", "source": "form", "tierSource": "stripe"}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" }}