API
One endpoint to submit audio, one to read the result. Everything the web app does to a recording happens the same way here: transcription on hardware we own, speaker labels when more than one voice is detected, and a Markdown summary. The audio file is deleted as soon as the transcript is ready.
Base URL and authentication
https://decibelnotes.com
Sign in on the web app, open Your account, and click generate key. Keys start with dk_. Send the key on every request:
Authorization: Bearer dk_your_key_here
Each account has one key. Clicking regenerate replaces it immediately; the old key stops working the moment the new one is issued. Requests without a valid key get 401 {"error":"invalid API key"}.
Billing and limits
API jobs are metered against your plan exactly like uploads in the web app, and they appear in your web history. The audio's duration is charged when the upload is accepted. If the file would exceed your remaining minutes, the request is refused with 403 and nothing is charged.
| Plan | Max file size | Minutes | Results kept |
|---|---|---|---|
| Trial | 25 MB | 20 total | 72 hours |
| Pay as you go | 99 MB | Prepaid credit | 30 days |
| Personal | 99 MB | 600 per 30 days | 90 days |
| Pro | 99 MB | 2,400 per 30 days | 1 year |
Uploads are also limited to 20 per hour per IP address, shared with the web app. Exceeding it returns 429.
Submit a recording
POST /v1/transcripts Content-Type: multipart/form-data
| Field | Required | Description |
|---|---|---|
file | yes | The recording. Accepted extensions: mp3, m4a, wav, aac, flac, ogg, opus, wma, mp4, mov, m4v, webm, amr, 3gp, aiff, caf. The filename must carry one of these extensions; the file's actual audio stream is then probed, and anything unreadable is rejected. |
template | no | Shape of the summary. One of notes (default), meeting, interview, dictation, lecture. Unknown values fall back to notes. |
webhook_url | no | An http:// or https:// URL to POST the finished result to. Values that don't start with one of those are ignored. |
Send template and webhook_url before file in the multipart body if your client lets you order fields; the file is streamed to disk as it arrives, so this isn't required, but it keeps rejected uploads cheap.
Response
200 OK
{
"job_id": "3f0e1c9a-…",
"status": "queued",
"poll_url": "/v1/transcripts/3f0e1c9a-…"
}
Errors
| Status | Body | Meaning |
|---|---|---|
| 400 | unsupported file type '.xyz' | Extension not in the accepted list. |
| 400 | no file uploaded | Multipart body had no file field. |
| 400 | could not read audio from this file | The container was accepted but no decodable audio was found. |
| 400 | upload aborted | Connection dropped mid-upload. |
| 403 | trial limit reached (…), balance too low (…), monthly allowance reached (…) | Not enough minutes left on the plan for this file's duration. The message states how many are left. |
| 413 | file too large — … | Over the plan's size cap. |
| 429 | too many uploads from this address; try later | Per-IP hourly limit. |
All error bodies are JSON of the form {"error": "message"}.
Read the result
GET /v1/transcripts/{job_id}
Returns the job's current state. While processing:
200 OK
{
"job_id": "3f0e1c9a-…",
"status": "transcribing",
"error": null,
"filename": "call.m4a",
"duration_sec": 1843.2,
"template": "meeting"
}
Once status is done, two more fields appear:
{
…,
"status": "done",
"transcript": "Speaker 1: Thanks for joining…\nSpeaker 2: …",
"summary": "## Meeting Summary\n…"
}
| Field | Description |
|---|---|
status | Progresses through queued, converting, transcribing, diarizing, summarizing, then ends at done or error. |
error | Null unless status is error, then a short reason. |
duration_sec | Length of the audio as measured on upload. This is what was metered. |
transcript | Plain text. When more than one voice is detected, each turn is prefixed Speaker N:. Single-voice recordings have no prefixes. |
summary | Markdown, with headings chosen by the template. |
Unknown job IDs, jobs belonging to another account, and jobs past their retention window all return 404 {"error":"unknown job"}. The response is identical in each case by design.
Processing time depends on recording length and the current queue; two recordings are processed at a time. Polling every 5 to 10 seconds is plenty. Subtitle files (SRT) are generated but currently only downloadable from the web app, not the API.
Webhook
If you supplied webhook_url, DecibelNotes POSTs a JSON body to it once, when the job finishes:
POST {your webhook_url}
Content-Type: application/json
User-Agent: DecibelNotes/1.0
{
"job_id": "3f0e1c9a-…",
"status": "done",
"filename": "call.m4a",
"duration_sec": 1843.2,
"error": null,
"transcript": "…",
"summary": "…"
}
On failure the same body arrives with "status": "error", an error message, and no transcript or summary. Minutes charged for a failed job are refunded automatically. Delivery details:
- Your endpoint has 30 seconds to answer. Any 2xx counts as delivered.
- A non-2xx or timeout is retried once, 10 seconds later. After that, delivery is abandoned and the result remains available by polling.
- Requests are not signed. To verify a delivery, fetch
GET /v1/transcripts/{job_id}with your key and compare.
Examples
curl
curl https://decibelnotes.com/v1/transcripts \ -H "Authorization: Bearer $DN_KEY" \ -F template=meeting \ -F file=@call.m4a curl https://decibelnotes.com/v1/transcripts/JOB_ID \ -H "Authorization: Bearer $DN_KEY"
Python
import os, time, requests
KEY = os.environ["DN_KEY"]
H = {"Authorization": f"Bearer {KEY}"}
with open("call.m4a", "rb") as f:
r = requests.post("https://decibelnotes.com/v1/transcripts",
headers=H, data={"template": "meeting"},
files={"file": ("call.m4a", f)})
r.raise_for_status()
job = r.json()["job_id"]
while True:
j = requests.get(f"https://decibelnotes.com/v1/transcripts/{job}", headers=H).json()
if j["status"] in ("done", "error"):
break
time.sleep(8)
print(j.get("summary") or j["error"])
Node
const KEY = process.env.DN_KEY;
const H = { Authorization: `Bearer ${KEY}` };
const form = new FormData();
form.append("template", "interview");
form.append("file", new Blob([await fs.promises.readFile("call.m4a")]), "call.m4a");
const { job_id } = await (await fetch("https://decibelnotes.com/v1/transcripts",
{ method: "POST", headers: H, body: form })).json();
let j;
do {
await new Promise(r => setTimeout(r, 8000));
j = await (await fetch(`https://decibelnotes.com/v1/transcripts/${job_id}`, { headers: H })).json();
} while (!["done", "error"].includes(j.status));
console.log(j.summary ?? j.error);
What the API does not do
- No text-to-speech. That feature is web-only for now.
- No list endpoint. Keep the
job_idfrom the submit response; the web history shows API jobs too. - No deletion endpoint. Results expire on the schedule above; the audio itself is gone as soon as the transcript exists.
Questions or a feature you need? Email hello@decibelnotes.com.