Skip to main content
Dashboard → Content & tools → Webhooks has four tabs:
cure needs the Manage Webhooks permission for the first two tabs. Incoming and outgoing webhooks work without it. Anyone with Automation access in dashboard access can use this page.

Server webhooks

These are your server’s normal Discord webhooks, the same ones in Server Settings → Integrations.
1

Make one

Give it a name, pick a channel and press Make.
2

Change it

Open it to change its name, picture or channel.
3

Use it

Press Send to post through it here, or copy its URL from Discord for another app.
Anyone with a webhook’s URL can post through it. If a URL leaks, delete the webhook and make a new one.

Send as webhook

Post a message that looks like it came from someone else: an announcer, a character, your brand. Pick the webhook, then:
  • Name for this message and Picture for this message: change how it looks just this once. Leave them empty to use the webhook’s own.
  • Message: plain text, or a design from Message Studio starting with {embed}. The preview beside it updates as you type.
  • Edit a message instead: paste the link to a message this webhook sent, and cure changes it rather than posting a new one. This is the easiest way to keep a rules or info post up to date.

Incoming webhooks

An incoming webhook is a private link. Whatever another app POSTs to it, cure posts in your channel.
1

Make one

In Incoming, give it a name (like Ko-fi) and pick the channel it posts in. Press Make.
2

Copy its URL

It looks like https://curebot.site/api/hooks/3f9a1c2b7d4e/…. Paste it into the other app wherever it asks for a webhook URL.
3

Choose what it posts

Open the webhook and fill in What to post. Leave it empty to start; see the options below.

What it posts

Write the message with {body.…} for anything in what the app sends. If Ko-fi sends:
then this in What to post:
posts:
Nested fields use dots, like {body.user.name}. A Message Studio design starting with {embed} works too, and {hook.name} is the webhook’s name.
Each webhook can also post under its own name and picture (Posts as and Picture). Mentions in what’s posted never ping anyone.

Try it

Copy your incoming webhook’s URL from the dashboard and replace the example URL below. Choose your shell; in Windows Terminal, match the profile shown on the tab.
Use this version on macOS, Linux, WSL or Git Bash. Keep each \ at the end of its line, with no spaces after it.
The reply says what happened:

Keep it safe

The URL is the password. If it leaks, open the webhook and press New URL: the old one stops working at once. A server can have 25 incoming webhooks.

Outgoing webhooks

An outgoing webhook sends your server’s events to your own app, as JSON.
1

Add your app's URL

In Outgoing, enter an https:// address on the public internet, and pick the events it should get.
2

Copy the secret

Each webhook has a secret. Your app uses it to check a request really came from cure (see below).
3

Press Test

cure sends a test event and shows what your app answered.

Events

A user is always { id, username, displayName, bot }.

What your app receives

A POST with this body:
and these headers:

Check the signature

Pass the raw body bytes, x-cure-signature header and your webhook’s secret to one of these helpers. Verify before parsing JSON. Load a non-empty secret from CURE_WEBHOOK_SECRET at startup; use the text shown in the dashboard without Base64-decoding it.
In Express, use express.raw({ type: "application/json" }) on this route before any JSON middleware.
Return 401 if verification fails. Otherwise parse JSON, validate the fields you use and run your own handler. Route using event in the signed body, and treat test as a dry run. Queue slow work before returning a 2xx within five seconds. Keep the secret server-side. These helpers verify authenticity, not replay protection: for sensitive actions, validate the signed sentAt against a short time window and atomically reject previously accepted signatures in shared storage.

When your app doesn’t answer

  • Answer within 5 seconds with any 2xx. Anything else counts as a failure, and the dashboard shows the last answer or error.
  • Failed events aren’t sent again.
  • After 20 failures in a row, cure turns the webhook off. Fix your app, then turn it back on.
  • Addresses on private networks (like localhost or 192.168.…) are refused. A server can have 10 outgoing webhooks.