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.
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
- Your own message
- Discord-shaped
- Anything else
Write the message with then this in What to post:posts:
{body.…} for anything in what the app sends. If Ko-fi sends: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.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.- Bash / zsh
- PowerShell
- Command Prompt
\ at the end of its line, with no spaces after it.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
APOST with this body:
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.
- Node.js
- Python
- Go
- Rust
express.raw({ type: "application/json" }) on this route before any JSON middleware.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
localhostor192.168.…) are refused. A server can have 10 outgoing webhooks.
