NewFans API, previously OnlyFans API · A new name. A broader platform.
Fans API
FanslyMass Messaging

Send Mass Message

Send a broadcast to the recipients defined by a broadcast groupId. Provide text, media, locked texts, or any combination. Pass a future scheduledFor (Unix timestamp in milliseconds) to schedule it instead of sending immediately — scheduled broadcasts can later be edited or cancelled. The groupId (which encodes the recipient filters) comes from the Create Mass Message Audience endpoint; you can also reuse a groupId returned by the List Scheduled Mass Messages endpoint or one configured on the Fansly dashboard.

Media references are either fansly_media_ IDs from the Upload Media endpoint or Fansly vault media IDs (a mediaId from the List Vault Media endpoint), so vault content can be sent without re-uploading it. Attach media in one of two ways:

  • mediaFiles: one policy for all attached media — a single file, or one bundle when several are attached. Gate it with the requirePurchase, requireSubscription and requireFollow options (they stack), or with audiences (see below). When neither is sent, media keeps the default (subscription-gated) visibility. previews maps a mediaFiles reference to a free preview shown while the media is locked.
  • mediaSets: several independently gated sets, e.g. one paid photo and one free photo. Each set has its own mediaFiles, previews and audiences, and is registered as its own offer (a bundle when the set has several files). audiences: [] makes a set free. Cannot be combined with mediaFiles, previews, audiences or the gating options.

An audience is a set of requirements a fan must all meet; a list of audiences are alternatives, any one of which unlocks the content (e.g. "subscribed after 1 Nov, OR on my VIP list until Friday"). Media audiences support requirePurchase + price, requireFollow, requireSubscription (optionally one subscriptionTierId, and subscribedAfter / subscribedBefore to only count fans whose subscription started in that range), listId (membership of one of your lists, from List Lists), and validAfter / validBefore (when that audience applies).

lockedTexts attaches extra text with its own audiences, shown to fans who meet them. Locked-text audiences support requirePurchase + price, requireFollow, requireSubscription (optionally one subscriptionTierId), and requireTip + minimumTipAmount (the fan has tipped you at least that much — not a purchase of the text). audiences: [] makes the text visible to every recipient. Lists, availability windows and subscriber-history cutoffs are not available for text.

Money is in Fansly's smallest unit (1000 = $1.00). Times are Unix timestamps in milliseconds. Attachments are sent in order: media sets first, then locked texts.

POST
/api/fansly/{fanslyAccount}/mass-messaging
AuthorizationBearer <token>

Get your API Key from OnlyFansAPI Console - https://app.onlyfansapi.com/api-keys

In: header

Path Parameters

fanslyAccount*string

The Fansly Account ID

Request Body

application/json

groupId*string

The broadcast group ID defining the recipients, from the Create Mass Message Audience endpoint (or a groupId from the List Scheduled Mass Messages endpoint).

text?string

The message text content. Required unless mediaFiles, mediaSets or lockedTexts is provided.

scheduledFor?integer

Unix timestamp in milliseconds to schedule the broadcast for the future. Keep empty (or 0) to send immediately.

mediaFiles?array<string>

Media to attach with one shared policy, each either a fansly_media_ upload ID returned by the Upload Media endpoint or a Fansly vault media ID (a mediaId from the List Vault Media endpoint). A single item is sent as one attachment; multiple are grouped into a bundle. Up to 30. Cannot be combined with mediaSets.

requirePurchase?boolean

Require the fan to purchase (unlock) the mediaFiles media. Requires price. Combinable with requireSubscription / requireFollow; cannot be combined with audiences.

price?integer

Unlock price for requirePurchase, in Fansly's smallest unit — 1000 = $1.00 (e.g. 10000 = $10.00). Required when requirePurchase is true.

requireSubscription?boolean

Require the fan to be subscribed to view the mediaFiles media. Combinable with requirePurchase / requireFollow; cannot be combined with audiences.

subscriptionTierId?string

Restrict requireSubscription to a single subscription tier. Tier IDs come from the List Subscription Tiers endpoint. Omit for any tier.

requireFollow?boolean

Require the fan to follow the account to view the mediaFiles media. Combinable with requirePurchase / requireSubscription; cannot be combined with audiences.

previews?object

Free previews for mediaFiles media, as a map of a mediaFiles reference to the preview media. Both sides accept a fansly_media_ upload ID or a Fansly vault media ID. Each preview is shown unlocked while its (gated) media is locked. Only include media that should have a preview.

audiences?

Alternative audiences for the mediaFiles media, instead of the gating options above. Same fields as mediaSets[].audiences[]. Up to 20.

mediaSets?

Independently gated media sets. Up to 30 media over all sets, and a media can only be in one set.

lockedTexts?

Locked texts to attach, each with its own audiences. Up to 10.

Response Body

application/json

curl -X POST "https://app.fansapi.com/api/fansly/fansly_acct_XXXXXXXXXXXXXXX/mass-messaging" \  -H "Content-Type: application/json" \  -d '{    "groupId": "200000000000000020"  }'
{
  "data": "broadcast sent",
  "_meta": {
    "_credits": {
      "used": 1,
      "balance": 10055789,
      "note": "Always"
    },
    "_cache": {
      "is_cached": false,
      "note": "Cache disabled for this endpoint"
    },
    "_rate_limits": {
      "limit_minute": 5000,
      "limit_day": null,
      "remaining_minute": 4999,
      "remaining_day": null,
      "notice": "We have decided to remove our daily rate limits. Please remove any references to these in your integrations."
    }
  }
}