Fans
List the fans of an account
/v1/accounts/{account_id}/fansLists the fans this account has a conversation with, most recent first. Each item includes the current assignment, AI-lock state and tags. All filters are optional and combine with AND; values inside one list combine with OR. Spend and purchase filters count à-la-carte purchases only (tips, private media, pushes; subscriptions excluded, refunds excluded).
read:fanscurl 'https://api.fansquare.so/v1/accounts/c851d9d6-b90b-4958-aed2-2fdaa2fe21a3/fans' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste"{
"data": [
{
"fan_id": "a6df8022-e509-4575-ad28-e29c2d1d42dc",
"fan_username": "alex_92",
"assigned_user_id": "ki9DZXxpgGz7KiDqHj88eCxHg56W",
"ai_active": true,
"tags": [
{
"id": "58368a92-838b-4cb0-ab37-d54ce826ea11",
"name": "VIP"
}
]
}
],
"next_cursor": "KI7cfD0OLcWfeXZb1FTusJpz0nfKiYXPwHCZe-VXBaeQSX1w5BvO5UH-ua-dzNpXOTixzw"
}Parameters
Headers
Fansquare-VersionstringrequiredAPI version to pin. Accepts the mineral name or the release date of a version.
Path
account_idstringrequiredMYM account id (
account.external_idin GET /v1/creators).min length 1
Query
assigned_user_idsstringRestrict to relations assigned to these employees (Fansquare user ids from GET /v1/employees). Comma-separated, 50 max.
tag_idsstringRestrict to fans carrying at least one of these tags (Fansquare tag ids from GET /v1/tags). An id that is not a tag of the agency returns 422 unknown_tag. Comma-separated, 50 max.
exclude_tag_idsstringExclude fans carrying any of these tags (Fansquare tag ids from GET /v1/tags). Fans without tags are kept. An id listed in both tag_ids and exclude_tag_ids returns 400. Comma-separated, 50 max.
has_tagsstringtrue: only fans with at least one tag. false: only fans without any tag (cannot be combined with tag_ids).
ValuestruefalsestatusesstringRestrict to these subscription statuses. Values:
active_subscriber,former_subscriber,interested. Comma-separated, 50 max.min_spend_centsintegerOnly fans whose total à-la-carte spend on this account is at least this amount, in euro cents (5000 = 50 €).
min 1last_purchase_afterstringOnly fans whose last à-la-carte purchase is at or after this date (ISO 8601).
format date-timelast_purchase_beforestringOnly fans whose last à-la-carte purchase is before this date (ISO 8601). Fans who never purchased are not included.
format date-timeis_onlinestringtrue: only fans currently online on MYM. false: only fans currently offline.
ValuestruefalsecursorstringOpaque cursor from the previous page (
next_cursor).limitintegerPage size (1-200).
Default50min 1max 200
Response
OK, application/json
dataarray of objectsrequiredfan_idstringrequiredMYM fan id.
fan_usernamestring | nullrequiredMYM username of the fan, when available.
assigned_user_idstring | nullrequiredFansquare id of the assigned employee, or null. Resolve names with GET /v1/employees.
ai_activebooleanrequiredtrue while an AI currently holds the lock on this fan.
tagsarray of objectsrequiredTags set on this fan in Fansquare. Empty when the fan has no tag. Full catalog with colors: GET /v1/tags.
idstringrequiredFansquare tag id, from GET /v1/tags.
namestringrequiredTag label, as shown on the fan card in Fansquare.
next_cursorstring | nullrequired
curl 'https://api.fansquare.so/v1/accounts/c851d9d6-b90b-4958-aed2-2fdaa2fe21a3/fans' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste"{
"data": [
{
"fan_id": "a6df8022-e509-4575-ad28-e29c2d1d42dc",
"fan_username": "alex_92",
"assigned_user_id": "ki9DZXxpgGz7KiDqHj88eCxHg56W",
"ai_active": true,
"tags": [
{
"id": "58368a92-838b-4cb0-ab37-d54ce826ea11",
"name": "VIP"
}
]
}
],
"next_cursor": "KI7cfD0OLcWfeXZb1FTusJpz0nfKiYXPwHCZe-VXBaeQSX1w5BvO5UH-ua-dzNpXOTixzw"
}