ofapisv1
integration

OnlyFans Discord Bot

An OnlyFans Discord bot for a creator or agency server splits into two mechanisms Discord already gives you: Webhook URLs for one-way notifications (no bot process needed) and a gateway bot with slash commands for interactive calls back to ofapis. Pick the lighter one per job.

Notifications: Discord Webhook URL (no bot required)

In Discord, open a channel → Edit Channel → Integrations → Webhooks → New Webhook, and copy the URL. It accepts a JSON content string or a richer embeds array — no gateway connection, no bot token.

Bridge ofapis to it with a small relay. Point an ofapis signed webhook at your endpoint, verify the signature, then POST an embed to Discord:

// ofapis new-subscriber → Discord embed
await fetch(DISCORD_WEBHOOK_URL, {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    embeds: [{
      title: "New subscriber",
      description: `@${event.data.fan.username} just joined`,
      color: 0x00b3ff
    }]
  })
});

Embeds give you colour-coded tip/DM/subscriber alerts without running any long-lived process.

Interactive: a bot that calls ofapis

For actions from Discord, register a gateway bot (discord.js, Nextcord, etc.) and add slash commands. The bot holds the Bearer token in its environment and calls ofapis on command — the token never appears in any channel:

# /dm fan:8123 text:"Welcome!"
POST https://api.ofapis.com/api/public/v1/accounts/42/chats/8123/messages
Authorization: Bearer ofapis_sk_...
Content-Type: application/json

{ "text": "Welcome!" }

Use Discord's deferred response for anything slow, then edit the reply once ofapis returns. For agencies, scope commands by account using ofapis's /accounts/{id}/... multi-account routes so each server channel maps to one creator.

Three recipes to build

Because billing is per successful call, a bot that hits an expired session returns an error you can log — but you aren't charged for it.

FAQ

Do I need to run a bot process for notifications?

No. A Discord Webhook URL is a plain HTTPS endpoint — your relay POSTs JSON to it. You only need a gateway bot when you want slash commands or interactions that call ofapis back.

Is this an official OnlyFans Discord bot?

No. ofapis is an independent, unofficial API not affiliated with OnlyFans, and Discord has no native OnlyFans integration. You build the bot yourself on top of ofapis's REST endpoints.

How does the bot handle multiple creators?

Give each command an account argument and call the scoped /accounts/{id}/... routes. One bot can manage every connected account; the Pro plan supports five accounts, Enterprise is unlimited.

Where do I get a token?

Create one free; 250 monthly credits on the Free plan cover a full prototype. See pricing when you scale.

Related: Slack · Telegram · all integrations

Related guides

All guides
Start free — 250 credits, no card
Generate a token and make your first call in minutes.
Get started