Planning
Read the gaps of the planning
/v1/planning/coverageThe planning of the team over 14 days at most, on one platform: the slots nobody holds (a creator, a day and a named shift), who was planned there and why it does not hold (absent, no access, role without the platform), up to 3 employees free to take each gap, and the absences of the period. Start here to check or build a planning, then confirm every change with the user before writing it.
read:planningcurl 'https://api.fansquare.so/v1/planning/coverage?start_date=2026-10-12&end_date=2026-10-12T21%3A14%3A00.000Z' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste"{
"timezone": "Europe/Paris",
"platform": "string",
"platforms": [
"string"
],
"start_date": "2026-10-12T21:14:00.000Z",
"end_date": "2026-10-12T21:14:00.000Z",
"named_shifts": [
{
"id": "5afc7856-2404-4a6c-a7e5-5042b84bf795",
"name": "Lena",
"start_time": "string",
"end_time": "string"
}
],
"slots_total": 1,
"gaps_total": 1,
"gaps": [
{
"creator_id": "m81IhLxdhzDGYs54rNp2",
"creator_name": "string",
"named_shift_id": "5afc7856-2404-4a6c-a7e5-5042b84bf795",
"named_shift_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",
"planned": [
{
"employee_id": "9926b1f9-74a9-4ab5-a716-1c14f6bcc475",
"employee_name": "string",
"problem": "absent",
"replacement_id": "03cef609-3d3c-42bd-a9e5-04182baf2362",
"replacement_name": "string"
}
],
"available": [
{
"employee_id": "9926b1f9-74a9-4ab5-a716-1c14f6bcc475",
"employee_name": "string",
"planned_hours": 12
}
]
}
],
"absences": [
{
"id": "88bd19bf-d104-4593-abd4-ce4145aba3ca",
"employee_id": "9926b1f9-74a9-4ab5-a716-1c14f6bcc475",
"employee_name": "string",
"date": "2026-10-12",
"kind": "absence",
"declared_by_self": true,
"replacement_id": "03cef609-3d3c-42bd-a9e5-04182baf2362",
"replacement_name": "string",
"shifts": 12,
"uncovered": true
}
]
}Parameters
Headers
Fansquare-VersionstringrequiredAPI version to pin. Accepts the mineral name or the release date of a version.
Query
start_datestringrequiredFirst day (YYYY-MM-DD, agency time zone).
pattern ^\d{4}-\d{2}-\d{2}$end_datestringrequiredLast day, 14 days at most after the first.
pattern ^\d{4}-\d{2}-\d{2}$creator_idsstringOnly these creators (Fansquare ids from GET /v1/creators). Comma-separated, 50 max.
platformstringPlatform to check (default: MYM, or the only platform of the agency).
Valuesmymtelegramfanslysnapchat
Response
OK, application/json
timezonestringrequiredThe agency time zone (IANA): every date and time of this answer is read in it.
platformstringrequiredThe platform read (each platform has its own coverage).
platformsarray of stringsrequiredThe platforms where the agency has accounts.
start_datestringrequiredFirst day read.
end_datestringrequiredLast day read.
named_shiftsarray of objectsrequiredThe named shifts of the agency, in the order of the day.
idstringrequiredNamed shift id (Settings › Planning of the app).
namestringrequiredName of the shift, such as « Matin ».
start_timestringrequiredStart, HH:mm.
end_timestringrequiredEnd, HH:mm; before the start means the next day.
slots_totalintegerrequiredSlots read: creators × days × named shifts (or × days without named shift).
gaps_totalintegerrequiredSlots nobody holds.
gapslists 40 at most: read fewer days or creators to see them all.gapsarray of objectsrequiredThe slots nobody holds, in order of time.
creator_idstringrequiredFansquare creator id.
creator_namestringrequiredName of the creator.
named_shift_idstring | nullrequiredThe named shift of this slot; null when the agency has none (one slot per day).
named_shift_namestring | nullrequiredIts name.
datestringrequiredDay 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-timeplannedarray of objectsrequiredWho was planned on this slot but does not hold it.
employee_idstringrequiredFansquare user id.
employee_namestringrequiredDisplay name.
problemstringrequiredabsent: absent that day (and nobody valid replaces them);no_access: no access to the creator (the planning never gives access);no_platform: their role does not open the platform.Valuesabsentno_accessno_platformreplacement_idstring | nullrequiredThe replacement of an absent employee, who cannot hold the slot either.
replacement_namestring | nullrequiredIts display name.
availablearray of objectsrequiredUp to 3 employees free at that time who could hold it (access to the creator, the platform, not absent, no other shift): people who already work on this creator first, then the least busy. The owner is never listed here.
employee_idstringrequiredFansquare user id.
employee_namestringrequiredDisplay name.
planned_hoursnumberrequiredHours already planned over the period read.
absencesarray of objectsrequiredThe absences of the period.
idstringrequiredAbsence id, for PATCH or DELETE /v1/absences/{absence_id}.
employee_idstringrequiredFansquare user id.
employee_namestringrequiredDisplay name.
datestringrequiredDay of the absence (YYYY-MM-DD).
kindstringrequiredabsenceorday_off.Valuesabsenceday_offdeclared_by_selfbooleanrequiredThe employee declared it themselves.
replacement_idstring | nullrequiredWho takes their shifts that day, if anyone.
replacement_namestring | nullrequiredIts display name.
shiftsintegerrequiredTheir shifts that day.
uncoveredbooleanrequiredShifts stay without anyone: no replacement.
curl 'https://api.fansquare.so/v1/planning/coverage?start_date=2026-10-12&end_date=2026-10-12T21%3A14%3A00.000Z' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste"{
"timezone": "Europe/Paris",
"platform": "string",
"platforms": [
"string"
],
"start_date": "2026-10-12T21:14:00.000Z",
"end_date": "2026-10-12T21:14:00.000Z",
"named_shifts": [
{
"id": "5afc7856-2404-4a6c-a7e5-5042b84bf795",
"name": "Lena",
"start_time": "string",
"end_time": "string"
}
],
"slots_total": 1,
"gaps_total": 1,
"gaps": [
{
"creator_id": "m81IhLxdhzDGYs54rNp2",
"creator_name": "string",
"named_shift_id": "5afc7856-2404-4a6c-a7e5-5042b84bf795",
"named_shift_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",
"planned": [
{
"employee_id": "9926b1f9-74a9-4ab5-a716-1c14f6bcc475",
"employee_name": "string",
"problem": "absent",
"replacement_id": "03cef609-3d3c-42bd-a9e5-04182baf2362",
"replacement_name": "string"
}
],
"available": [
{
"employee_id": "9926b1f9-74a9-4ab5-a716-1c14f6bcc475",
"employee_name": "string",
"planned_hours": 12
}
]
}
],
"absences": [
{
"id": "88bd19bf-d104-4593-abd4-ce4145aba3ca",
"employee_id": "9926b1f9-74a9-4ab5-a716-1c14f6bcc475",
"employee_name": "string",
"date": "2026-10-12",
"kind": "absence",
"declared_by_self": true,
"replacement_id": "03cef609-3d3c-42bd-a9e5-04182baf2362",
"replacement_name": "string",
"shifts": 12,
"uncovered": true
}
]
}