Creators
List the creators of the agency
/v1/creatorsLists the creators of the agency visible to the API key. The account object describes the MYM account of the creator; its external_id is the account_id used by the /v1/accounts routes. It is null while the creator has no MYM account.
read:creatorscurl 'https://api.fansquare.so/v1/creators' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste"{
"data": [
{
"id": "m81IhLxdhzDGYs54rNp2",
"name": "Lena",
"account": {
"status": "active",
"username": "lena.official",
"external_id": "c851d9d6-b90b-4958-aed2-2fdaa2fe21a3"
}
}
]
}Parameters
Headers
Fansquare-VersionstringrequiredAPI version to pin. Accepts the mineral name or the release date of a version.
Response
OK, application/json
dataarray of objectsrequiredidstringrequiredFansquare creator id.
namestringrequiredDisplay name in the Fansquare CRM.
accountobject | nullrequiredThe MYM account of the creator, or null while she has none.
statusstringrequiredConnection state of the MYM account:
activewhen Fansquare reads it,pendingwhile it is being connected,invalidorrevokedwhen its access no longer works,pausedwhile the agency has paused it (until it is resumed, Fansquare makes no call to MYM with this account except reading its sales once a night).Valuesactivependinginvalidrevokedpausedusernamestring | nullrequiredMYM username of the creator, when known.
external_idstring | nullrequiredMYM account id. Used as account_id on the /v1/accounts routes.
curl 'https://api.fansquare.so/v1/creators' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste"{
"data": [
{
"id": "m81IhLxdhzDGYs54rNp2",
"name": "Lena",
"account": {
"status": "active",
"username": "lena.official",
"external_id": "c851d9d6-b90b-4958-aed2-2fdaa2fe21a3"
}
}
]
}