Get a subscriber's page
const url = 'https://digize.com/api/v1/newsletter/subscribers/example/profile';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/profile \ --header 'x-api-key: <x-api-key>'One subscriber: their contact with its CRM fields and tags, their subscription with how they came and their engagement, its history with the proof (each consent, confirmation and unsubscribe), every post sent to them with what they did, the segments they’re in, who referred them and their own referrals (code, share link, how their referrals stand, the people they referred, milestones and rewards), and the polls they answered.
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
object
In E.164, such as +15125550142.
The member who looks after them, by user id.
Lead: hasn’t ordered; customer: one or two orders; repeat: three or more.
What they’ve paid, less refunds, in minor units.
Lead score, from the scoring rules in CRM settings.
Custom field values by field key.
object
The custom fields the contact has a value in.
object
What the field is kept on: contacts, companies or opportunities.
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.
The signup form’s name.
Their email consent records, newest first: each subscribe, confirmation and unsubscribe, with where, when, who and the words.
object
The words they agreed to.
Every post sent to them, the newest first (200 at most).
object
The segments (contact lists) they’re in now.
object
object
Whether the referral program is on now.
Their referral code.
Their share link, while the program is on.
People who came by their link: counted, pending (waiting to confirm), refused by a fraud check, void (voided by a member).
object
Why the fraud checks refused their referrals, the most often first.
object
People who came by their link, the newest first (200 at most): state and note say where each referral stands and why, status their subscription, at when it was counted, refused or voided.
The active milestones.
object
Whether their count reaches it.
The rewards they earned, with where each is.
object
Each poll they answered, the latest first (200 at most).
object
Their answer’s place in the poll’s options.
When they answered, or last changed it.
Example
{ "contact": { "source": "checkout", "stage": "lead" }, "fields": [ { "entity": "contact", "type": "text" } ], "subscription": { "status": "pending", "source": "form", "tierSource": "stripe" }, "posts": [ { "status": "pending", "openKind": "person" } ], "referredBy": { "state": "pending" }, "referrals": { "referred": [ { "state": "pending" } ], "milestones": [ { "kind": "promo_code" } ], "rewards": [ { "kind": "promo_code", "status": "issued", "address": { "line2": "", "region": "", "postalCode": "" } } ] }}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" }}