Skip to main content
Follow these steps to run your first transcription through the HearDraft API.
1

Generate a workspace API key

Sign in to an account with an active annual plan, open Developers → API Keys, and create a new key. Store it as a server-side environment variable (HEARDRAFT_API_KEY).
Never embed a HearDraft API key in browser code, mobile apps, or public repositories. All API requests must originate from your backend.
2

Submit a recording

Send the raw audio or video bytes to POST /api/v1/transcriptions. Include filename and optional language (auto by default) in the query string, along with Content-Type, Content-Length, and a unique Idempotency-Key.
A successful upload returns HTTP 202 Accepted with a Location header pointing to /api/v1/transcriptions/{id}.
3

Poll until status is ready

Poll GET /api/v1/transcriptions/{id} every 3–5 seconds while status is queued or running.
4

Consume timestamped segments

When status becomes ready, result contains the full text, durationSeconds, and segments with millisecond timing: