Skip to content

Get a contact's subscription

Deprecated
GET
/api/v1/subscribers/{contactId}
curl --request GET \
--url https://digize.com/api/v1/subscribers/example \
--header 'x-api-key: <x-api-key>'

Deprecated: use newsletter.subscribers.get, which does the same. 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.

contactId
required
string
>= 1 characters <= 64 characters

Done

Media typeapplication/json
Any of:
object
contactId
required
string
status
required
string
Allowed values: pending subscribed unsubscribed
source
required
string
Allowed values: form link checkout import manual api agent
detail
required
string | null
consentedAt
required
Any of:
string format: date-time
confirmedAt
required
Any of:
string format: date-time
unsubscribedAt
required
Any of:
string format: date-time
reason
required
string | null
updatedAt
required
string format: date-time
formId
required

The form they signed up with: <siteId>:<form name> for a site’s form.

string | null
utm
required
Any of:
object
source
string
medium
string
campaign
string
term
string
content
string
referrerUrl
required

The page they signed up on, or the one that sent them.

string | null
country
required

ISO 3166-1 alpha-2, from their signup, else a person’s open or click.

string | null
region
required
string | null
engagement
required

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.

number | null
recentSent
required

Posts that reached them in the last 90 days.

number
recentOpened
required

Of those, ones a person opened.

number
recentClicked
required

Of those, ones they clicked in.

number
lastOpenedAt
required
Any of:
string format: date-time
lastClickedAt
required
Any of:
string format: date-time
tierId
required

Their paid tier (newsletter.tiers.list); null for free. It holds until tierUntil.

string | null
tierUntil
required
Any of:
string format: date-time
tierSource
required
Any of:
string
Allowed values: stripe comp gift

Example

{
"status": "pending",
"source": "form",
"tierSource": "stripe"
}

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}