INTEGRATION

Wire Your Creator Revenue Into Discord in Under 15 Minutes

Every tip, subscription, and churn event — formatted as a color-coded embed card and delivered to the exact Discord channel your team is already watching. No tab-switching. No delayed reports. No missed signals. Built from the experience of running a 100-person operation managing 60+ creators on Discord — revenue intelligence belongs inside the platform, not alongside it. Connect in under 15 minutes using the same webhook infrastructure that processes $50M+ in creator activity.

Use Cases

#revenue channel

Post every tip, PPV purchase, and subscription payment as a rich embed with creator name, amount, and type.

#churn-alerts channel

Get warned instantly when subscribers expire so your chat team can send re-engagement messages.

#daily-summary channel

Post an automated daily recap with total revenue, net subscriber change, and top earners across all creators.

Setup Guide

1

Create a Discord Webhook

In your Discord server, right-click the target channel and go to Edit Channel → Integrations → Webhooks. Click New Webhook, name it "OFAPI Bot", and copy the webhook URL.

2

Build a Relay Script

Deploy a lightweight server that receives OFAPI webhooks and reformats them as Discord embed payloads. Here is a complete example:

discord_relay.py Python
import os, requests
from flask import Flask, request, jsonify

app = Flask(__name__)
DISCORD_WEBHOOK = os.environ["DISCORD_WEBHOOK_URL"]

COLORS = {
    "revenue.received":  0x28c840,   # green
    "subscriber.new":    0xd4af37,   # gold
    "subscriber.expired": 0xff4444,   # red
}

@app.route("/webhook", methods=["POST"])
def handle_webhook():
    payload = request.json
    event   = payload["event"]
    data    = payload["data"]

    embed = {
        "title": event.replace(".", " ").title(),
        "color": COLORS.get(event, 0x9ca3af),
        "fields": [
            {"name": "Creator",  "value": data["creator"],  "inline": True},
            {"name": "Amount",   "value": f"${data.get('amount', 'N/A')}", "inline": True},
            {"name": "Type",     "value": data.get("type", event), "inline": True},
        ],
        "footer": {"text": "OFAPI"},
    }

    requests.post(DISCORD_WEBHOOK, json={"embeds": [embed]})
    return jsonify({"ok": True}), 200
3

Register and Test

Add your relay URL as a webhook endpoint in the OFAPI dashboard (Settings → Webhooks). Subscribe to the events you need and send a test event. You should see a color-coded embed card in your Discord channel within seconds.

Discord Embed Payload

This is the JSON sent to the Discord webhook API for a revenue event:

Discord Webhook Request JSON
{
  "embeds": [{
    "title": "Revenue Received",
    "color": 2672704,
    "fields": [
      { "name": "Creator",  "value": "luna_model",  "inline": true },
      { "name": "Amount",   "value": "$47.50",      "inline": true },
      { "name": "Type",     "value": "tip",         "inline": true }
    ],
    "footer": { "text": "OFAPI" }
  }]
}

Every hour without real-time alerts is revenue your operation cannot act on

A subscriber churns. A $500 tip lands. A creator crosses a daily record. Without this integration, you find out hours later — after the re-engagement window closes, after the momentum fades. Connect in under 15 minutes and see every event the moment it happens.