Add a webhook_url to the request
Works on supported video link requests, chunked upload reservations and as a form field on one-shot uploads. It cannot be combined with reuse_recent. See webhook request parameters before adding the URL to your integration.
Choose webhooks for a background workflow that continues after the original request finishes: processing interview uploads, preparing an episode archive or collecting transcripts from a list of social videos. Persist the transcription id with your own job record so the callback can be associated with the right user action.
Use the final public HTTPS endpoint rather than a redirecting address. The service checks the destination at creation and on delivery. During development, localhost is not a valid receiver. The example below uses a file upload so the same notification workflow can be tested with a recording under your control.
curl -X POST "https://api.transcript1.com/v1/transcriptions" \
-H "Authorization: Bearer $TRANSCRIPT1_API_KEY" \
-F [email protected] \
-F webhook_url=https://example.com/hooks/transcript1Receive the event
data is the transcription object without the transcript. Use data.id and type to ignore duplicate deliveries, then fetch the completed transcript through the API.
Design the handler for at-least-once delivery. A request can reach your server, be processed and still be retried if the response arrives after the ten-second timeout. Persist a deduplication key based on the transcription id and event type before performing an action such as publishing an article or notifying a user.
After signature verification, durably record or enqueue the event and return a 2xx response promptly. Fetch the transcript in a background task using data.id. For transcription.failed, inspect data.error and update your job status. A canceled transcription sends no callback, so your cancellation path must update its own state.
X-Transcript1-Signature: t=<unix seconds>,v1=<hex digest>
{
"type": "transcription.completed",
"created_at": "2026-10-13T09:30:04.000Z",
"data": {
"id": "tr_8fK2Lm0PqRsTuVwXyZaBcD",
"object": "transcription",
"status": "completed",
"transcript_source": "speech_to_text",
"billed_minutes": 4,
"error": null
}
}Verify the HMAC-SHA256 signature
Sign the string t, a dot, then the raw body with HMAC-SHA256 and your whsec_ secret. Compare in constant time. Reject timestamps far from the current time. The full signature-verification guide includes header validation and complete examples.
Read the request body exactly as delivered before a JSON parser changes it. Re-serializing parsed JSON can alter whitespace or key order and break verification. Validate the timestamp and signature header, compare equal-length digests in constant time, and parse the body only after the signature check succeeds.
The abbreviated digest calculation below assumes you already extracted and validated t and v1. The full documentation includes complete Node.js and Python verification examples with a five-minute timestamp tolerance. Use the full whsec_ secret, including its prefix. Rotating the team secret changes the key used for subsequent deliveries immediately.
const expected = crypto
.createHmac('sha256', secret)
.update(`${t}.${rawBody}`)
.digest('hex');
const valid = v1.length === expected.length
&& crypto.timingSafeEqual(Buffer.from(v1), Buffer.from(expected));Test the receiver’s failure paths before relying on it
Exercise a completed event, a failed event and a duplicate delivery against your handler. Confirm that the same completion does not publish twice and that a failed transcription does not trigger a fetch-and-publish path with no transcript. Check signature rejection separately from application processing errors.
The delivery timeout is ten seconds. Avoid waiting for slow indexing or model work before acknowledging the request. A durable queue gives you a place to retry downstream work after acknowledging the webhook. That queue is part of your application; the service’s webhook retry schedule is not a replacement for it.
Non-2xx responses, connection errors and timeouts cause retries after 2, 4, 8, 16 and 32 minutes, for six total attempts. Redirects are not followed. Log the job id, event type and delivery outcome so you can distinguish a receiver problem from a transcription problem without logging your signing secret.
If delivery attempts are exhausted, your application can reconcile known job ids through the GET transcription endpoint. Maintain those ids from creation rather than making callback delivery the only record that a job exists. This also lets an operator investigate a missing notification without submitting the media again.