FansquareAPI reference
Open the app

Resources

Changelog

Every change to the Fansquare API, newest first, including additive changes that need no new version.

Fansquare API versions are named after minerals, in alphabetical order. The Fansquare-Version header accepts the alias without accents (Amethyste) or the ISO date. A version remains supported for at least 18 months after the release of the next one.

Backward-compatible additions (no new mineral)

Additive changes: available on every version, they do not create a new mineral (older clients ignore what they do not know).

2026-11-23: Team planning

  • Coverage: GET /v1/planning/coverage (14 days at most, one platform): the slots nobody holds, who was planned there and why it does not hold (absent, no_access, no_platform), up to 3 available employees per gap, and the absences.

  • Who can take a shift: GET /v1/planning/candidates/{creator_id}, every employee available or not, with the reasons.

  • The team and its work profiles: GET /v1/planning/team, GET /v1/planning/team/{employee_id}, PUT /v1/planning/team/{employee_id}/work-profile (the weekly hours that make the recurring shifts, from today).

  • Shifts: GET /v1/shifts (one item per shift on a day, 31 days at most, paginated), POST /v1/shifts, PATCH /v1/shifts/{shift_id} (the series), POST /v1/shifts/{shift_id}/override (one day), DELETE /v1/shifts/{shift_id} (scope: day, following or series). Times are wall-clock times of the agency time zone (timezone in each answer).

  • Absences: GET, POST /v1/absences, PATCH and DELETE /v1/absences/{absence_id}. Every key reads them; only a key for all creators writes them (a replacement takes the shifts of every creator). Their reason is written, never read back. Named shifts: GET /v1/named-shifts.

  • The planning changes from today on: a past day is never written, changed or removed.

  • New scopes read:planning and write:planning (in read:*, write:* and full access). New errors unknown_shift, unknown_absence, unknown_employee, unknown_named_shift, shift_day_not_found (422), absence_already_declared (409), shift_series_started (409: a series that started only changes its end; end it from a day, then create the new shift), planning_day_in_past (409) and absence_needs_all_creators (403).

  • MCP: the same 15 tools (get_planning_coverage, list_planning_candidates, list_shifts, create_shift, replace_shift_day, replace_work_profile…), and instructions to read the coverage, ask who to put on a gap and confirm every change.

2026-11-21: Private, then deleted

  • Publications carry then_delete_seconds: a final deletion after pass_private, in seconds since publishing. The post goes public, then private, then it is deleted. null without one.

  • POST /v1/publications and PATCH /v1/publications/{publication_id} accept then_delete_seconds on a public post with auto_action = pass_private, greater than auto_action_seconds (validation_failed otherwise). On PATCH, null removes it, and it is dropped when the publication no longer passes private before it.

  • MCP: list_publications and get_publication return the same field.

2026-11-14: Message content in sent messages

  • GET /v1/sent-messages items carry content: the text of the message, the caption for a media, null when the MYM message is not available yet or has no text.

  • MCP: list_sent_messages returns the same field.

