← DecibelNotes

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.

PlanMax file sizeMinutesResults kept
Trial25 MB20 total72 hours
Pay as you go99 MBPrepaid credit30 days
Personal99 MB600 per 30 days90 days
Pro99 MB2,400 per 30 days1 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
FieldRequiredDescription
fileyesThe 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.
templatenoShape of the summary. One of notes (default), meeting, interview, dictation, lecture. Unknown values fall back to notes.
webhook_urlnoAn 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

StatusBodyMeaning
400unsupported file type '.xyz'Extension not in the accepted list.
400no file uploadedMultipart body had no file field.
400could not read audio from this fileThe container was accepted but no decodable audio was found.
400upload abortedConnection dropped mid-upload.
403trial 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.
413file too large — …Over the plan's size cap.
429too many uploads from this address; try laterPer-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…"
}
FieldDescription
statusProgresses through queued, converting, transcribing, diarizing, summarizing, then ends at done or error.
errorNull unless status is error, then a short reason.
duration_secLength of the audio as measured on upload. This is what was metered.
transcriptPlain text. When more than one voice is detected, each turn is prefixed Speaker N:. Single-voice recordings have no prefixes.
summaryMarkdown, 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:

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

Questions or a feature you need? Email hello@decibelnotes.com.