Ko-fi, Patreon and Streamlabs
This page is for a streamer whose viewers already support them through Ko-fi, Patreon or Streamlabs. After it, your site hears about each payment as it happens: it shows an alert on stream, counts the payment on the support bar and the stream timer, and lists it in Admin Panel → Payments → Payment history.
The money never touches your site. Viewers still pay on Ko-fi, Patreon or Streamlabs, those services pay you out as they do today, and their own fees apply. Your site only receives a notice that a payment happened.
Where they are set up
None of the three is a module with a switch. During setup, on the Modules page, tick each one you use under Where you stream, and other services: Ko-fi, Patreon and Streamlabs are three separate choices, and each one you tick gets its own short setup page. Later, all three are in Admin Panel → Payments → Connections, card Other.
The addresses below use example.com. Ko-fi and Patreon send to api.example.com, not to the main site address; your setup page shows the exact address for your domain.
How each one reaches your site
Ko-fi and Patreon use a webhook: when someone pays, the service sends a message to an address on your site. Anyone on the internet could send a message to that address, so each service also gives you a secret that proves the message came from it. Your site refuses any message without the right secret.
Streamlabs works the other way round: your server opens a connection to Streamlabs and listens, using a token Streamlabs gives you. Nothing has to reach your server from outside.
| Service | How it connects | The secret you paste | What the secret lets the site do | Why it is needed |
|---|---|---|---|---|
| Ko-fi | Ko-fi sends a webhook to https://api.example.com/webhook/kofi |
Ko-fi verification token | Nothing at Ko-fi. Your site compares it with the token inside each message. | Without it, anyone could post a fake donation to your site and fire an alert |
| Patreon | Patreon sends a webhook to https://api.example.com/webhook/patreon |
Patreon webhook secret | Nothing at Patreon. Your site uses it to check the signature Patreon puts on each message. | Proves a new pledge really came from Patreon |
| Streamlabs | Your server connects to Streamlabs' live event feed | Streamlabs socket token | Read your Streamlabs alert feed (donations and other alert events) | It is how your server joins the feed. The site uses only the donations from it. |
All three are stored encrypted on your server.
Ko-fi
- Sign in to Ko-fi and open Ko-fi → Settings → API (webhooks).
- In Webhook URL, paste the address from your setup page:
https://api.example.com/webhook/kofi(with your domain). Save it. - On the same Ko-fi page, open the advanced section and copy the Verification Token.
- Paste it into Ko-fi verification token on your setup page (or Admin Panel → Payments → Connections, card Other).
🖼 Image: Ko-fi's webhook settings page, with the Webhook URL box and the Verification Token.
What arrives: one-off donations show as "donated on Ko-fi" and count on the support bar. Ko-fi memberships show as "subscribed on Ko-fi", or "renewed Ko-fi subscription" for later months, with the tier name if there is one. A Ko-fi shop order or commission shows its alert ("bought from the Ko-fi shop", "commissioned on Ko-fi") but counts nothing on the support bar: it is a purchase, not support.
The token applies at once. Ko-fi's webhook page has buttons that send a made-up test payment to your address: use one, and an alert should appear on stream (if your overlays are open) and the payment should show in payment history.
Patreon
Patreon webhooks are set up in Patreon's developer portal, which uses your normal Patreon creator login.
- Open Patreon → developer portal → My Webhooks.
- Add a webhook with the address from your setup page:
https://api.example.com/webhook/patreon(with your domain). - Choose which events Patreon sends. The site shows an alert for
members:pledge:create, a new pledge, so tick that one. Other member events are accepted and ignored. - Patreon shows a secret for the webhook. Copy it.
- Paste it into Patreon webhook secret on your setup page.
What arrives: each new patron shows as "joined on Patreon", with their tier if Patreon includes one. Monthly charges to existing patrons do not fire alerts and are not counted.
The secret applies at once. Patreon's webhook page can send a test message for each event.
Streamlabs
- Sign in to Streamlabs and open Streamlabs → Settings → API Settings.
- Open API Tokens and copy your Socket API Token. It starts with
eyJand has three parts joined by dots. - Paste it into Streamlabs socket token on your setup page.
What arrives: each Streamlabs donation shows as "donated", with the donor's name and message. Other events in the Streamlabs feed are ignored.
The token is read when the chat service starts. If you add or change it after setup, the Admin Panel shows a Pending restart box; press Restart the chat service (or run sudo blackbranch restart stream-api on the server). The connection goes from your server to Streamlabs, so this works the same behind the Cloudflare tunnel or in direct mode.
Keep the token private. Anyone who has it can read your Streamlabs alert feed.
When a payment cannot be recorded
Your site tells Ko-fi or Patreon "received" only once the payment is safely recorded. If it cannot be recorded (the database is down, for example), the site answers with an error, and the service sends the payment again later:
- Ko-fi retries a few times.
- Patreon retries after about 30 seconds, 5 minutes, 15 minutes, 1 hour, 3 hours, 1 day and 1 week, then pauses the webhook. A paused webhook has to be switched back on in Patreon's developer portal.
A repeat of a payment that did land is recognised and changes nothing. Nothing shows on stream for a payment that is not recorded yet; the alert comes with the retry.
Streamlabs is a live connection with no "received" answer: if a donation could not be recorded, Streamlabs sends it again with its recent events the next time the connection is made.
None of the three services tells your site about a refund. A Ko-fi, Patreon or Streamlabs payment you refund keeps counting toward the viewer's lifetime support and the support bar; your statements from each service are the real figures.
Supporter status
None of the three makes a viewer a Supporter on your site. A Ko-fi membership or a Patreon pledge fires its alert and counts on the support bar, but the viewer gets no Supporter badge or perks from it, because the site cannot tell which site account a Ko-fi or Patreon member is. Supporters come from a card subscription (Stripe), a gifted subscription, or a PayPal subscription (PayPal and Venmo). Counting Patreon and Ko-fi memberships as Supporters, through an account link, is planned; see How money flows.
Behind Cloudflare
Ko-fi and Patreon webhooks pass through Cloudflare when your front door is the tunnel. If a service's webhook page shows deliveries refused, or test payments never arrive, Cloudflare's bot protection may be stopping them: see Cloudflare. The paths are /webhook/kofi and /webhook/patreon on your api. address.
When it goes wrong
| What you see | What it means | What to do |
|---|---|---|
| A Ko-fi test payment never shows | The URL or token is wrong, or the message was blocked on the way | Check the URL starts with https://api. and ends /webhook/kofi, copy the token again, and check Cloudflare. |
Ko-fi shows the delivery refused (401) |
The token on your site does not match Ko-fi's | Copy the Verification Token again. |
| A new patron fired no alert | members:pledge:create is not ticked, or the secret does not match |
Check the event list and copy the secret again. |
Patreon or Ko-fi shows deliveries failing with 500 |
The site could not record the payment yet (usually the database was down), so it asked for a retry | Check the Doctor. Once it is green, the service's own retries bring the payment in. If Patreon paused the webhook, switch it back on. |
| Streamlabs donations never arrive | No token, a wrong token, or the chat service has not restarted since you set it | Copy the token again and restart the chat service. |
| A donation shows once only, though the service sent it twice | Expected: the site ignores repeats of a payment it already counted | Nothing to fix. |
Next: OBS