2026-11-06: Scripts and script sequences

  • Script collections: GET /v1/script-collections and /v1/script-collections/{collection_id}, POST /v1/script-collections, PATCH and DELETE /v1/script-collections/{collection_id} (deleting a collection deletes its scripts).

  • Scripts: GET /v1/scripts (filter by creator_ids or collection_ids) and /v1/scripts/{script_id}, POST /v1/scripts, PATCH and DELETE /v1/scripts/{script_id}. A script carries 1 to 5 messages, each with its content, price_cents, media_ids (MYM media uuids of the creator's vault) and is_voice.

  • Script sequences: GET /v1/script-sequences and /v1/script-sequences/{sequence_id} (the whole tree), POST /v1/script-sequences (a whole tree in one call), POST /v1/script-sequences/from-collection, PUT /v1/script-sequences/{sequence_id} (replace the tree, ids kept with their fans), POST /v1/script-sequences/{sequence_id}/publish and DELETE. Options carry a condition (any, no_reply, bought, not_bought, other). A sequence written by the API is published.

  • New scopes read:scripts and write:scripts. New errors unknown_script_collection, unknown_script, unknown_script_sequence, script_sequence_invalid (422, every refused field of the tree in errors) and script_media_unresolved (409, the messages of a script whose stored media the API cannot serve are edited in the app).

  • MCP: the seventeen endpoints are tools, so an assistant can turn the scripts of an agency into sequences.

  • Keys and connections that hold read:*, write:* or full access get the new scopes, as with every scope.

2026-11-05: Update notes in bulk

  • PATCH /v1/accounts/{account_id}/insights sets the insight note of up to 50 fans of an account in one call. Each item carries the etag of a prior read of its note, as on the single-fan PATCH. Items are independent: the response lists each one in the order sent with its status (updated with the new etag, precondition_failed with the current_etag, unknown_fan, or unavailable: retry that item later with the same etag, and read the note again if the retry reports precondition_failed), and a refused item never cancels the others. Scope write:insights, 5 calls a minute, request body up to 1 MB. Also available to AI agents as the update_insights tool.

2026-11-04: Leave out new subscribers

  • filters.exclude.subscribed_within_days on Mass DMs, automations and estimates: leave out the fans who subscribed to the account in the last N days (1 to 365), a first subscription or a return after a break, never a renewal. On a Mass DM it is checked again right before the first message is sent. Refused with 400 validation_failed on the new_subscriber and resubscription triggers. A Mass DM or an automation set up in the app with this exclusion now reads back with it.

2026-11-03: Paused creators

  • account.status of a creator can be paused: the agency has paused the connection (the creator wants to look offline on MYM). Fansquare makes no call to MYM with this account until the agency resumes it: no sync, no send, and the Mass DMs and posts planned during the pause do not go out. Sales are still read once per night.

2026-11-02: Several tags per fan

Behavior change on every version (not an addition). A fan now carries up to 5 tags, as in the app, where it carried one.

  • tags on a fan (GET /v1/accounts/{account_id}/fans and the fan itself) can hold up to 5 tags. Read the whole list: the first one is no longer the only one.

  • PUT /v1/accounts/{account_id}/fans/{fan_id}/tags/{tag_id} adds the tag and keeps the fan's other tags, where it used to replace them. To move a fan from one tag to another, remove the old one with DELETE. A sixth tag is refused with the new error 422 tag_limit_reached.

  • POST /v1/accounts/{account_id}/tags/{tag_id}/apply adds the tag the same way. Fans that already carry 5 tags are left untouched and listed in the new tag_limit_fan_ids field.

2026-11-01: Mass DMs and automations

  • Mass DMs: GET /v1/mass-dms and /v1/mass-dms/{mass_dm_id} (messages, filters, outcome of the send), POST /v1/mass-dms/estimate (audience of a set of filters, nothing created), POST /v1/mass-dms (send now or at scheduled_at) and POST /v1/mass-dms/{mass_dm_id}/cancel. New scopes read:mass_dms and write:mass_dms.

  • Automations: GET /v1/automations and /v1/automations/{automation_id} (trigger, messages, filters, lifetime totals), POST /v1/automations, POST /v1/automations/{automation_id}/pause and /resume. New scopes read:automations and write:automations.

  • Audience filters shared by both, in the vocabulary of the fan list: status, tags, spend, tips, seniority, online, paid spend and payments over 7, 30 and 90 days, SpenderIQ tiers, last media purchase, and the exclusions (recently messaged, live conversation, unread, media already unlocked or received).

  • Safety limits: at most 5 Mass DMs of a creator leaving within 15 minutes of each other (409 mass_dm_burst_limit), and at most 10 leaving within 24 hours, per creator, counted on send dates (409 mass_dm_daily_limit). An automation never takes the trigger of an active one (409 automation_trigger_taken).

  • New errors unknown_mass_dm, unknown_automation, unknown_media, mass_dm_burst_limit, mass_dm_daily_limit, mass_dm_already_sent, automation_trigger_taken, automation_not_resumable, automation_not_pausable.

  • MCP: the ten endpoints are tools. The server asks the assistant to confirm every send with the user.

2026-10-27: Richer fans, fan tags, order status, employee performance, new webhook events

  • GET /v1/accounts/{account_id}/fans and /fans/{fan_id} return nickname, language (ISO 639-1), subscription (status, is_free, started_at, expires_at, null for a free subscription), spend (total_cents gross, purchase_count, last_purchase_at, currency), is_online and last_seen_at. The list accepts search (username or nickname, within the account).

  • Fan tags can be written (new scope write:tags): PUT/DELETE /v1/accounts/{account_id}/fans/{fan_id}/tags/{tag_id}, POST /v1/accounts/{account_id}/tags/{tag_id}/apply and /remove (up to 500 fans), POST /v1/tags and DELETE /v1/tags/{tag_id}. A fan carries one tag at a time, as in the app: setting a tag replaces the previous one.

  • Orders carry status (pending, approved, failed, refunded), also in the order.* webhook payloads, and GET /v1/orders accepts statuses.

  • GET /v1/employees returns role_name, the name of the role the member holds in the agency.

  • GET /v1/analytics/employees/performance: messages, private media sent and purchased, fans contacted, conversion and revenue per message, per employee (31-day window).

  • Webhook events subscription.created, subscription.ended and fan.interested.

  • Validation errors carry a readable detail.

  • Agency-wide rate limit: every key and connected assistant of an agency together get 5 times the per-key limit of each endpoint.

  • Changed: the fan writes act on fans Fansquare already knows for the account. PUT …/assignment and PUT …/ai-lock answer 404 unknown_fan for any other fan id, and POST …/ai-locks/acquire locks the known fans only, listing the others in the new unknown_fan_ids field (acquired counts the fans locked).

  • Fixed: an hourly timeseries now has both hours of a DST change; by_type counts affiliate orders under affiliation only (affiliate stays, always 0, deprecated); by_creator no longer lists creators at 0.

2026-10-24: Leave disconnected creators out of the analytics, on request

/v1/analytics/revenue, /v1/analytics/revenue/timeseries, /v1/analytics/creators and /v1/analytics/employees accept exclude_disconnected_creators=true: the creators whose MYM account is not connected (disconnected, or an expired key) are then left out of the totals. Omitted or false, they count, as before. The response never depends on a setting changed in the app: the same request always covers the same creators.

2026-10-23: Deleted creators

Restriction (not an addition). When the agency deletes a creator, /v1/orders, /v1/sent-messages and /v1/publications no longer return her data: her orders and publications answer 404, like an unknown id, and naming her in creator_ids returns nothing. The response shapes do not change.

2026-10-22: Analytics follow the app's statistics

Restriction (not an addition). When the agency deletes a creator, /v1/analytics/revenue, /v1/analytics/revenue/timeseries, /v1/analytics/creators and /v1/analytics/employees no longer count her. The response shapes do not change.

2026-10-20: MCP server

AI assistants connect to the API through the Model Context Protocol at /mcp (Streamable HTTP). Every endpoint becomes a tool the assistant can call, within the scopes and creators of its access. Connect with an API key in a header (Claude Code, Cursor), or by signing in to Fansquare from the connector settings of claude.ai, ChatGPT or Claude Desktop (OAuth). See the MCP guide.

2026-10-13: Fixes

  • Webhook endpoints follow the creator scope of the key. A key restricted to some creators only sees, and only acts on, the endpoints that cover nothing but its own creators: an endpoint of the whole agency or one that lists another creator reads as 404 unknown_webhook_endpoint. On create and update, an empty allowed_creator_ids means the creators of the key, and a creator outside its scope returns 404 unknown_creator. Keys over the whole agency are unchanged.

  • Malformed request bodies return a 4xx, not a 500. Malformed JSON returns 400 validation_failed, a body over 256 KB 413 payload_too_large, a body that is not JSON 415 unsupported_media_type. An empty body sent with Content-Type: application/json is accepted on endpoints that take no body (DELETE, ping, rotate, replay).

  • Schema errors list a path on every item of errors.

  • Analytics windows west of UTC. A day in start / end is read in timezone, as documented: with timezone=America/New_York, 2026-07-01 used to start on June 30 local time. A day that does not exist (2026-02-30) is now refused with 400 validation_failed instead of rolling over to March 2.

  • Expired keys are refused from their exact expires_at.

2026-10-13: Fansquare names

Offmy is now Fansquare. The API takes the new name everywhere it shows, and keeps accepting and sending the former names: an integration built before the rename keeps working unchanged.

  • Host: https://api.fansquare.so. https://developers.offmy.co serves the same API.

  • Version header: Fansquare-Version. Offmy-Version stays accepted; when both are sent, Fansquare-Version wins.

  • API keys: new keys start with fsq_live_. Keys starting with offmy_live_ stay valid.

  • Webhook deliveries carry Fansquare-Signature, Fansquare-Signature-Timestamp, Fansquare-Event-Type, Fansquare-Event-Id and Fansquare-Delivery-Id, and still carry the same values under their Offmy- names (Offmy-Signature and Fansquare-Signature hold the same signature).

  • Webhook signing secrets: new secrets start with fsq_whsec_. Existing offmy_whsec_ secrets keep signing.

  • documentation_url in version errors points to https://fansquare.so/api/versioning.

  • Unchanged until a future version: the type URI of errors (https://developers.offmy.co/errors/<slug>) and the User-Agent of webhook deliveries (Offmy-Webhooks/1.0).

2026-10-08: Fan tags and audience filters

The tags set on the fan card in Offmy ("VIP", "timewaster"…) are now exposed, and the fan list gains the filters of the CRM Audience. No new scope: read:fans is enough.

  • GET /v1/accounts/{account_id}/fans and GET …/fans/{fan_id}: new field tags, a list of { id, name } (empty when the fan has no tag).

  • GET /v1/tags: catalog of the agency's tags (id, name, color), in CRM order. Tags are agency-level: the creator scope of the key does not apply.

  • New optional filters on GET /v1/accounts/{account_id}/fans, combined with AND (OR within a list):

    • tag_ids: carries at least one of these tags;

    • exclude_tag_ids: carries none of these tags (fans without tags included);

    • has_tags (true/false): has at least one tag / has none;

    • statuses: active_subscriber, former_subscriber, interested;

    • min_spend_cents: total à la carte spend on this account, in euro cents (5000 = 50 €);

    • last_purchase_after / last_purchase_before: date of the last à la carte purchase (fans who never purchased do not match last_purchase_before);

    • is_online (true/false): current MYM presence.

  • "À la carte" = tips, private media, pushes. Subscriptions and refunded purchases are excluded.

  • Tag filters are checked: tag_ids with has_tags=false, or the same id in both tag_ids and exclude_tag_ids, return 400 validation_failed (the request could never return anything). An id that is not a tag of the agency returns 422 unknown_tag, with the offending ids in tag_ids.

2026-09-01: Sent messages (GET /v1/sent-messages)

New flat resource (agency resources, Offmy ids) and new scope read:messages: the send activity log of the employees, without the message content.

  • GET /v1/sent-messages (?user_ids, creator_ids, sources, start, end, cursor, limit): items id, sent_at, source (messaging/script; Offmy mass sends and native MYM pushes are not listed), sent_by_user_id (id from GET /v1/employees, null = unattributed send), creator_id, fan_id (MYM id), fan_username, is_private_media, price_eur (cents), sale_status (free/pending/purchased/refused), message_id (MYM id of the message, null when not available yet) and media (MYM ids of the attached media, with their type).

  • The message content is never included: message_id and media are the pointers to fetch it directly from MYM with your own access.

  • Sorted from the most recent to the oldest, cursor pagination, rate limit 20/min.

  • Updated about every 15 minutes, history of about 24 months per connected account.

2026-07-22: Insight note concurrency token readable in the body

The concurrency token (formerly "ETag") only lived in the ETag header of the response. A header is invisible in most no-code tools. It is now emitted and accepted on both carriers, with the same value and the same semantics:

  • GET .../insight → { note, etag } in addition to the ETag header. In the body the token is bare, without quotes (the quotes are HTTP syntax).

  • PATCH .../insight accepts the token in the etag body field or in the If-Match header. Both are lenient (quoted, bare, W/ prefix). 400 validation_failed if both are sent and differ, 428 if neither is, 412 unchanged.

  • The PATCH response also returns { note, etag } + the ETag header.

Additive: integrations that already send If-Match do not change by a single byte. The OpenAPI document now describes the ETag header and the If-Match parameter.

2026-07-22: Every set filter is now plural

Restriction (not an addition). Rule that now applies across the whole API: a query parameter that selects a subset is plural and takes a CSV list, even for a single value (?creator_ids=abc, ?order_types=tip). This applies to identifiers and to enumerations alike. There is no singular twin anymore.

EndpointBeforeAfter
GET /v1/analytics/* (all 4)creator_id + creator_idscreator_ids
GET /v1/analytics/revenue/timeseriesuser_iduser_ids
GET /v1/orderscreator_idcreator_ids
GET /v1/ordersfan_idfan_ids
GET /v1/ordersorder_typeorder_types
GET /v1/accounts/{id}/fansassigned_user_idassigned_user_ids

Left untouched, on purpose: URL segments (/v1/creators/{creator_id}) identify a single resource, write bodies (PUT …/assignment { user_id }) write a single value, and response fields keep their natural cardinality (creator_id in an order item designates a creator, it is not a filter).

Why normalize rather than keep both forms: creator_ids is a strict superset of creator_id, so the singular brought nothing but a second spelling. Their coexistence on the analytics was even a trap, the two being merged as a union: ?creator_id=A&creator_ids=B,C returned the scope {A, B, C} with no error and no precedence.

Querystrings are now .strict(): an unknown parameter is a 400. This is what makes this renaming safe. Without it, ?creator_id=abc would have been silently ignored and the caller would have received the figures of all creators while believing they were filtered. A wrong result is worse than an error. An empty CSV (?creator_ids=) is a 400 for the same reason, rather than meaning "all".

Widened along the way: user_ids accepts several employees and counts the revenue attributed to any of them. A sale is attributed to at most one employee, so it is never counted twice.

2026-07-22: Analytics window caps

Restriction (not an addition): the analytics now cap the width of the window per bucket size.

granularityMax window
hour7 days
day31 days
week / month365 days
(endpoints without granularity)365 days
GET /v1/analytics/creators90 days

Before: 730 days everywhere, hour ≤ 31 days. A window that is too wide returns 400 validation_failed; fetching more history takes several requests. The automatic default of granularity changes from "≤48h" to "≤2 days" for hour (only windows that cross a clock change switch bucket).

Shipped without a new mineral: the API was in preview. A restriction of this kind now goes through a new mineral.

2026-07-21: Analytics

Ready-made revenue aggregates (no more downloading the whole /orders ledger to build a chart). Window: start/end are inclusive days interpreted in timezone (canonical IANA name Area/Location, UTC by default); amounts in EUR cents; affiliate revenue is grouped under affiliation.

  • GET /v1/analytics/revenue: total + by_type over the window.

  • GET /v1/analytics/revenue/timeseries: gap-filled buckets for charts, granularity (hour|day|week|month, automatic default), breakdown=creator, user_id filter (revenue attributed to an employee).

  • GET /v1/analytics/creators: revenue by type + subscriptions (new, renewal, paying_fans) per creator.

  • GET /v1/analytics/employees: attributed revenue per employee + unattributed_amount / former_employees_amount.

  • Common filters: creator_id, creator_ids (CSV, max 50), timezone.

  • New scope: read:analytics.

2026-07-17: Fan insight note

  • GET /v1/accounts/{account_id}/fans/{fan_id}/insight (scope read:insights) → { note } + ETag header.

  • PATCH /v1/accounts/{account_id}/fans/{fan_id}/insight (scope write:insights): body { note? }, If-Match header required (428 otherwise, 412 if the note changed since it was read). Optimistic concurrency.

  • New scopes: read:insights, write:insights.

Améthyste (2026-07-06)

Initial version.

  • Agency resources (Offmy ids): GET /v1/creators, GET /v1/creators/{creator_id}, GET /v1/employees, GET /v1/orders, GET /v1/orders/{order_id}.

  • Per-fan relations (MYM ids): GET /v1/accounts/{account_id}/fans, GET /v1/accounts/{account_id}/fans/{fan_id}, PUT|DELETE /v1/accounts/{account_id}/fans/{fan_id}/assignment, PUT|DELETE /v1/accounts/{account_id}/fans/{fan_id}/ai-lock.

  • Meta: GET /changelog, GET /v1/me, GET /v1/openapi.json, /docs.