Getting Started

Send your first alert in under 5 minutes. Create a channel, copy the webhook URL, and POST some JSON.

1. Create a channel

In your dashboard, click + New Channel. Give it a name like production-errors and pick an emoji. Each channel gets its own webhook URL.

2. Copy the webhook URL

Open your channel settings to find the webhook URL:

https://zenhook.dev/api/webhook/your-unique-token

3. Send a test alert

Try it from your terminal:

bash
curl -X POST https://zenhook.dev/api/webhook/YOUR_TOKEN \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Zenhook is working!",
    "level": "success",
    "emoji": "πŸš€",
    "message": "First alert sent from terminal."
  }'

4. Add it to your code

A simple fetch call is all you need. No SDK required.

typescript
await fetch("https://zenhook.dev/api/webhook/YOUR_TOKEN", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    title: "New signup!",
    level: "success",
    emoji: "πŸŽ‰",
    fields: [
      { label: "Email", value: "[email protected]" },
      { label: "Plan", value: "Pro" }
    ]
  })
});