Guides

Webhooks

Get a signed request to your server the moment a transcript is ready, instead of polling.

Code examples use API and HEADERS (headers in JavaScript), set up as in the Quickstart.

How webhooks work

Add a webhook_url when you create a transcript. When the transcript finishes, ScribeFiles sends a POST with a JSON body to that address. It must be a public https:// URL.

curl https://scribefiles.com/v1/transcripts \
  -H "Authorization: Bearer $SCRIBEFILES_API_KEY" \
  -F file=@meeting.mp3 \
  -F webhook_url=https://example.com/hooks/scribefiles

Events

TypeSent when
transcript.completedThe transcript is ready. Retrieve it or export it.
transcript.failedTranscription failed. data.error says why.

Payload

data is the transcript object, without the text, to keep the request small. Fetch the full transcript with its id.

Request body
{
  "type": "transcript.completed",
  "created_at": "2026-11-07T10:42:13Z",
  "data": {
    "id": "9f2c6d0e4b5a4e1f8a7b3c2d1e0f9a8b",
    "object": "transcript",
    "title": "Weekly sync",
    "status": "completed",
    "duration_seconds": 2538.4,
    "detected_language": "en",
    "url": "https://scribefiles.com/t/9f2c6d0e4b5a4e1f8a7b3c2d1e0f9a8b",
    "...": "other transcript fields"
  }
}

Responding

  • Reply with any 2xx status within 15 seconds. Do slow work (like downloading the transcript) after you've replied.
  • If your server doesn't reply with a 2xx, we try again after 30 seconds and again after 5 minutes: 3 attempts in all.
  • Each attempt for the same event has the same webhook-id, so you can ignore one you've already handled.

Verifying the signature

Anyone can send a request to your URL, so check that each one really came from ScribeFiles. Every webhook carries three headers:

HeaderContents
webhook-idA unique ID for this event.
webhook-timestampWhen it was sent, in seconds since 1970 (UTC).
webhook-signaturev1, followed by the signature.

The signature is an HMAC-SHA256 of {webhook-id}.{webhook-timestamp}.{raw body}, keyed with your webhook signing secret (find it in Settings › API; it starts with whsec_, and the key is the base64 part after that prefix), then base64-encoded. Use the raw request body exactly as received, before any JSON parsing.

# Webhooks are sent by ScribeFiles to your server.
# Verify them in your server code: see the Python and JavaScript tabs.
The format follows the open Standard Webhooks specification, so its official libraries for many languages can verify our webhooks too.

Rotating the secret

If your secret leaks, click Rotate in Settings › API. Webhooks are signed with the new secret from then on, so update your server at the same time.

Questions about the API? Contact us.