HearDraft transcription API
Submit an audio or video file from your backend and retrieve its transcript with timestamps.
Quickstart
API access is included with active annual plans. Create a key in Developers and keep it on your server.
1. Submit a recording
curl --request POST \
'https://heardraft.com/api/v1/transcriptions?filename=interview.wav&language=auto' \
--header "Authorization: Bearer $HEARDRAFT_API_KEY" \
--header 'Content-Type: audio/wav' \
--header 'Idempotency-Key: interview-001' \
--data-binary @interview.wavHTTP 202 means the task was accepted. Save the returned id or Location header.
2. Get the transcript
curl 'https://heardraft.com/api/v1/transcriptions/<id>' \
--header "Authorization: Bearer $HEARDRAFT_API_KEY"Poll every few seconds while the task is queued or running. A ready result contains text, duration and timestamped segments. The task also appears in your HearDraft workspace.
API reference
POST /api/v1/transcriptions- Send the raw file as the body. Set
filenamein the query. Setlanguagetoautoor a supported code such asenorzh. SendContent-Length, a mediaContent-Typeand anIdempotency-Key. Reuse the same key and file when retrying the same upload. GET /api/v1/transcriptions/{id}- Use an API key for the workspace that submitted the task. The response includes
status,expiresAt,resultanderror. Segment times are in milliseconds.
Errors
- 401 or 403
- The key is invalid or the annual plan is inactive.
- 404
- The task is unavailable for this workspace or has expired.
- 409
- The same request key is already uploading or was used with different file details.
- 411, 413 or 415
- Check the file size and media headers.
- 429 or 503
- Wait briefly before retrying with the same key.
Limits
100 MB and up to 10 hours per request. Up to 120 requests per minute per workspace. Saved recordings and results have no 3-day expiry.
FAQ
- Can I call the API from my frontend?
- Call the API from your backend. An API key grants access to transcription tasks in its workspace, so keep it out of browser code.
- Can I edit an API transcript in HearDraft?
- Yes. Find the transcription in the Tasks view of the same workspace to review the recording and edit or export the transcript.