List Contact Topics
List all topics for the organization along with the contact's effective subscription status for each topic.
GET
/contacts/{contact_id_or_email}/topicsRequires a full_access API key.
Path Parameters
contact_id_or_emailstringrequiredThe contact ID (UUID) or email address.
Query Parameters
limitnumberMaximum number of results to return. Min 1, max 100.
afterstringCursor for forward pagination.
beforestringCursor for backward pagination.
Response Fields
objectstringAlways "list".
has_morebooleanWhether there are more results available.
dataarrayArray of topic subscription objects. Each item contains:
idstringThe topic ID.
namestringThe topic name.
descriptionstring | nullThe topic description.
subscriptionstringThe contact's effective subscription: "opt_in" or "opt_out". Uses the topic's default_subscription if the contact has no explicit preference.
curl -X GET 'https://api.postflare.app/contacts/e169aa45-1ecf-4183-9955-b1499d5701d3/topics' \
-H 'Authorization: Bearer re_xxxxxxxxx'const response = await fetch(
'https://api.postflare.app/contacts/e169aa45-1ecf-4183-9955-b1499d5701d3/topics',
{
headers: {
'Authorization': 'Bearer re_xxxxxxxxx',
},
}
);
const data = await response.json();Response
{
"object": "list",
"has_more": false,
"data": [
{
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"name": "Product Updates",
"description": "Receive the latest product news",
"subscription": "opt_in"
}
]
}