Notifications
Hear about a low balance, a credited top-up or an answer from support on Discord, Slack or ntfy.sh. No email involved.
MafiaLLM has no email address for you, so it can’t write to you. Instead, you give it a webhook: an address of a chat service where it posts a short message. Set it in Dashboard → Account, under Notifications.
What you get
- Low balance. One message when your balance goes below the amount you chose. It isn’t repeated until the balance has gone back above it.
- Top-up credited. One message for each top-up, with the amount credited and the new balance.
- Support answered. One message each time support answers one of your tickets. It says nothing more: the answer is on the site.
MafiaLLM: low balance. $4.12 left (alert below $5.00).
MafiaLLM: top-up credited, +$20.00. Balance: $24.12.
MafiaLLM: support answered your ticket.
Messages come in the language the site was in when you saved the webhook. The low-balance alert follows the account’s balance, not the balance of a key that has its own.
Getting a webhook URL
Discord
- Open the channel’s settings, then Integrations → Webhooks.
- Create a webhook and copy its URL. It starts with
https://discord.com/api/webhooks/.
Slack
- Create an app at api.slack.com/apps and turn on Incoming Webhooks.
- Add a webhook to a channel and copy its URL. It starts with
https://hooks.slack.com/services/.
ntfy.sh
- Pick a long, random topic name: anyone who knows it can read what is posted there.
- Subscribe to that topic in the ntfy app, on your phone or computer. No account is needed.
- Your URL is
https://ntfy.sh/followed by the topic.
Note: Only these three services are accepted. MafiaLLM never calls an address of your own: a server you run would learn where our API calls from.
Checking it works
After saving, Send a test posts a message right away. If the service refuses it, the page says so: check the URL.
When a webhook stops working
- A message that fails is tried again for about an hour, then dropped.
- If the service says the webhook no longer exists, or it keeps failing, we stop sending and the page shows it as stopped. Saving it again switches it back on.
Privacy
- A message holds amounts, or a line saying support answered: never your account ID, your keys, a payment reference or what a ticket says.
- The URL is the only thing we keep. It is stored encrypted, and deleted when you remove the webhook or delete your account.
- The service you choose sees the messages, and knows the channel belongs to you. If that matters, use ntfy.sh with a random topic.
- For a program, there is nothing to set up: the balance endpoint tells it what is left.