Zapier, Make and n8n
Send an alert from a Zapier, Make or n8n workflow, or start a workflow when an alert reaches your team's channel, when someone opens it, when it is resolved, or when a visitor sends one of your website forms. Open a ticket when an alert fires, add every form message to your CRM, or post in chat when an incident is resolved.
| Trigger | Event | Starts when |
|---|---|---|
New Alert |
alert.created |
An alert arrives on the channel |
Alert Acknowledged |
alert.acknowledged |
Someone on the channel first opens or acknowledges the alert, or takes a form message; once per alert |
Alert Resolved |
alert.resolved |
A person resolves it, or the tool that raised it reports recovery |
New Form Message |
form.submitted |
A visitor sends a team form whose alerts go to the channel |
The action, Send Alert, is POST /v1/notify with a title, message, link, priority and tags.
Which key. Connect with a channel key. A channel is a group of people on your team who get the same alerts, with its own escalation. A channel key sends to that channel, and the triggers hear that channel only.
To make one, a team admin opens
the web console, then Channels, the channel, the Sending keys tab and Create a key. The
key is shown once, so copy it then. A personal key can send to your own devices, but triggers need a channel key and
answer 403 wrong_credential without one.
A form's messages reach the channel chosen in Send alerts to on the form's Settings tab (see Team forms).
Set it up in n8n, Zapier or Make#
n8n. The same steps as Zapier below, with a Webhook node (method POST) as the trigger, subscribing its
production URL as in step 2, and an HTTP Request node with the method POST, the URL https://
and a header X-Nowlark-Key holding the key to send an alert.
Zapier.
- Create a Zap whose trigger is Webhooks by Zapier with the event Catch Hook, and copy the webhook URL Zapier shows.
- Subscribe that URL to the trigger you want, with the channel key, as below. Keep the
idfrom the answer, to remove the subscription later.
curl -X POST https://nowlark.com/v1/integrations/hooks -H "X-Nowlark-Key: nlk_…" \
-H 'Content-Type: application/json' \
-d '{"event":"alert.created","target_url":"https://hooks.zapier.com/hooks/catch/…"}'
- Turn the Zap on. Only alerts that arrive after step 2 are sent to it. To have a sample to map fields from, send a
test alert to the channel (
POST /v1/notifywith the same key), then press Test trigger in Zapier. - To send alerts from a Zap, add a Webhooks by Zapier action with the event POST, the URL
https://, the payload typenowlark.com/ v1/ notify json, the datatitleandmessage, and a headerX-Nowlark-Keyholding the key.
Make. The same steps, with Make's Webhooks > Custom webhook module as the trigger (subscribe its address as in
step 2) and HTTP > Make a request with the method POST and the URL https://.
When you delete a Zap or scenario, remove its subscription with DELETE /v1/.
The endpoints#
The three set-ups above use these endpoints, and any other automation platform can use them the same way. Each takes the
key as Authorization: or X-Nowlark-Key: nlk_…, and a key may make 600 of these calls an hour
(429 rate_limited past that). They are counted separately from the 1000 alerts an hour the key may send (see Limits).
GET /v1/integrations/me#
Tells you whether a key works and which channel it sends to. Platforms call it to test a connection:
{"ok": true, "label": "Zapier", "name": "Acme Ops / On call", "kind": "channel",
"team": {"id": "team_…", "name": "Acme Ops"}, "channel": {"id": "chn_…", "name": "On call"},
"triggers": true, "events": ["alert.created", "alert.acknowledged", "alert.resolved", "form.submitted"]}
kind is personal for a personal key, with team and channel null and triggers false.
POST /v1/integrations/hooks#
Subscribes a URL to one trigger on the key's channel:
curl -X POST https://nowlark.com/v1/integrations/hooks -H "X-Nowlark-Key: nlk_…" \
-H 'Content-Type: application/json' \
-d '{"event":"alert.created","target_url":"https://hooks.zapier.com/hooks/standard/…"}'
201 returns the subscription's id, event, target_url, created_at, active, disabled_reason and secret
(whsec_…, shown once). The URL must use https and reach public addresses only: a private, local or unresolvable
address is 400. Nowlark does not follow redirects, and waits at most 5 seconds for each delivery to be answered. A key
holds at most 25 subscriptions (409 too_many_hooks), and a URL can be subscribed once per channel (409 duplicate).
GET /v1/ lists the key's subscriptions, without their secrets. DELETE /v1/ removes one: {"deleted": true}, or 404 not_found for a subscription that is gone or
that another key made.
GET /v1/integrations/events/{event} #
The channel's latest items for that trigger, newest first, in exactly the shape a delivery carries: what a platform
shows as samples while you set up a workflow. A platform that checks on a schedule, rather than subscribing, reads it
too. ?limit= is 1 to 50, default 10.
What each item carries#
One flat object, so every field can be mapped in a workflow without unpacking:
- Every event:
id(the alert, also asalert_id; a form message's is its submission id),event,source,title,team,team_id,channel,channel_idandat(Unix seconds). alert.createdandform.submitted:body,url,priorityandtags(comma separated).alert.acknowledged:acknowledged_atandacknowledged_by, the display name each person who opened it uses on this team, earliest first, comma separated.alert.resolved:resolved_at,status,by(the person, or the tool that sent the recovery) andnote.form.submitted:form(its slug),form_name,name,email,message,fields(every answer, by field name) andsubmitted_at.
A subscription hears only its own kind: alert.created never carries a form message, and form.submitted never an
alert. A new subscription starts from the moment it is made, so older alerts are not delivered to it.
Delivery and the signature#
Nowlark makes the first try within 15 seconds. A delivery that fails is tried again after 30 seconds, 5 minutes, 30
minutes, 2 hours and 12 hours, then given up on, and a subscription whose deliveries fail 20 times in a row is switched
off. Each delivery is a POST with the item as its JSON body and the headers X-Nowlark-Event, X-Nowlark-Delivery
(use it to deduplicate) and X-Nowlark-Signature: t=<unix>,, the HMAC-SHA256 of <t>.<raw body> keyed with
the subscription's secret. To check it, recompute it, compare in constant time and reject a t more than five minutes
old. The n8n node does this for you and refuses a delivery that fails. Zapier's Catch Hook and Make's Custom webhook
accept any request sent to their address, so keep that address private; a receiver of your own should check the signature.
A receiver that answers 410 Gone ends its subscription, which is how a platform drops a workflow that was deleted.
Revoking the key that made a subscription stops it at once: nothing more is sent, and the subscription shows
active: false with the reason.