Developer docs

Webhooks

Hear about decisions, approvals, comments and new versions the moment they happen.

Updated

Subscribe

Add a webhook in Settings → Integrations, or from code with POST /v1/webhooks. Each one has its own signing secret. GET /v1/events lists every event type.

What arrives

Each event is a JSON POST with three headers:

  • TrulyFinal-Event: the type, such as decision.made.
  • TrulyFinal-Delivery: this delivery's id. The body's id is the event's, the same on every retry, so use it to skip duplicates.
  • TrulyFinal-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256 of "t.body">, keyed with the signing secret.
{
  "id": "evt_01jd0…",
  "type": "decision.made",
  "createdAt": "2026-11-15T09:30:00.000Z",
  "studio": {
    "id": "org_…",
    "name": "North Studio"
  },
  "actor": {
    "type": "reviewer",
    "name": "Carla Client",
    "email": "carla@client.com"
  },
  "project": {
    "id": "prj_…",
    "name": "Spring campaign",
    "reference": "PO-1042",
    "url": "https://app.trulyfinal.com/projects/prj_…"
  },
  "file": {
    "id": "ast_…",
    "name": "Brochure",
    "externalId": "crm-42",
    "url": "https://app.trulyfinal.com/files/ast_…?v=2"
  },
  "version": {
    "id": "ver_…",
    "number": 2,
    "filename": "brochure-v2.pdf"
  },
  "review": {
    "id": "rnd_…",
    "stage": "Client review",
    "status": "approved",
    "dueAt": null
  },
  "data": {
    "value": "approved",
    "decision": {
      "id": "dec_…",
      "value": "approved",
      "note": null,
      "pages": null
    }
  }
}

Approved, and approved with changes

A reviewer can approve a version on condition of small changes. Since November 2026 that is its own state:

  • A file's status is one of draft, in_review, changes_requested, approved_with_changes, approved or delivered. These files used to report approved.
  • approval.sealed fires for both and carries data.outcome: approved or approved_with_changes. Treat only approved as final: the next version goes back to that reviewer to confirm.
  • A file that is approved with changes cannot be delivered; the delivery request answers 409.

Check the signature

import crypto from "node:crypto";

// header: TrulyFinal-Signature: t=1763200000,v1=5f2b…
function verify(secret, header, rawBody) {
  const parts = Object.fromEntries(header.split(",").map((kv) => kv.split("=")));
  const expected = crypto.createHmac("sha256", secret).update(`${parts.t}.${rawBody}`).digest("hex");
  const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;
  return fresh && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1 ?? ""));
}

Sign the raw body exactly as it arrived, before any JSON parsing, and refuse anything older than five minutes.

Retries

Answer with any 2xx within 10 seconds. Anything else is retried after 1 minute, 5 minutes, 30 minutes, then 2, 6, 12 and 24 hours: eight attempts over about two days. The settings page lists recent deliveries with what your server answered, and can send one again. Send test event sends a ping.

Chat channels, no code

Paste a Slack, Discord or Google Chat incoming-webhook address, or a Basecamp chatbot's address, instead of your own URL. The channel then gets a short message for each event.

Events

TypeWhen
project.created project.completed project.archived project.deletedA project starts, is marked complete, archived or deleted.
version.uploaded version.ready version.processing_failedA file or new version arrives, is ready to review, or couldn't be prepared.
round.started stage.advanced reviewer.invitedA version goes out for review, moves to the next stage, or gets new reviewers.
decision.made decision.withdrawn round.overriddenA reviewer approves or asks for changes (data.value), takes it back, or the team records it for them. On a multi-page PDF a reviewer can decide on some pages: data.decision.pages lists them (1 is the first page), and is null when the decision covers the whole file. The file is approved when approval.sealed arrives.
approval.sealed approval.revokedA file is approved and its approval record sealed, or the approval is withdrawn.
round.overdueA review passes its due date.
comment.created comment.replied comment.resolvedComments, with the text in data.comment.
delivery.sent delivery.downloadedFinal files are delivered, and the client downloads them.

Next: JavaScript and TypeScript

Chat