Zum Inhalt springen

Quick status check

GET
/recipients/status
Code sample: Shell / cURL
curl --request GET \
--url 'https://rocketem.fotone.io/api/v2/recipients/status?audience=aud_xxxxxxxxxxxx&email=hello%40example.com' \
--header 'Authorization: Bearer <token>'

Required scope: recipients:read_pii

Lightweight check whether an email exists, is subscribed, blacklisted, and its DOI status. Does not return recipient data. Requires recipients:read_pii scope.

audience
string
/^aud_[A-Za-z0-9]{12}$/

Example

aud_xxxxxxxxxxxx

The audience to work on, by its identifier (aud_ plus 12 characters). The app shows it under Settings > Signup & unsubscribe (pick the audience) > General and, with Custom Audiences on, lists all under Settings > API; GET /audiences returns them as id. The first audience’s identifier, or no parameter, addresses the newsletter. Unknown or trashed audience: 404 audience_not_found; on an endpoint without the parameter: 422 audience_not_supported.

email
required
string format: email

Recipient status

Media typeapplication/json
object
data
object
exists
boolean
subscribed
boolean
blacklisted
boolean
blacklist_reason
string
nullable
doi_status
string
nullable
Allowed values: not_required pending confirmed unsubscribed cleaned transactional archived preference_only
tracking_consent

Stored tracking consent (opens/clicks); null = no entry. Only present for tokens with tracking_consent:read.

string
nullable
Allowed values: granted revoked

Example

{
"data": {
"doi_status": "not_required",
"tracking_consent": "granted"
}
}