Getting Started
Send your first alert in under 5 minutes. Create a channel, copy the webhook URL, and POST some JSON.
Popular recipe
Get Dependabot pull requests on your phoneOne channel, one GitHub workflow, no GitHub App. Tap the alert to review the pull request.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" }
]
})
});