Zum Inhalt springen

Batch status lookup

POST
/recipients/lookup
Code sample: Shell / cURL
curl --request POST \
--url https://rocketem.fotone.io/api/v2/recipients/lookup \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "audience": "aud_xxxxxxxxxxxx", "emails": [ "hello@example.com" ] }'

Required scope: recipients:read_pii

Check status for up to 100 emails at once. Requires recipients:read_pii scope.

Media typeapplication/json
object
audience

The audience to work on, by its identifier (aud_ plus 12 characters): in the app under Settings > Signup & unsubscribe > General (and Settings > API with Custom Audiences on), or as id in GET /audiences. The first audience’s identifier, or none, addresses the newsletter. A Custom Audience’s table has no shop figures (total_revenue, order_count, first_order_date, last_order_date: 422); the organisation’s custom fields exist there too (since 2.3.0); its doi_status is one of pending, confirmed, not_required, unsubscribed, cleaned. A newsletter opt-out does not block an audience; complaints, bounces and legal blocks do.

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

Example

aud_xxxxxxxxxxxx
emails
required
Array<string>
<= 100 items

Status for each email

Media typeapplication/json
object
data
Array<object>
object
email_hash
string
exists
boolean
subscribed
boolean
blacklisted
boolean
blacklist_reason
string
nullable
doi_status
string
nullable

Example generated

{
"data": [
{
"email_hash": "example",
"exists": true,
"subscribed": true,
"blacklisted": true,
"blacklist_reason": "example",
"doi_status": "example"
}
]
}