Skip to main content

Webhooks

Webhooks allow external services to send messages to Magne channels without a bot account.

How It Works

  1. Create a webhook on a channel (requires MANAGE_WEBHOOKS permission)
  2. Receive a webhook URL with an embedded token: /v1/webhooks/:id/:token
  3. POST messages to the URL — no authentication header needed

Creating a Webhook

The response includes a one-time token field. Store it securely — it won’t be shown again.

Executing a Webhook

  • No Authorization header required — the token in the URL is the credential
  • Content must be 1–4,000 characters
  • Messages appear in the channel with the webhook’s name and avatar
  • Rate limited to 30 requests per 60 seconds per webhook

Management