
When you're building a Fansly chatbot, a CRM or an earnings dashboard, you need a way to know when something happens on a creator's account. A new message comes in, a fan sends a tip, or a subscription gets renewed. Your application needs that information to keep everything up to date.
Webhooks let your application receive notifications when specific events happen, without having to keep checking for updates.
In this guide, we'll explain how Fansly webhooks work with Fansly API, which events you can track, how to set up and secure your webhook endpoint, and how to handle incoming events in your application.
What are Fansly webhooks?
Normally, when an application needs updated information from an API, it sends requests at regular intervals to check for changes. This is called polling.
For example, a chatbot might check every few seconds to see if a new message has arrived. It works, but it also means making requests when nothing has changed.
Webhooks work differently. Instead of your application asking for updates, the API sends them to you.
You register a URL on your server and choose which events you want to receive. When one of those events happens on a connected Fansly account, Fansly API sends an HTTP POST request to your URL with the event details in JSON. Your application can then process the event and decide what to do with it.
For example, when a fan sends a new message, your chatbot can receive the event and start generating a reply. When a tip arrives, your dashboard can update the creator's earnings.
Which Fansly events can you track?
Fansly API supports webhooks across several areas of account activity. You can subscribe to individual events depending on what your application needs. Here's the current list of supported events:
| Category | Events |
|---|---|
| Account | accounts.connected |
| Messages | messages.received, messages.sent, messages.read, messages.liked, messages.unliked, users.typing |
| Payments | tips.received, ppv.purchased, transactions.new |
| Subscriptions | subscriptions.new, subscriptions.renewed, subscriptions.expired |
| Posts | posts.created, posts.updated, posts.deleted, posts.pinned, posts.liked, posts.unliked, posts.commented |
| Followers | users.followed, users.unfollowed |
You can find the full event list, including descriptions and example payloads, in the Webhook Events documentation.
What does a Fansly webhook payload look like?
Every webhook uses the same basic structure. The event, accountId and timestamp fields stay the same, while the data object contains information specific to the event. Here's an example of a tip notification:
{ "event": "tips.received", "accountId": "fansly_ACCOUNT_ID", "timestamp": "2026-06-23T18:11:59.305Z", "data": { "id": "TRANSACTION_ID", "type": 7101, "amount": 1000, "destinationTax": 2000, "destinationAmount": 800, "correlationId": "CORRELATION_ID" }}Here's what the main fields mean:
event: identifies what happened. In this example, a fan sent a tip.accountId: identifies the connected creator account that received the event.timestamp: records when Fansly API sent the event.data: contains the information associated with the event.
In this example, amount is the original amount and destinationAmount is the amount the creator receives after fees. Both are in thousandths of a dollar, so divide by 1,000: 1000 represents $1.00, and 800 represents $0.80. destinationTax is the platform fee in basis points, so 2000 means 20%.
The structure stays consistent across events, which makes it easier to build a single webhook handler that routes different event types to the right part of your application.
How to set up a Fansly webhook
Step 1: create an endpoint on your server
First, you need a URL that can receive HTTP POST requests, for example https://yourapp.com/webhooks/fansly. Your endpoint should accept JSON requests and use HTTPS.
If you're developing locally, you can use a tunneling service to expose your local server while testing.
Step 2: create a webhook in your dashboard
Open the Webhooks page in your Fansly API dashboard and click Create Webhook.
Give your webhook a name, enter your endpoint URL as the destination URL, and select the events you want to receive.
For example, a chatbot might subscribe to messages.received, while an earnings tracker could subscribe to payment and subscription events. Webhooks are available on all paid plans.
Step 3: save your signing secret
When you create a webhook, Fansly API generates a signing secret. This secret is used to verify incoming requests and make sure they are coming from Fansly API rather than someone sending fake requests to your endpoint.
The secret is shown only once. Copy it when it's displayed and save it in an environment variable or secrets manager. Don't put it directly in your source code or commit it to Git.
Step 4: test your endpoint
Once your webhook is registered, send a message from a test fan account to your connected creator account. Your endpoint should receive a messages.received event containing the message details. Inspect the request and check that your application handles it correctly.
How to secure your webhook endpoint
Your webhook URL is publicly accessible, which means anyone who knows it could try sending requests to it.
Imagine someone sends a fake tips.received event to your server. Your earnings dashboard might record money that was never received, or your application might trigger an action based on an event that never happened. That's why you should verify every incoming webhook before processing it.
Verify the signing secret
Every webhook request from Fansly API includes your signing secret in the X-Webhook-Signature header. Don't process an event just because it reached your endpoint. First, check that this header matches the secret you saved, and reject requests where it's missing or wrong with a 401.
Here's how that looks in Python with Flask:
import osimport secretsfrom flask import Flask, request, abort app = Flask(__name__)SECRET = os.environ["FANSLY_WEBHOOK_SECRET"] @app.post("/webhooks/fansly")def fansly_webhook(): received = request.headers.get("X-Webhook-Signature", "") if not secrets.compare_digest(received.encode(), SECRET.encode()): abort(401) payload = request.get_json() if payload["event"] == "tips.received": print("Tip received: $", payload["data"]["amount"] / 1000) return "", 200The example uses a constant-time comparison (secrets.compare_digest) instead of a plain ==. A plain comparison stops at the first wrong character, and an attacker can measure those tiny time differences to guess the secret one character at a time. A constant-time comparison always takes the same time.
Store your secret safely
Keep your signing secret in an environment variable or a secrets manager. Avoid putting it directly in your application code, exposing it in frontend JavaScript, or committing it to a public repository.
Also make sure your logging and error-monitoring tools don't record the X-Webhook-Signature header. Only accept webhook requests over HTTPS. If you suspect your signing secret has been exposed, regenerate it and update your application.
Handling webhook events in your application
You also need to process each event without slowing down your webhook endpoint or losing events when your application gets busy.
Return a response quickly
When your server receives a webhook, verify the request and acknowledge it with a 200 OK or 204 No Content response. Don't wait for an AI model to generate a reply, send a message, or perform several database operations before responding.
Process events in the background
For applications that receive lots of events, it's better to put incoming events into a job queue and process them separately. For example, you could use BullMQ with Node.js or Celery with Python.
Your webhook endpoint receives the event, validates it, saves it to the queue, and returns a response. A background worker handles the actual task. This keeps your endpoint responsive even when many creators receive messages at the same time.
Handle duplicate events
Your application should be prepared to receive the same event more than once. Use event or transaction IDs to identify events you've already processed and avoid performing the same action twice.
This is particularly important when working with payment events. transactions.new is sent alongside the specific payment event, such as tips.received. If you subscribe to both, the same earning can appear in two webhook deliveries. You can match them using their transaction IDs rather than counting both as separate payments.
Handle multiple creator accounts
If you're managing several accounts, use the accountId field to route each event to the correct creator. This is useful for agency dashboards, chat tools and CRM systems where multiple creators share the same application.
Keep your endpoint available
Your webhook endpoint should be reachable whenever events are being delivered. If your server goes down during a deployment or outage, you should have a recovery plan. Depending on the event type, you can use the API to retrieve recent account activity and bring your application back up to date.
What can you build with Fansly webhooks?
Webhooks are especially useful for building features that automatically respond to real-time activity across your Fansly accounts.
Real-time earnings dashboard
Listen to tips.received, ppv.purchased and subscription events to update earnings as transactions happen. Instead of waiting for someone to refresh a report, your dashboard can show new activity as it comes in.
AI chatbot
A chatbot needs to know when a fan sends a message. By subscribing to messages.received, your application can receive the message, pass it to an AI model, and send a reply through the API. We've covered the complete process in our guide to building a Fansly AI chatbot.
Fan CRM
You can combine message, payment and subscription events to keep fan profiles up to date. For example, your CRM can track spending activity, identify top supporters, and notify your team when a subscription expires.
Team notifications
Not every event needs to trigger an automated action. You could send a Telegram or Slack notification when a creator receives a large tip, a regular subscriber renews, or an important account event occurs. This helps teams keep track of activity without constantly checking every creator account.
No-code automation
Webhooks can also connect Fansly activity to other tools without requiring you to build an entire backend. For example, you can send events to n8n or Make.com and use them to trigger workflows, update records, or send notifications. See our guides to automating Fansly with n8n and automating Fansly with Make.com.
How much do Fansly webhooks cost?
Webhook deliveries use credits, but they're relatively inexpensive. With Fansly API, 80 webhook events consume just 1 credit. This makes it practical to track messages, tips, subscriptions and other account activity without spending a large portion of your monthly credits on event delivery. You can subscribe to the events your application needs and keep track of usage from your dashboard.
Do third-party Fansly APIs get creator accounts banned?
No. Using a third-party Fansly API does not automatically put your creator account at risk of being banned. However, account safety depends on how the API accesses Fansly and how it is used. Choose a provider that prioritizes secure access and responsible account management like Fanlsy API.


