Webhooks

A webhook is a secret URL that posts a message into a group as a bot. Use one to send alerts from a script, a home server or a build job.

Making one

  • Only the group owner can make webhooks, up to 10 per group.
  • The URL is shown once. The server keeps only a hash of it, so if you lose it, revoke it and make a new one.
  • The owner or the server admin can revoke a webhook. It also stops working if the person who made it leaves the group.

Posting

curl -X POST "https://hexane.nelsonvps.co.uk/hooks/<id>/<token>" \
  -H "Content-Type: application/json" \
  -d '{"text": "Backup finished", "username": "nas"}'
  • text is required, up to 4000 bytes. username is optional, up to 32 characters.
  • The whole body may be at most 16 KB, and each webhook may post at most 5 times every 10 seconds.
  • Answers: 204 posted, 400 bad body, 404 unknown or revoked, 413 too large, 429 too many posts.

Messages appear with [bot] after the name. Nobody can edit or unsend them.

Updated: November 25 2026

More about Hexane: