Rate the live transcription
/v2/live/{id}/feedback Tells us whether a transcription met your expectations: good or bad, and optionally why. One rating per transcription: rating it again replaces the previous rating. The rating is returned by GET /v2/live/{id} (feedback), and deleted with the transcription. Gladia uses the bad ones to find and fix quality problems: say what was wrong (a name, a number, a language).
Authentication: your API key in the x-gladia-key header (Authentication).
Example
curl -X POST https://eu1.api.gladia.io/v2/live/0199d7a2-5c3e-7b41-9f0a-3c2d1e4f5a6b/feedback \ -H "x-gladia-key: $GLADIA_API_KEY" \ -H "content-type: application/json" \ -d '{ "rating": "bad", "comment": "The speaker name Siobhan is transcribed as show on." }'import os
import requests
API_URL = os.environ.get("GLADIA_API_URL", "https://eu1.api.gladia.io")response = requests.post( f"{API_URL}/v2/live/0199d7a2-5c3e-7b41-9f0a-3c2d1e4f5a6b/feedback", headers={"x-gladia-key": os.environ["GLADIA_API_KEY"]}, json={ "rating": "bad", "comment": "The speaker name Siobhan is transcribed as show on." }, timeout=10,)response.raise_for_status()print(response.json())const API_URL = process.env.GLADIA_API_URL ?? "https://eu1.api.gladia.io";const response = await fetch(`${API_URL}/v2/live/0199d7a2-5c3e-7b41-9f0a-3c2d1e4f5a6b/feedback`, { method: "POST", headers: { "x-gladia-key": process.env.GLADIA_API_KEY, "content-type": "application/json", }, body: JSON.stringify({ "rating": "bad", "comment": "The speaker name Siobhan is transcribed as show on." }),});if (!response.ok) { throw new Error(`${response.status} ${await response.text()}`);}console.log(await response.json());Try it
Parameters
-
idstring · path requiredIdentifier of the live transcription to rate.
Body
-
ratingstring requiredgood: the transcription met your expectations;bad: it did not.one of:
good,bad -
commentstringWhy, in your words (at most 2000 characters): what was wrong or right.
default:
null
Responses
200 The rating, as stored.
-
ratingstring requiredgoodorbad.one of:
good,bad -
commentstring requiredWhy, as you wrote it; null without a comment.
-
rated_atstring requiredWhen it was rated (ISO 8601, UTC); a new rating replaces the previous one.
{ "rating": "good", "comment": "string", "rated_at": "2026-10-12T09:04:17.210Z"} 400 The body is invalid (validation_errors lists why: an unknown field, a rating other than good or bad, a comment over 2000 characters), or this cluster keeps no ratings (message says so): do not retry.
{ "statusCode": 400, "timestamp": "2026-10-12T09:04:17.210Z", "path": "/v2/live", "message": "Invalid parameter(s). See validation_errors for more details.", "request_id": "G-1a2b3c4d", "validation_errors": [ "sample_rate Input should be 8000, 16000, 32000, 44100 or 48000" ], "error": "string"}401 No API key, or an unknown one.
{ "statusCode": 400, "timestamp": "2026-10-12T09:04:17.210Z", "path": "/v2/live", "message": "Invalid parameter(s). See validation_errors for more details.", "request_id": "G-1a2b3c4d", "validation_errors": [ "sample_rate Input should be 8000, 16000, 32000, 44100 or 48000" ], "error": "string"}403 The key may not do this (its scopes, or the addresses it may be used from).
{ "statusCode": 400, "timestamp": "2026-10-12T09:04:17.210Z", "path": "/v2/live", "message": "Invalid parameter(s). See validation_errors for more details.", "request_id": "G-1a2b3c4d", "validation_errors": [ "sample_rate Input should be 8000, 16000, 32000, 44100 or 48000" ], "error": "string"}404 No such session for your account.
{ "statusCode": 400, "timestamp": "2026-10-12T09:04:17.210Z", "path": "/v2/live", "message": "Invalid parameter(s). See validation_errors for more details.", "request_id": "G-1a2b3c4d", "validation_errors": [ "sample_rate Input should be 8000, 16000, 32000, 44100 or 48000" ], "error": "string"}503 Ratings cannot be stored right now: try again.
{ "statusCode": 400, "timestamp": "2026-10-12T09:04:17.210Z", "path": "/v2/live", "message": "Invalid parameter(s). See validation_errors for more details.", "request_id": "G-1a2b3c4d", "validation_errors": [ "sample_rate Input should be 8000, 16000, 32000, 44100 or 48000" ], "error": "string"}