Field discovery
curl --request GET \ --url 'https://rocketem.fotone.io/api/v2/recipients/schema?audience=aud_xxxxxxxxxxxx' \ --header 'Authorization: Bearer <token>'Required scope: recipients:read
Lists every field the recipient endpoints can return or accept — standard columns plus the organisation’s custom fields — with type, label, PII flag and whether the write endpoints accept it.
Use this to discover the org-specific custom fields before building
an integration: custom fields are readable/writable under their own
name on the recipient endpoints and are always treated as PII
(an org may store personal notes there), so reading them requires
recipients:read_pii.
Requires recipients:read scope.
Authorizations
Abschnitt betitelt „Authorizations“Parameters
Abschnitt betitelt „Parameters“Query Parameters
Abschnitt betitelt „Query Parameters“Example
aud_xxxxxxxxxxxxThe 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.
Responses
Abschnitt betitelt „Responses“Field list
object
object
Column name as returned in read responses
Field name accepted by the write endpoints (e.g. street for address1); null = read-only
Field type (string, integer, decimal, date, datetime, boolean, …)
Human-readable label
True for org-defined custom fields
Requires recipients:read_pii to read (custom fields are always PII)
Example generated
{ "data": [ { "name": "example", "api_write_name": "example", "type": "example", "label": "example", "is_custom": true, "pii": true, "readable": true, "writable": true } ]}Invalid or missing API token
object
object
Example generated
{ "error": { "code": "example", "message": "example", "status": 1 }}Token lacks required scope
object
object
Example generated
{ "error": { "code": "example", "message": "example", "status": 1 }}Organisation not configured for API access
object
object
Example generated
{ "error": { "code": "example", "message": "example", "status": 1 }}