Webhooks
Pass webhook_url to POST /v1/transcriptions and QuantClarity POSTs the finished transcription to that URL. The body is byte-identical to GET /v1/transcriptions/{id}, so one decoder serves both.
Headers
POST /your-endpoint HTTP/1.1 Content-Type: application/json; charset=utf-8 QC-Job-Id: tr_01H... QC-Signature: t=1787758525,v1=6af330d581f26baf...
Verifying a delivery
v1 is HMAC-SHA256 over <t>.<raw body>, keyed with your secret string exactly as issued — prefix included, no base64 decoding.
Verify against the raw bytes rather than re-serialized JSON, bound t to ±5 minutes, and compare in constant time.
import { createHmac, timingSafeEqual } from "node:crypto";
export function verify(rawBody: Buffer, header: string, secret: string) {
const parts: Record<string, string> = {};
for (const field of header.split(",")) {
const eq = field.indexOf("=");
if (eq > 0) parts[field.slice(0, eq).trim()] = field.slice(eq + 1).trim();
}
const t = Number(parts.t);
if (!parts.v1 || !/^[0-9a-f]{64}$/.test(parts.v1)) return false;
if (!Number.isFinite(t) || Math.abs(Date.now() / 1000 - t) > 300) return false;
const expected = createHmac("sha256", secret)
.update(`${parts.t}.`)
.update(rawBody)
.digest();
const provided = Buffer.from(parts.v1, "hex");
return expected.length === provided.length &&
timingSafeEqual(expected, provided);
}Retries
Any 2xx accepts the delivery. Anything else — including a 401 you return because verification failed — spends an attempt. Retries back off 30s, 60s, 120s, 240s, 480s, then 900s, for eight attempts (~45 minutes). After that the delivery is marked failed; the transcription remains fetchable with GET.
Duplicates
Delivery is at-least-once. A redelivery carries the same QC-Job-Id and the same status, so use the job id as your idempotency key.
Test events
The dashboard can send a signed payload with test: true to any endpoint, so you can validate verification before trusting production traffic.
Need a secret or a test event? Open the webhook dashboard.