FansquareAPI reference
Open the app

Rotations

List rotations

GET/v1/rotations

Lists the post and story rotations of the agency, most recent first: each with its pool of media, its rhythm, and where the hashtags of its posts come from. Filterable by creator.

Required scoperead:publications
Rate limit30 requests per minute
curl 'https://api.fansquare.so/v1/rotations' \
  -H "Authorization: Bearer $API_KEY" \
  -H "Fansquare-Version: Amethyste"
{
  "data": [
    {
      "id": "40a6e358-bd2a-4cff-a59e-5709874d3f5b",
      "creator_id": "m81IhLxdhzDGYs54rNp2",
      "name": "Lena",
      "type": "post",
      "status": "active",
      "paused_reason": "string",
      "per_day": 1,
      "window_start": "string",
      "window_end": "string",
      "week_days": [
        "MO"
      ],
      "timezone": "Europe/Paris",
      "presence_seconds": 300,
      "post_auto_action": "delete",
      "then_delete_seconds": 300,
      "order": "random",
      "audiences": [
        "subscribers"
      ],
      "is_public": true,
      "playlists": [
        "dc858a1c-bfca-4ab8-a445-cc2d76e1b784"
      ],
      "caption_mode": "fixed",
      "caption": "New set tonight",
      "hashtag_mode": "none",
      "hashtags": [
        "string"
      ],
      "hashtag_set_id": "6cde5083-2767-4f94-a83d-766741432b2f",
      "stop_when_all_published": true,
      "items": [
        {
          "media_uuid": "b12eacb2-afea-4959-a0d0-b685e6b49279",
          "caption": "New set tonight",
          "hashtags": [
            "string"
          ]
        }
      ],
      "created_at": "2026-10-12T21:14:00.000Z"
    }
  ],
  "next_cursor": "KI7cfD0OLcWfeXZb1FTusJpz0nfKiYXPwHCZe-VXBaeQSX1w5BvO5UH-ua-dzNpXOTixzw"
}

Parameters

Headers

  • Fansquare-Versionstringrequired

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

Query

  • creator_idsstring

    Restrict to these creators (Fansquare ids from GET /v1/creators). Comma-separated, 50 max.

  • cursorstring

    Opaque cursor from the previous page (next_cursor).

  • limitinteger

    Page size (1-100).

    Default 50min 1max 100

Response

OK, application/json

  • dataarray of objectsrequired
    • idstringrequired

      Fansquare rotation id. Path parameter of the /v1/rotations/{rotation_id} routes.

    • creator_idstringrequired

      Fansquare creator id (see GET /v1/creators).

    • namestringrequired
    • typestringrequired

      A rotation of feed posts or of stories.

      Valuespoststory
    • statusstringrequired

      active publishes; paused publishes nothing (see paused_reason); completed published every media of its pool and stopped.

      Valuesactivepausedcompleted
    • paused_reasonstring | nullrequired

      Why it stopped by itself: empty_pool, consecutive_failures (3 sends failed in a row), no_media_available (every media is already on the account). null when paused by hand or active.

    • per_dayintegerrequired

      Posts a day.

    • window_startstringrequired

      Start of the daily window, HH:mm in timezone.

    • window_endstringrequired

      End of the daily window, HH:mm in timezone (24:00 = end of day).

    • week_daysarray of stringsrequired

      Days it publishes on. Empty: every day.

      ValuesMOTUWETHFRSASU
    • timezonestringrequired

      IANA time zone of the window and the days.

    • presence_secondsinteger | nullrequired

      How long each post stays public (or each story online), in seconds, before post_auto_action.

    • post_auto_actionstringrequired

      What happens to a post after presence_seconds.

      Valuesdeletepass_private
    • then_delete_secondsinteger | nullrequired

      Final deletion after the post was made private, in seconds since publishing. null: it stays private.

    • orderstringrequired

      Order the media go out in.

      Valuesrandomsequential
    • audiencesarray of stringsrequired

      Story audiences. Empty for posts.

      Valuessubscribersinterestedex_subscriberseveryone
    • is_publicboolean | nullrequired

      Post visibility. null for stories.

    • playlistsarray of stringsrequired

      MYM playlist uuids each post is added to.

    • caption_modestringrequired

      fixed: caption on every post; per_item: the caption of each media.

      Valuesfixedper_item
    • captionstring | nullrequired

      Caption of every post when caption_mode is fixed.

    • hashtag_modestringrequired

      Where the hashtags of each post come from: none, hashtags on every post, the hashtags of each media, or 5 drawn from the hashtag set hashtag_set_id (a different 5 from one post to the next).

      Valuesnonefixedper_itemset
    • hashtagsarray of stringsrequired

      Hashtags of every post when hashtag_mode is fixed.

    • hashtag_set_idstring | nullrequired

      Hashtag set drawn from when hashtag_mode is set (see GET /v1/hashtag-sets).

    • stop_when_all_publishedbooleanrequired

      true: the rotation stops when every media of the pool is already on the account, instead of posting one twice.

    • itemsarray of objectsrequired

      The pool, in order.

      • media_uuidstringrequired

        MYM media uuid of the creator.

      • captionstring | nullrequired

        Caption of this media, used when caption_mode is per_item.

      • hashtagsarray of stringsrequired

        Hashtags of this media, used when hashtag_mode is per_item.

    • created_atstringrequired
      format date-time
  • next_cursorstring | nullrequired
curl 'https://api.fansquare.so/v1/rotations' \
  -H "Authorization: Bearer $API_KEY" \
  -H "Fansquare-Version: Amethyste"
{
  "data": [
    {
      "id": "40a6e358-bd2a-4cff-a59e-5709874d3f5b",
      "creator_id": "m81IhLxdhzDGYs54rNp2",
      "name": "Lena",
      "type": "post",
      "status": "active",
      "paused_reason": "string",
      "per_day": 1,
      "window_start": "string",
      "window_end": "string",
      "week_days": [
        "MO"
      ],
      "timezone": "Europe/Paris",
      "presence_seconds": 300,
      "post_auto_action": "delete",
      "then_delete_seconds": 300,
      "order": "random",
      "audiences": [
        "subscribers"
      ],
      "is_public": true,
      "playlists": [
        "dc858a1c-bfca-4ab8-a445-cc2d76e1b784"
      ],
      "caption_mode": "fixed",
      "caption": "New set tonight",
      "hashtag_mode": "none",
      "hashtags": [
        "string"
      ],
      "hashtag_set_id": "6cde5083-2767-4f94-a83d-766741432b2f",
      "stop_when_all_published": true,
      "items": [
        {
          "media_uuid": "b12eacb2-afea-4959-a0d0-b685e6b49279",
          "caption": "New set tonight",
          "hashtags": [
            "string"
          ]
        }
      ],
      "created_at": "2026-10-12T21:14:00.000Z"
    }
  ],
  "next_cursor": "KI7cfD0OLcWfeXZb1FTusJpz0nfKiYXPwHCZe-VXBaeQSX1w5BvO5UH-ua-dzNpXOTixzw"
}