Notifications API for alerts and signed webhooks
Publish an event once. Takelan sends it to email, webhooks, Slack, Mattermost and PagerDuty. Webhooks are signed and retried.
Problems we solve
Does any of this sound like your week?
Every app has its own Slack and webhook code.
Publish one event with a topic. Set up channels once, and every app shares them.
Every service wants alerts in a different place.
One channel can be email, a webhook, Slack, Mattermost or PagerDuty. Sign each up for the same topic.
How do I know a webhook is really from you?
Each delivery has an X-Signature-256 header, an HMAC-SHA256 of the exact body. Check it with your channel secret.
My endpoint was down. Did the alert get lost?
Failed deliveries try again with backoff. The deliveries list shows every try, and you can retry one by hand.
What it does
- The Notifications API sends one alert to many places. Your code publishes one event with a topic, such as "backup.failed". People and teams create channels and sign them up for topics. Your app never needs to know who is listening.
- It cleans up the alert mess. Without it, every app grows its own Slack code, webhook sender, retry loop and "who gets paged" list. Here you set up channels once. Every app shares them.
- A channel can be email, a webhook, both, Slack, Mattermost or PagerDuty. A webhook is a web address that gets a message. Slack and Mattermost need an incoming-webhook URL. PagerDuty needs an Events API v2 routing key. A channel can be private to one user or shared by your whole account. You can also mute it for a while.
- Webhooks are signed. Each delivery has an X-Signature-256 header. It is an HMAC-SHA256 of the exact body, made with your channel secret. It also has X-Takelan-Event, X-Takelan-Delivery and X-Takelan-Attempt headers, so you can track each try. Failed deliveries try again with backoff. You can retry one by hand. A "verify" call and a "test" call let you check a channel before a real incident.
- Takelan guards outgoing calls against server-side request forgery. That is a trick that points calls at private systems. Webhook targets must use https. They must not point to loopback, link-local or cloud-metadata addresses. If your receiver is on a private network, an admin can add that host to a list.
- To publish events, you need a service token with the publish scope. Or use an API key that can publish to its own account. Go over the limit and you get a 429 with a Retry-After header. Exact numbers differ by setup, so we do not quote any here.
- Pricing that stays affordable. Start free*. *Free test level; past the limits, non-critical calls slow or pause and nothing is charged unless you turn overage on. Connected ShadowCradle organizations can switch on Takelan SSO and these base-included services with one switch, and ShadowCradle alerts can use the same channels. Airgap licences work without any Takelan connection.
See how it works
Publish once, fan out to channels
A signed webhook delivery
Example use cases6 examples
Page the on-call engineer
A critical event goes to a PagerDuty channel. The same event posts a short note to a Slack channel for the team. Your app publishes once.
Signed webhooks to your own systems
A developer points a webhook channel at an internal service. The receiver checks X-Signature-256 against the body before it trusts the call. It uses X-Takelan-Delivery to skip repeats.
Let each person choose how to be told
One engineer wants email. Another wants Mattermost. Each makes a private channel and picks the topics they care about. Admins can also make channels for the whole account.
Self-hosted chat on a private network
An IT team runs Mattermost inside its network. An admin lists the host once. Alerts can then reach it, and internal addresses stay closed to everything else.
Prove an alert was sent
After an incident, the team reads the deliveries list. It shows which channel got what, what failed and what was retried. No more guessing from chat history.
One-click unsubscribe links
Email deliveries can include a magic link. People can then change their own subscription right from the message.
Try it
Create a Slack channel and subscribe it to a topic
curl -X POST https://app.takelan.com/api/v1/notify/channels \
-H "X-API-Key: $TAKELAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "ops-alerts",
"kind": "slack",
"webhook_url": "https://hooks.slack.com/services/XXX/YYY/ZZZ",
"scope": "tenant"
}'
# Response (abridged, fictional)
# { "id": "5b1e...90", "name": "ops-alerts", "kind": "slack", "enabled": true }Then call POST /api/v1/notify/channels/{channel_id}/test to send a test message, and POST /api/v1/notify/subscriptions to attach topics. Tenant-scoped channels need an administrator.
Verify a signed webhook (receiver side, Python)
import hmac, hashlib
def is_valid(secret: bytes, body: bytes, header: str) -> bool:
expected = "sha256=" + hmac.new(secret, body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, header)
# header = request.headers["X-Signature-256"]
# body = the raw request bytes, before any JSON parsingCompare against the raw bytes you got. Use X-Takelan-Delivery to ignore a delivery you already handled.
Endpoints21 endpoints
POST /api/v1/notify/channelsCreate a channel: email, webhook, both, slack, mattermost or pagerduty.GET /api/v1/notify/channelsList channels.GET /api/v1/notify/channels/{channel_id}One channel.PATCH /api/v1/notify/channels/{channel_id}Rename, enable, disable or mute a channel, or change its target.DELETE /api/v1/notify/channels/{channel_id}Delete a channel.POST /api/v1/notify/channels/{channel_id}/rotate-secretSwap in a new webhook signing secret.POST /api/v1/notify/channels/{channel_id}/verifyCheck that a channel can get messages.POST /api/v1/notify/channels/{channel_id}/testSend a test notification.GET /api/v1/notify/topicsList topics you can subscribe to.POST /api/v1/notify/subscriptionsSign a channel up for a topic. Filters are optional.GET /api/v1/notify/subscriptionsList subscriptions.PATCH /api/v1/notify/subscriptions/{sub_id}Change a subscription.DELETE /api/v1/notify/subscriptions/{sub_id}Remove a subscription.POST /api/v1/notify/eventsPublish an event (service token, or an API key for its own tenant). Returns 202.GET /api/v1/notify/events/{event_id}See how a published event was delivered.GET /api/v1/notify/deliveriesList deliveries and their outcome.POST /api/v1/notify/deliveries/{delivery_id}/retryRetry a failed delivery.POST /api/v1/notify/webhook-jobsSend one ready-made signed webhook request. For service callers. Returns 202.POST /api/v1/notify/webhook-jobs/{job_id}/retryReplay a dead webhook job.GET /api/v1/notify/private-hostsList allowed private-network hosts.POST /api/v1/notify/private-hostsAllow a private-network host. Admins only, and the platform can turn this off.
MCP
Available as tools through /mcp/utils. A read-only key can list channels, topics, subscriptions and deliveries. Creating or changing channels is a write, so it is off by default. It needs the writes switch for your account and a key that is not read-only. Event publishing, webhook jobs and private-host rules are not offered as tools. Routes that carry secrets are marked sensitive. About MCP
Common questions
how to send alerts to Slack from an API
Make a channel of kind "slack" with your Slack incoming-webhook URL. Sign it up for a topic. Then publish events on that topic. Use the test endpoint first to check it works.
can I send notifications to PagerDuty, Mattermost and email at once
Yes. Make one channel for each target. Sign each one up for the same topic. Then publish one event, and Takelan sends it to all of them. A single channel can also be "both" (email and webhook).
how do I verify a webhook signature HMAC SHA256
Each webhook delivery has an X-Signature-256 header. It looks like sha256=<hex>. Compute HMAC-SHA256 of the raw request body with your channel secret. Then compare the two in constant time. You can rotate the secret any time with the rotate-secret endpoint.
what happens if my webhook endpoint is down
Failed deliveries try again with backoff. Each try has an X-Takelan-Attempt header. You can see every delivery in the deliveries list and retry one by hand. We do not publish a retry count or a delivery-time promise here.
can a webhook call a server on my private network
Not by default. Targets must use https. They cannot point to loopback, link-local or cloud-metadata addresses. An account admin can add a private host to the private-hosts list, if the platform administrator allows it.
who can publish events to the notification service
A service token with the publish scope. Or an API key that publishes to its own account. Plain user logins cannot publish. Keys can only use non-transactional topics.
is there an audit trail for notifications
Yes. Deliveries are listed with their state. Changes to channels and private hosts go into an audit log.
is the notification API free
It is negotiable on price: start free*. *Free test level; past the limits, non-critical calls slow or pause and nothing is charged unless you turn overage on.
