← Docs

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

  1. In Settings → Webhooks, enter your endpoint’s address. It must be https, and reachable from the internet.
  2. Pick the events to send.
  3. Copy the signing secret. It’s shown once; New secret makes another (the old one stops working).
  4. Send a test posts a ping event, and Deliveries shows what was sent and what your endpoint answered.

An organization can have up to 10 webhooks.

Events

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