Planning
Find who can take a shift
/v1/planning/candidates/{creator_id}Every employee for one shift of a creator: available or not and why (absent, already busy at that time, no access, platform), whether they already work on the creator, and their hours that week. Give named_shift_id, or start_time and end_time (HH:mm in the agency time zone; an end before the start ends the next day).
read:planningcurl 'https://api.fansquare.so/v1/planning/candidates/m81IhLxdhzDGYs54rNp2?date=string' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste"{
"timezone": "Europe/Paris",
"platform": "string",
"slot": {
"creator_id": "m81IhLxdhzDGYs54rNp2",
"creator_name": "string",
"date": "2026-10-12",
"start_time": "string",
"end_time": "string",
"end_date": "2026-10-12T21:14:00.000Z",
"starts_at": "2026-10-12T21:14:00.000Z",
"ends_at": "2026-10-12T21:14:00.000Z"
},
"week_start": "string",
"week_end": "string",
"data": [
{
"employee_id": "9926b1f9-74a9-4ab5-a716-1c14f6bcc475",
"employee_name": "string",
"role_name": "string",
"is_owner": true,
"works_on_creator": true,
"available": true,
"reasons": [
"absent"
],
"busy_with": [
{
"creator_name": "string",
"date": "2026-10-12",
"start_time": "string",
"end_time": "string",
"end_date": "2026-10-12T21:14:00.000Z",
"starts_at": "2026-10-12T21:14:00.000Z",
"ends_at": "2026-10-12T21:14:00.000Z"
}
],
"week_hours": 12
}
]
}Parameters
Headers
Fansquare-VersionstringrequiredAPI version to pin. Accepts the mineral name or the release date of a version.
Path
creator_idstringrequiredFansquare creator id.
min length 1max length 64
Query
datestringrequiredDay of the shift.
pattern ^\d{4}-\d{2}-\d{2}$named_shift_idstringA named shift (GET /v1/named-shifts).
format uuidstart_timestringStart, HH:mm (agency time zone).
pattern ^([01]\d|2[0-3]):[0-5]\d$end_timestringEnd, HH:mm (agency time zone).
pattern ^([01]\d|2[0-3]):[0-5]\d$platformstringPlatform to check (default: the creator’s).
Valuesmymtelegramfanslysnapchat
Response
OK, application/json
timezonestringrequiredThe agency time zone (IANA): every date and time of this answer is read in it.
platformstringrequiredThe platform checked.
slotobjectrequiredThe slot asked about.
creator_idstringrequiredcreator_namestringrequireddatestringrequiredDay the shift starts (YYYY-MM-DD).
start_timestringrequiredStart, HH:mm.
end_timestringrequiredEnd, HH:mm (the next day when
end_dateis set).end_datestring | nullrequiredDay the shift ends when it ends after midnight, else null.
starts_atstringrequiredStart (ISO 8601).
format date-timeends_atstringrequiredEnd (ISO 8601).
format date-time
week_startstringrequiredMonday of the week of the slot.
week_endstringrequiredSunday of that week.
dataarray of objectsrequiredEvery employee: available ones first, those who know the creator first, the owner last, then the least busy.
employee_idstringrequiredFansquare user id.
employee_namestringrequiredDisplay name.
role_namestring | nullrequiredName of their agency role.
is_ownerbooleanrequiredThe owner of the agency.
works_on_creatorbooleanrequiredAlready works on this creator (a shift of the week or their work profile).
availablebooleanrequiredFree for this slot.
reasonsarray of stringsrequiredWhy not:
absentthat day,busywith another shift at that time (seebusy_with),no_accessto the creator,no_platform(their role does not open it),not_on_platform(not one of their work platforms).Valuesabsentbusyno_accessno_platformnot_on_platformbusy_witharray of objectsrequiredTheir shifts at that time (2 at most).
creator_namestringrequireddatestringrequiredDay the shift starts (YYYY-MM-DD).
start_timestringrequiredStart, HH:mm.
end_timestringrequiredEnd, HH:mm (the next day when
end_dateis set).end_datestring | nullrequiredDay the shift ends when it ends after midnight, else null.
starts_atstringrequiredStart (ISO 8601).
format date-timeends_atstringrequiredEnd (ISO 8601).
format date-time
week_hoursnumberrequiredHours planned that week.
curl 'https://api.fansquare.so/v1/planning/candidates/m81IhLxdhzDGYs54rNp2?date=string' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste"{
"timezone": "Europe/Paris",
"platform": "string",
"slot": {
"creator_id": "m81IhLxdhzDGYs54rNp2",
"creator_name": "string",
"date": "2026-10-12",
"start_time": "string",
"end_time": "string",
"end_date": "2026-10-12T21:14:00.000Z",
"starts_at": "2026-10-12T21:14:00.000Z",
"ends_at": "2026-10-12T21:14:00.000Z"
},
"week_start": "string",
"week_end": "string",
"data": [
{
"employee_id": "9926b1f9-74a9-4ab5-a716-1c14f6bcc475",
"employee_name": "string",
"role_name": "string",
"is_owner": true,
"works_on_creator": true,
"available": true,
"reasons": [
"absent"
],
"busy_with": [
{
"creator_name": "string",
"date": "2026-10-12",
"start_time": "string",
"end_time": "string",
"end_date": "2026-10-12T21:14:00.000Z",
"starts_at": "2026-10-12T21:14:00.000Z",
"ends_at": "2026-10-12T21:14:00.000Z"
}
],
"week_hours": 12
}
]
}