Zum Inhalt springen

List recipients

GET
/recipients
Code sample: Shell / cURL
curl --request GET \
--url 'https://rocketem.fotone.io/api/v2/recipients?audience=aud_xxxxxxxxxxxx&doi_status=not_required&sort=created_at&page=1&per_page=50&include_total=false' \
--header 'Authorization: Bearer <token>'

Required scope: recipients:read

Returns a paginated list of recipients from the organisation’s database. PII fields are only included if the token has recipients:read_pii scope. Email lookup (?email=) 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 > Preference Center (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
string format: email

Filter by exact email (requires read_pii scope)

external_id
string

Filter by external ID

country
string
<= 2 characters

Filter by country code (2-letter ISO)

doi_status
string
Allowed values: not_required pending confirmed unsubscribed cleaned transactional archived preference_only

Filter by DOI status. The read filter accepts every canonical status including the neutral preference_only (rows created by the preference center for connector-only recipients) — the write endpoints deliberately do not accept preference_only.

since
string format: date

Filter by updated_at >= (ISO 8601 date)

before
string format: date

Filter by updated_at <= (ISO 8601 date)

sort
string
default: created_at

Sort field. Prefix with - for DESC. Allowed: created_at, updated_at, email, first_name, last_name, order_count, total_revenue, first_order_at, last_order_at

fields
string

Comma-separated list of fields to include (sparse fieldset). PII fields require read_pii scope.

page
integer
default: 1 >= 1

Page number (default 1)

per_page
integer
default: 50 >= 1 <= 100

Results per page (1-100, default 50)

include_total
boolean

Include total count in meta (adds COUNT query)

Idempotency-Key
string
<= 255 characters

Unique key for idempotent requests. Responses cached 24h.

Paginated list of recipients

Media typeapplication/json
object
data
Array<object>

A recipient of the list. PII fields (email, name, address, phone) are only included if the token has recipients:read_pii scope. The organisation’s custom fields (see GET /recipients/schema) are also included under their own names; they are always treated as PII. With audience the row comes from the audience table: no shop figures and no custom fields, but birthday, source and extra (the signup form’s own fields, JSON); birthday and extra need recipients:read_pii.

object
id
integer
email

Requires read_pii scope

string format: email
external_id
string
salutation

Requires read_pii scope

string
first_name

Requires read_pii scope

string
last_name

Requires read_pii scope

string
company

Requires read_pii scope

string
phone

Requires read_pii scope

string
title

Requires read_pii scope

string
address1

Requires read_pii scope

string
address2

Requires read_pii scope

string
city

Requires read_pii scope

string
zip

Requires read_pii scope

string
region

Requires read_pii scope

string
country_code

Requires read_pii scope

string
language
string
language_edited

1 when the language is a conscious recipient choice (preference center, or language_edited=true via PATCH). Plain API language writes no longer overwrite it.

integer
lifecycle_stage
string
total_revenue
number
order_count
integer
first_order_at
string format: date-time
last_order_at
string format: date-time
consent_at
string format: date-time
nullable
consent_source
string
nullable
doi_status
string
Allowed values: not_required pending confirmed unsubscribed cleaned transactional archived preference_only
doi_sent_at

When the DOI email was sent

string format: date-time
nullable
doi_confirmed_at

When the recipient confirmed the DOI

string format: date-time
nullable
sync_source
string
source
string
tags

JSON encoded

string
imported_at
string format: date-time
nullable
last_synced_at
string format: date-time
created_at
string format: date-time
updated_at
string format: date-time
meta
object
per_page
integer
page
integer
has_more
boolean
total

Only present if include_total=true

integer

Example

{
"data": [
{
"doi_status": "not_required"
}
]
}

Invalid or missing API token

Media typeapplication/json
object
error
object
code
string
message
string
status
integer

Example generated

{
"error": {
"code": "example",
"message": "example",
"status": 1
}
}

Token lacks required scope

Media typeapplication/json
object
error
object
code
string
message
string
status
integer

Example generated

{
"error": {
"code": "example",
"message": "example",
"status": 1
}
}

Organisation not configured for API access

Media typeapplication/json
object
error
object
code
string
message
string
status
integer

Example generated

{
"error": {
"code": "example",
"message": "example",
"status": 1
}
}