Developers
Get results by webhook and check the signature
We POST every change to your address, signed so you know it's us.
About 5 min
Add your address
Go to Settings, then Developers, then Webhooks, paste an https address and press Save. Copy the signing secret.
Send a test event
Pick an event type, for example task.completed, and press Send test. Test events have the real shape with sample data.
Check the signature
Each request has a Kata-Signature header: t=timestamp,v1=signature. The signature is HMAC SHA-256 of timestamp.body with your secret.
import crypto from "node:crypto"; function verify(rawBody, header, secret) { const p = Object.fromEntries(header.split(",").map((x) => x.split("="))); const expected = crypto.createHmac("sha256", secret) .update(`${p.t}.${rawBody}`).digest("hex"); const fresh = Math.abs(Date.now() / 1000 - Number(p.t)) < 300; return fresh && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(p.v1)); }Answer quickly, skip repeats
Answer with a 2xx within a few seconds and do the work after. Each event has an id: skip ids you've seen.
Fix failed deliveries
Failed deliveries are retried for about 8 hours. The Webhooks panel lists each delivery with its error, and Retry now sends one again straight away.
Related guides
Something unclear? Email hello@kata.now.
All guides