Webhooks
Hear about everything that happens
Every Pickcell product publishes its events to one place in your account. Register your endpoint there and each event arrives as a signed HTTPS POST.
The Pickcell events application
Every account has one system application, Pickcell events. Every product publishes into it, and only Pickcell's own products can: nobody can send a forged event through it. It cannot be deleted.
It is created the first time you open Webhooks in the console and complete the onboarding prompt. Events that happen before then are not kept for later, and an endpoint only receives events published after it was added.
Managing endpoints is a person's job in the console. An API key cannot list, add or change them.
Register an endpoint
In the console, open Webhooks, then Applications engine, then Pickcell events, and add an endpoint on its Endpoints tab. Give the HTTPS address of your receiver and, if you like, the event types to allow or deny.
Creating the endpoint shows its signing secret once. It starts with whsec_. Copy it to your receiver's secret store before you close the dialog; it is never shown again, and if you lose it you rotate it.
Each product guide lists the events it sends, with an example of each: Messaging, Events, Invoicing, Signage, Forms, Files and Task boards.
Filters
Each endpoint has a filter, checked when an event is published:
- Allow: leave it empty to receive every ordinary event type, or list the types you want. A type missing from a non-empty allow list is never sent to that endpoint.
- Deny: a listed type is never sent, whatever the allow list says.
- Match: narrows by a top-level field of the event's
data. An event passes only when, for every key, its field is a string equal to one of the listed values. An event without that field does not pass.
In the console you set match values when you allow an opt-in type, below. A form's Send submissions to a webhook card adds an endpoint that matches on that form's formId for you.
Opt-in event types
Three event types can fire very often, so "every event" never includes them. An endpoint receives one only when its allow list names it and its match narrows by one of the keys below. Each needs an endpoint of its own: one opt-in type per endpoint, with no other types beside it.
| Event type | Match on one of | From |
|---|---|---|
realtime.message | topic or aggregate | Messaging (realtime broadcasts) |
content.changed | contentTypeId or locationId | Digital signage |
task.moved | projectId | Task boards |
For example, an endpoint that receives moves on one project's board:
{
"allow": ["task.moved"],
"deny": [],
"match": { "projectId": ["<project id>"] }
}The delivery
Each delivery is a JSON POST with two headers that matter: content-type: application/json and X-Pickcell-Signature. The body wraps the event:
{
"id": "<event id>",
"attemptId": "<attempt id>",
"attemptNo": 1,
"eventType": "message.delivered",
"idempotencyKey": "<idempotency key>",
"occurredAt": "2026-11-23T01:02:03.000Z",
"data": {
"messageId": "<message id>",
"channel": "SMS",
"status": "DELIVERED",
"receiver": "+61400000000",
"campaignId": null,
"occurredAt": "2026-11-23T01:02:03.000Z",
"createdAt": "2026-11-23T01:01:58.000Z"
}
}ididentifies the event. It is the same on every retry and resend, and on every endpoint that receives it.attemptIdandattemptNoidentify this try.attemptNocounts up across retries and resends.eventTypesays what happened, anddatacarries its details in the shape the product guide shows.occurredAtis when it happened, not when it was sent.
Verify the signature
The header is shaped t=<unix seconds>,v1=<hex>. The signature is an HMAC-SHA256, hex encoded, of the timestamp, a full stop and the raw request body, keyed with the endpoint's secret. Each attempt is signed afresh with a new timestamp.
- Verify the exact bytes you received, before any JSON parsing. A re-serialised body will not match.
- During a rotation the header carries more than one
v1=value. Accept the delivery if any of them matches. - Reject a timestamp outside your replay window. Five minutes is the window the SDK uses by default.
There is no curl sample here: verification happens in your receiver.
import { createHmac, timingSafeEqual } from 'node:crypto';
// header: the X-Pickcell-Signature value, e.g. "t=1763859723,v1=5f2b..."
export function verifyPickcellSignature(rawBody, header, secret, toleranceSeconds = 300) {
const parts = header.split(',').map((p) => p.trim().split('='));
const t = Number(parts.find(([k]) => k === 't')?.[1]);
const signatures = parts.filter(([k]) => k === 'v1').map(([, v]) => v);
if (!Number.isFinite(t) || Math.abs(Date.now() / 1000 - t) > toleranceSeconds) return false;
const expected = createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
return signatures.some(
(s) => s.length === expected.length && timingSafeEqual(Buffer.from(s), Buffer.from(expected)),
);
}
// A handler on any runtime with the Fetch API Request and Response.
export async function POST(request) {
const rawBody = await request.text(); // the exact bytes, before any JSON parsing
const header = request.headers.get('x-pickcell-signature') ?? '';
if (!verifyPickcellSignature(rawBody, header, process.env.PICKCELL_WEBHOOK_SECRET)) {
return new Response('invalid signature', { status: 400 });
}
const event = JSON.parse(rawBody);
// event.eventType tells you what happened; event.data carries the details.
return new Response(null, { status: 204 });
}import { verifyWebhookSignature } from '@pickcell/sdk/outsend';
// A handler on any runtime with the Fetch API Request and Response.
export async function POST(request: Request) {
const rawBody = await request.text(); // the exact bytes, before any JSON parsing
// Accepts a Headers instance; pass [newSecret, oldSecret] while rotating.
// The replay window defaults to five minutes.
if (!verifyWebhookSignature(rawBody, request.headers, process.env.PICKCELL_WEBHOOK_SECRET!)) {
return new Response('invalid signature', { status: 400 });
}
const event = JSON.parse(rawBody);
// event.eventType tells you what happened; event.data carries the details.
return new Response(null, { status: 204 });
}Rotate the secret
On the endpoint in the console, choose Rotate secret. The new secret is shown once. From then on each delivery is signed with both the new secret and the one it replaced, so a receiver still holding the old one keeps working. The old secret keeps signing until the next rotation.
- Rotate, and add the new secret to your receiver's secret store.
- Deploy a receiver that accepts either secret.
- Once it runs everywhere, remove the old secret from your receiver.
import { verifyWebhookSignature } from '@pickcell/sdk/outsend';
// While you move to the new secret, accept either one.
const ok = verifyWebhookSignature(rawBody, request.headers, [
process.env.PICKCELL_WEBHOOK_SECRET!, // the new secret
process.env.PICKCELL_WEBHOOK_SECRET_PREVIOUS!, // the one it replaces
]);Retries
A delivery counts as delivered when your endpoint answers with any 2xx status within 10 seconds. Any other status, a timeout or a connection error is a failure.
A failed delivery is tried again about 1 minute, 5 minutes, 30 minutes, 2 hours and 6 hours after each failure in turn, each delay varied by up to 20% either way. That is six attempts in all; after the sixth failure the delivery is marked failed, and you can resend it.
After 5 failures in a row, the endpoint is paused. The delivery that paused it is not retried, and events published while it is paused are not sent to it. After a cool-down the endpoint takes deliveries on trial: the first success resumes it, and a failure pauses it again. You can also choose Re-enable on the endpoint in the console. Either way, resend what failed.
Answer quickly with a 2xx and do the work afterwards, so a slow job never turns into a retry.
Test and resend
On an endpoint in the console:
- Send test event sends a
webhook.testevent to that endpoint only, whatever its filter says. Acknowledge it and ignore it. Its result appears under Deliveries. - Resend failed sends again every event whose deliveries to that endpoint failed, from the last 7 days, up to 500 at a time. Events the endpoint's filter no longer accepts are skipped.
- Deliveries lists what was sent and how your endpoint answered. Open one to see its payload and Resend it, even if it was delivered.
A resend gets a fresh set of six attempts. A resend is refused while the endpoint is paused: re-enable it or wait for the cool-down. An event still being retried cannot be resent until its retries finish. Events and their delivery history are kept for 30 days.
{
"endpointId": "<endpoint id>",
"test": true,
"sentAt": "2026-11-23T01:02:03.000Z"
}Ordering and duplicates
For each endpoint, events about the same thing are delivered in the order they happened: the same invoice, the same task, the same file, the same realtime topic, and in Events the same event, order or ticket. The next one waits until the one before it is delivered or has used all its attempts. A resend never holds up new events.
Events about different things, and every other event type, may arrive in any order. Use occurredAt to put them in sequence.
Delivery is at least once, so the same event can reach you more than once. Record each id you have handled and skip one you have seen.