FansquareAPI reference
Open the app

Planning

Find who can take a shift

GET/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).

Required scoperead:planning
Rate limit20 requests per minute
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
    }
  ]
}

Parameters

Headers

  • Fansquare-Versionstringrequired

    API version to pin. Accepts the mineral name or the release date of a version.

Path

  • creator_idstringrequired

    Fansquare creator id.

    min length 1max length 64

Query

  • datestringrequired

    Day of the shift.

    pattern ^\d{4}-\d{2}-\d{2}$
  • named_shift_idstring

    A named shift (GET /v1/named-shifts).

    format uuid
  • start_timestring

    Start, HH:mm (agency time zone).

    pattern ^([01]\d|2[0-3]):[0-5]\d$
  • end_timestring

    End, HH:mm (agency time zone).

    pattern ^([01]\d|2[0-3]):[0-5]\d$
  • platformstring

    Platform to check (default: the creator’s).

    Valuesmymtelegramfanslysnapchat

Response

OK, application/json

  • timezonestringrequired

    The agency time zone (IANA): every date and time of this answer is read in it.

  • platformstringrequired

    The platform checked.

  • slotobjectrequired

    The slot asked about.

    • creator_idstringrequired
    • creator_namestringrequired
    • datestringrequired

      Day the shift starts (YYYY-MM-DD).

    • start_timestringrequired

      Start, HH:mm.

    • end_timestringrequired

      End, HH:mm (the next day when end_date is set).

    • end_datestring | nullrequired

      Day the shift ends when it ends after midnight, else null.

    • starts_atstringrequired

      Start (ISO 8601).

      format date-time
    • ends_atstringrequired

      End (ISO 8601).

      format date-time
  • week_startstringrequired

    Monday of the week of the slot.

  • week_endstringrequired

    Sunday of that week.

  • dataarray of objectsrequired

    Every employee: available ones first, those who know the creator first, the owner last, then the least busy.

    • employee_idstringrequired

      Fansquare user id.

    • employee_namestringrequired

      Display name.

    • role_namestring | nullrequired

      Name of their agency role.

    • is_ownerbooleanrequired

      The owner of the agency.

    • works_on_creatorbooleanrequired

      Already works on this creator (a shift of the week or their work profile).

    • availablebooleanrequired

      Free for this slot.

    • reasonsarray of stringsrequired

      Why not: absent that day, busy with another shift at that time (see busy_with), no_access to the creator, no_platform (their role does not open it), not_on_platform (not one of their work platforms).

      Valuesabsentbusyno_accessno_platformnot_on_platform
    • busy_witharray of objectsrequired

      Their shifts at that time (2 at most).

      • creator_namestringrequired
      • datestringrequired

        Day the shift starts (YYYY-MM-DD).

      • start_timestringrequired

        Start, HH:mm.

      • end_timestringrequired

        End, HH:mm (the next day when end_date is set).

      • end_datestring | nullrequired

        Day the shift ends when it ends after midnight, else null.

      • starts_atstringrequired

        Start (ISO 8601).

        format date-time
      • ends_atstringrequired

        End (ISO 8601).

        format date-time
    • week_hoursnumberrequired

      Hours 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
    }
  ]
}