Webhooks
Webhooks send what happens in TrackLin.es to your own tools as it happens: a ticket moving, a comment, a sprint starting. Organization admins set them up in Settings → Webhooks, on the Pro and Enterprise plans.
Set one up
- In Settings → Webhooks, enter your endpoint’s address. It must be
https, and reachable from the internet. - Pick the events to send.
- Copy the signing secret. It’s shown once; New secret makes another (the old one stops working).
- Send a test posts a
pingevent, and Deliveries shows what was sent and what your endpoint answered.
An organization can have up to 10 webhooks.
Events
ticket.created: a ticket was made, on a board or in the backlog.ticket.updated: its title, description, type, priority, labels, estimate, timebox or due date changed.ticket.moved: it moved column or board, or went to the backlog (from_column_id, to_column_id).ticket.assigned: it was assigned, claimed or unassigned.ticket.done: it reached Done, or was closed as done or won’t do.ticket.deleted: it went to the bin.comment.created: someone commented on a ticket.sprint.started: a board’s sprint started.sprint.closed: a sprint closed, by hand or automatically.roadmap.update_published: a roadmap update (health and note) was posted.
What’s sent
A POST with a JSON body:
{
"id": "delivery id",
"event": "ticket.moved",
"created_at": "2026-10-25T14:02:00Z",
"data": { "ticket": { "key": "TL-123", "title": "…", … }, "from_column_id": "…", "to_column_id": "…" }
}A ticket is sent as the API returns it. Headers: TrackLines-Event, TrackLines-Delivery (the id, the same on a retry) and TrackLines-Signature. Answer with any 2xx within 10 seconds; do slow work after answering.
Check the signature
TrackLines-Signature: t=<unix time>,v1=<signature>. The signature is the hex HMAC-SHA256 of <t>.<the raw body>, keyed with your signing secret. Recompute it, compare in constant time, and refuse old timestamps so a captured request can’t be replayed.
import { createHmac, timingSafeEqual } from 'node:crypto';
// req.rawBody: the request body exactly as received (not re-serialised JSON)
export function verify(header, rawBody, secret, toleranceSeconds = 300) {
const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')));
if (Math.abs(Date.now() / 1000 - Number(parts.t)) > toleranceSeconds) return false; // too old: a replay
const expected = createHmac('sha256', secret).update(`${parts.t}.${rawBody}`).digest('hex');
return timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1 ?? ''));
}func verify(header string, body []byte, secret string) bool {
var t, v1 string
for _, p := range strings.Split(header, ",") {
k, v, _ := strings.Cut(p, "=")
switch k {
case "t":
t = v
case "v1":
v1 = v
}
}
ts, err := strconv.ParseInt(t, 10, 64)
if err != nil || math.Abs(float64(time.Now().Unix()-ts)) > 300 {
return false // too old: a replay
}
mac := hmac.New(sha256.New, []byte(secret))
mac.Write([]byte(t + "." + string(body)))
return hmac.Equal([]byte(hex.EncodeToString(mac.Sum(nil))), []byte(v1))
}Retries
- Anything but a
2xx(or no answer in 10 seconds) is retried after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours. - The same delivery id is sent each time, so you can ignore one you’ve already handled.
- After 5 failures in a row the webhook is turned off and your organization’s admins are told. Turn it back on once the endpoint is fixed; Send again resends any delivery.
- Deliveries are kept for 30 days.