NewFans API, previously OnlyFans API ยท A new name. A broader platform.
Fans API
FanslyAutomated Messages

List Automated Messages

Get every automated message on the Fansly Account, as shown under Creator โ†’ Chat โ†’ Automated Messages on the Fansly dashboard. Fansly's fields are forwarded as is:

  • triggerType is what sends the message: 3 = new follower, 15 = new subscriber, 15002 = new gift link subscriber, 15010 = subscriber renew, 15012 = gift link subscriber renew, 7001 = new tip, and 0 = disabled (turned off).
  • delay and cooldown are in milliseconds: how long after the trigger the message is sent, and how long before the same fan can receive it again.
  • triggerMetadata is a JSON-encoded string with the trigger's filters (an empty string when there are none): minAmount / maxAmount (in Fansly's smallest unit, 1000 = $1.00) and keywords for tips, subscriptionTierId for subscription triggers, and subscriptionStreak for renew triggers. Fansly adds subscriptionTierName itself when a tier is set.
  • messageTemplate is the message that is sent: its content, attachments, and senderId (the account itself).

An account without automated messages returns an empty array.

GET
/api/fansly/{fanslyAccount}/automated-messages
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

Response Body

application/json

curl -X GET "https://app.fansapi.com/api/fansly/fansly_acct_XXXXXXXXXXXXXXX/automated-messages"
{
  "data": [
    {
      "id": "900000000000000050",
      "accountId": "800000000000000001",
      "triggerType": 3,
      "triggerMetadata": "",
      "delay": 600000,
      "cooldown": 0,
      "messageTemplate": {
        "content": "Thank you for following.",
        "attachments": [],
        "senderId": "800000000000000001"
      }
    },
    {
      "id": "900000000000000051",
      "accountId": "800000000000000001",
      "triggerType": 7001,
      "triggerMetadata": "{\"minAmount\":5000,\"maxAmount\":10000,\"keywords\":[]}",
      "delay": 0,
      "cooldown": 86400000,
      "messageTemplate": {
        "content": "Thank you for tipping {amount} dollars!",
        "attachments": [
          {
            "contentType": 1,
            "contentId": "900000000000000060"
          }
        ],
        "senderId": "800000000000000001"
      }
    },
    {
      "id": "900000000000000052",
      "accountId": "800000000000000001",
      "triggerType": 0,
      "triggerMetadata": "{\"subscriptionTierId\":\"843584256474116096\",\"subscriptionTierName\":\"VIP\"}",
      "delay": 0,
      "cooldown": 0,
      "messageTemplate": {
        "content": "Welcome! Here is a little gift.",
        "attachments": [],
        "senderId": "800000000000000001"
      }
    }
  ],
  "_meta": {
    "_credits": {
      "used": 1,
      "balance": 10055790,
      "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."
    }
  }
}