[{"data":1,"prerenderedAt":1010},["ShallowReactive",2],{"navigation":3,"\u002Fdocs\u002Fapi-reference\u002Ferrors":235,"surround-\u002Fdocs\u002Fapi-reference\u002Ferrors":1007},[4],{"title":5,"path":6,"stem":7,"children":8,"page":18},"Docs","\u002Fdocs","docs",[9,33,68,95,130,161,208],{"title":10,"path":11,"stem":12,"children":13,"page":18,"type":32},"Start","\u002Fdocs\u002Fstart","docs\u002F1.start",[14,20,24,28],{"title":15,"path":16,"stem":17,"new":18,"type":19,"children":-1},"Get started with Lanson Live API","\u002Fdocs\u002Fstart\u002Fquickstart","docs\u002F1.start\u002F2.quickstart",false,"page",{"title":21,"path":22,"stem":23,"new":18,"type":19,"children":-1},"Authentication","\u002Fdocs\u002Fstart\u002Fauthentication","docs\u002F1.start\u002F3.authentication",{"title":25,"path":26,"stem":27,"new":18,"type":19,"children":-1},"Choose an API","\u002Fdocs\u002Fstart\u002Fchoose-an-api","docs\u002F1.start\u002F5.choose-an-api",{"title":29,"path":30,"stem":31,"new":18,"type":19,"children":-1},"Pricing","\u002Fdocs\u002Fstart\u002Fpricing","docs\u002F1.start\u002F6.pricing","group",{"title":34,"path":35,"stem":36,"children":37,"new":18,"type":32},"Realtime","\u002Fdocs\u002Frealtime","docs\u002F2.realtime\u002F1.index",[38,40,44,48,52,56,60,64],{"title":39,"path":35,"stem":36,"new":18,"type":19,"children":-1},"Realtime Overview",{"title":41,"path":42,"stem":43,"new":18,"type":19,"children":-1},"Realtime Quickstart","\u002Fdocs\u002Frealtime\u002Fquickstart","docs\u002F2.realtime\u002F2.quickstart",{"title":45,"path":46,"stem":47,"new":18,"type":19,"children":-1},"Connection Lifecycle","\u002Fdocs\u002Frealtime\u002Fconnection-lifecycle","docs\u002F2.realtime\u002F3.connection-lifecycle",{"title":49,"path":50,"stem":51,"new":18,"type":19,"children":-1},"Audio Input","\u002Fdocs\u002Frealtime\u002Faudio-input","docs\u002F2.realtime\u002F4.audio-input",{"title":53,"path":54,"stem":55,"new":18,"type":19,"children":-1},"Transcript Lifecycle","\u002Fdocs\u002Frealtime\u002Ftranscript-lifecycle","docs\u002F2.realtime\u002F5.transcript-lifecycle",{"title":57,"path":58,"stem":59,"new":18,"type":19,"children":-1},"Realtime Translation","\u002Fdocs\u002Frealtime\u002Frealtime-translation","docs\u002F2.realtime\u002F6.realtime-translation",{"title":61,"path":62,"stem":63,"new":18,"type":19,"children":-1},"Session Configuration","\u002Fdocs\u002Frealtime\u002Fsession-configuration","docs\u002F2.realtime\u002F7.session-configuration",{"title":65,"path":66,"stem":67,"new":18,"type":19,"children":-1},"Handling Interruptions & Silence","\u002Fdocs\u002Frealtime\u002Finterruptions-silence","docs\u002F2.realtime\u002F8.interruptions-silence",{"title":69,"path":70,"stem":71,"children":72,"new":18,"type":32},"Recorded","\u002Fdocs\u002Frecorded","docs\u002F3.recorded\u002F1.index",[73,75,79,83,87,91],{"title":74,"path":70,"stem":71,"new":18,"type":19,"children":-1},"Recorded Overview",{"title":76,"path":77,"stem":78,"new":18,"type":19,"children":-1},"Transcribe Audio","\u002Fdocs\u002Frecorded\u002Ftranscribe-audio","docs\u002F3.recorded\u002F2.transcribe-audio",{"title":80,"path":81,"stem":82,"new":18,"type":19,"children":-1},"Timestamps & Speakers","\u002Fdocs\u002Frecorded\u002Ftimestamps-speakers","docs\u002F3.recorded\u002F3.timestamps-speakers",{"title":84,"path":85,"stem":86,"new":18,"type":19,"children":-1},"Subtitles","\u002Fdocs\u002Frecorded\u002Fsubtitles","docs\u002F3.recorded\u002F4.subtitles",{"title":88,"path":89,"stem":90,"new":18,"type":19,"children":-1},"Recorded Translation","\u002Fdocs\u002Frecorded\u002Ftranslation","docs\u002F3.recorded\u002F5.translation",{"title":92,"path":93,"stem":94,"new":18,"type":19,"children":-1},"Structured Results","\u002Fdocs\u002Frecorded\u002Fstructured-results","docs\u002F3.recorded\u002F6.structured-results",{"title":96,"path":97,"stem":98,"children":99,"new":18,"type":32},"Concepts","\u002Fdocs\u002Fconcepts","docs\u002F4.concepts\u002F1.index",[100,102,106,110,114,118,122,126],{"title":101,"path":97,"stem":98,"new":18,"type":19,"children":-1},"Voice Context Layer",{"title":103,"path":104,"stem":105,"new":18,"type":19,"children":-1},"Stable vs. Partial Text","\u002Fdocs\u002Fconcepts\u002Fstable-vs-partial-text","docs\u002F4.concepts\u002F2.stable-vs-partial-text",{"title":107,"path":108,"stem":109,"new":18,"type":19,"children":-1},"StableStream™","\u002Fdocs\u002Fconcepts\u002Fstablestream","docs\u002F4.concepts\u002F3.stablestream",{"title":111,"path":112,"stem":113,"new":18,"type":19,"children":-1},"Context-Aware Processing","\u002Fdocs\u002Fconcepts\u002Fcontext-aware-processing","docs\u002F4.concepts\u002F4.context-aware-processing",{"title":115,"path":116,"stem":117,"new":18,"type":19,"children":-1},"Understanding Latency","\u002Fdocs\u002Fconcepts\u002Flatency","docs\u002F4.concepts\u002F5.latency",{"title":119,"path":120,"stem":121,"new":18,"type":19,"children":-1},"Live Translation","\u002Fdocs\u002Fconcepts\u002Flive-translation","docs\u002F4.concepts\u002F6.live-translation",{"title":123,"path":124,"stem":125,"new":18,"type":19,"children":-1},"Trinity Engine","\u002Fdocs\u002Fconcepts\u002Ftrinity-engine","docs\u002F4.concepts\u002F7.trinity-engine",{"title":127,"path":128,"stem":129,"new":18,"type":19,"children":-1},"LiveFinal™","\u002Fdocs\u002Fconcepts\u002Flivefinal","docs\u002F4.concepts\u002F8.livefinal",{"title":131,"path":132,"stem":133,"children":134,"new":18,"type":32},"Guides","\u002Fdocs\u002Fguides","docs\u002F5.guides\u002F1.index",[135,137,141,145,149,153,157],{"title":136,"path":132,"stem":133,"new":18,"type":19,"children":-1},"Browser Live Captions",{"title":138,"path":139,"stem":140,"new":18,"type":19,"children":-1},"Server-side Streaming","\u002Fdocs\u002Fguides\u002Fserver-side-streaming","docs\u002F5.guides\u002F2.server-side-streaming",{"title":142,"path":143,"stem":144,"new":18,"type":19,"children":-1},"Build a Stable Caption UI","\u002Fdocs\u002Fguides\u002Fstable-caption-ui","docs\u002F5.guides\u002F3.stable-caption-ui",{"title":146,"path":147,"stem":148,"new":18,"type":19,"children":-1},"Build Live Translation","\u002Fdocs\u002Fguides\u002Flive-translation","docs\u002F5.guides\u002F4.live-translation",{"title":150,"path":151,"stem":152,"new":18,"type":19,"children":-1},"Save a Transcript","\u002Fdocs\u002Fguides\u002Fsave-transcript","docs\u002F5.guides\u002F5.save-transcript",{"title":154,"path":155,"stem":156,"new":18,"type":19,"children":-1},"Reconnect a Live Session","\u002Fdocs\u002Fguides\u002Freconnection","docs\u002F5.guides\u002F6.reconnection",{"title":158,"path":159,"stem":160,"new":18,"type":19,"children":-1},"Client-VAD speech segments","\u002Fdocs\u002Fguides\u002Fclient-vad-segments","docs\u002F5.guides\u002F7.client-vad-segments",{"title":162,"path":163,"stem":164,"children":165,"new":18,"type":32},"API Reference","\u002Fdocs\u002Fapi-reference","docs\u002F6.api-reference\u002F1.index",[166,168,172,176,180,184,188,192,196,200,204],{"title":167,"path":163,"stem":164,"new":18,"type":19,"children":-1},"API Reference Overview",{"title":169,"path":170,"stem":171,"new":18,"type":19,"children":-1},"Realtime API","\u002Fdocs\u002Fapi-reference\u002Frealtime-api","docs\u002F6.api-reference\u002F2.realtime-api",{"title":173,"path":174,"stem":175,"new":18,"type":19,"children":-1},"Client Messages","\u002Fdocs\u002Fapi-reference\u002Fclient-messages","docs\u002F6.api-reference\u002F3.client-messages",{"title":177,"path":178,"stem":179,"new":18,"type":19,"children":-1},"Server Events","\u002Fdocs\u002Fapi-reference\u002Fserver-events","docs\u002F6.api-reference\u002F4.server-events",{"title":181,"path":182,"stem":183,"new":18,"type":19,"children":-1},"Segment Transcription API","\u002Fdocs\u002Fapi-reference\u002Fsegment-transcription","docs\u002F6.api-reference\u002F5.segment-transcription",{"title":185,"path":186,"stem":187,"new":18,"type":19,"children":-1},"Batch Transcription Jobs","\u002Fdocs\u002Fapi-reference\u002Fbatch-jobs","docs\u002F6.api-reference\u002F6.batch-jobs",{"title":189,"path":190,"stem":191,"new":18,"type":19,"children":-1},"Languages & Models","\u002Fdocs\u002Fapi-reference\u002Flanguages","docs\u002F6.api-reference\u002F7.languages",{"title":193,"path":194,"stem":195,"new":18,"type":19,"children":-1},"Errors","\u002Fdocs\u002Fapi-reference\u002Ferrors","docs\u002F6.api-reference\u002F8.errors",{"title":197,"path":198,"stem":199,"new":18,"type":19,"children":-1},"Rate Limits","\u002Fdocs\u002Fapi-reference\u002Frate-limits","docs\u002F6.api-reference\u002F9.rate-limits",{"title":201,"path":202,"stem":203,"new":18,"type":19,"children":-1},"Admin API","\u002Fdocs\u002Fapi-reference\u002Fadmin","docs\u002F6.api-reference\u002F10.admin",{"title":205,"path":206,"stem":207,"new":18,"type":19,"children":-1},"Language Detection","\u002Fdocs\u002Fapi-reference\u002Flanguage-detection","docs\u002F6.api-reference\u002F11.language-detection",{"title":209,"path":210,"stem":211,"children":212,"new":18,"type":32},"Production","\u002Fdocs\u002Fproduction","docs\u002F7.production\u002F1.index",[213,215,219,223,227,231],{"title":214,"path":210,"stem":211,"new":18,"type":19,"children":-1},"Production Checklist",{"title":216,"path":217,"stem":218,"new":18,"type":19,"children":-1},"Reconnection & Retries","\u002Fdocs\u002Fproduction\u002Freconnection-retries","docs\u002F7.production\u002F2.reconnection-retries",{"title":220,"path":221,"stem":222,"new":18,"type":19,"children":-1},"Latency Best Practices","\u002Fdocs\u002Fproduction\u002Flatency-best-practices","docs\u002F7.production\u002F3.latency-best-practices",{"title":224,"path":225,"stem":226,"new":18,"type":19,"children":-1},"Security & Privacy","\u002Fdocs\u002Fproduction\u002Fsecurity-privacy","docs\u002F7.production\u002F4.security-privacy",{"title":228,"path":229,"stem":230,"new":18,"type":19,"children":-1},"Data Retention","\u002Fdocs\u002Fproduction\u002Fdata-retention","docs\u002F7.production\u002F5.data-retention",{"title":232,"path":233,"stem":234,"new":18,"type":19,"children":-1},"Changelog","\u002Fdocs\u002Fproduction\u002Fchangelog","docs\u002F7.production\u002F6.changelog",{"id":236,"title":193,"body":237,"description":999,"extension":1000,"links":1001,"meta":1002,"navigation":1003,"new":18,"path":194,"rawbody":1004,"seo":1005,"stem":195,"technology":1001,"__hash__":1006},"content\u002Fdocs\u002F6.api-reference\u002F8.errors.md",{"type":238,"value":239,"toc":983},"minimark",[240,245,255,259,269,283,287,293,302,306,632,636,643,649,653,792,796,883,887,959,963],[241,242,244],"h2",{"id":243},"error-response-formats","Error response formats",[246,247,249,250,254],"h3",{"id":248},"openai-format-v1audio-endpoints","OpenAI format (",[251,252,253],"code",{},"\u002Fv1\u002Faudio\u002F*"," endpoints)",[256,257,258],"p",{},"Used for realtime WebSocket, offline HTTP, and session-token endpoints:",[260,261,267],"pre",{"className":262,"code":264,"language":265,"meta":266},[263],"language-json","{\n  \"error\": {\n    \"message\": \"API key is missing.\",\n    \"type\": \"invalid_request_error\",\n    \"code\": \"missing_api_key\"\n  }\n}\n","json","",[251,268,264],{"__ignoreMap":266},[256,270,271,274,275,278,279,282],{},[251,272,273],{},"type"," is ",[251,276,277],{},"rate_limit_error"," for 429 responses, otherwise ",[251,280,281],{},"invalid_request_error",".",[246,284,286],{"id":285},"envelope-format-key-management-api","Envelope format (Key management API)",[260,288,291],{"className":289,"code":290,"language":265,"meta":266},[263],"{\n  \"ok\": false,\n  \"error\": {\n    \"code\": \"admin_unauthorized\",\n    \"message\": \"Admin token required.\",\n    \"retryable\": false\n  }\n}\n",[251,292,290],{"__ignoreMap":266},[256,294,295,274,298,301],{},[251,296,297],{},"retryable",[251,299,300],{},"true"," for 429 and ≥500 responses.",[241,303,305],{"id":304},"http-error-codes","HTTP error codes",[307,308,309,328],"table",{},[310,311,312],"thead",{},[313,314,315,319,322,325],"tr",{},[316,317,318],"th",{},"Code",[316,320,321],{},"HTTP",[316,323,324],{},"Cause",[316,326,327],{},"Client action",[329,330,331,348,363,378,393,409,424,438,454,468,487,502,518,532,548,563,579,597,613],"tbody",{},[313,332,333,339,342,345],{},[334,335,336],"td",{},[251,337,338],{},"missing_api_key",[334,340,341],{},"401",[334,343,344],{},"No Authorization header \u002F query token",[334,346,347],{},"Add API key",[313,349,350,355,357,360],{},[334,351,352],{},[251,353,354],{},"invalid_api_key",[334,356,341],{},[334,358,359],{},"Key format invalid or unknown",[334,361,362],{},"Check key",[313,364,365,370,372,375],{},[334,366,367],{},[251,368,369],{},"revoked_api_key",[334,371,341],{},[334,373,374],{},"Key has been revoked",[334,376,377],{},"Contact provider",[313,379,380,385,387,390],{},[334,381,382],{},[251,383,384],{},"expired_api_key",[334,386,341],{},[334,388,389],{},"Key has expired",[334,391,392],{},"Re-provision",[313,394,395,400,403,406],{},[334,396,397],{},[251,398,399],{},"auth_unavailable",[334,401,402],{},"503",[334,404,405],{},"Key store unavailable",[334,407,408],{},"Retry later",[313,410,411,416,418,421],{},[334,412,413],{},[251,414,415],{},"invalid_session_token",[334,417,341],{},[334,419,420],{},"Session token invalid or expired",[334,422,423],{},"Obtain new token",[313,425,426,431,433,436],{},[334,427,428],{},[251,429,430],{},"token_issuer_unavailable",[334,432,402],{},[334,434,435],{},"Token issuer not configured",[334,437,408],{},[313,439,440,445,448,451],{},[334,441,442],{},[251,443,444],{},"websocket_required",[334,446,447],{},"426",[334,449,450],{},"Non-WS upgrade request",[334,452,453],{},"Use WebSocket client",[313,455,456,461,463,466],{},[334,457,458],{},[251,459,460],{},"gateway_disabled",[334,462,402],{},[334,464,465],{},"Realtime gateway disabled",[334,467,377],{},[313,469,470,475,478,481],{},[334,471,472],{},[251,473,474],{},"connection_rate_limited",[334,476,477],{},"429",[334,479,480],{},"Connection rate exceeded",[334,482,483,484],{},"Honor ",[251,485,486],{},"Retry-After",[313,488,489,494,496,499],{},[334,490,491],{},[251,492,493],{},"concurrent_connection_limit",[334,495,477],{},[334,497,498],{},"Max concurrent connections exceeded",[334,500,501],{},"Wait for release",[313,503,504,509,511,514],{},[334,505,506],{},[251,507,508],{},"request_rate_limited",[334,510,477],{},[334,512,513],{},"Request rate exceeded",[334,515,483,516],{},[251,517,486],{},[313,519,520,525,527,530],{},[334,521,522],{},[251,523,524],{},"audio_quota_exhausted",[334,526,477],{},[334,528,529],{},"Audio window budget exhausted",[334,531,408],{},[313,533,534,539,542,545],{},[334,535,536],{},[251,537,538],{},"audio_too_long",[334,540,541],{},"413",[334,543,544],{},"Single request audio exceeds plan limit",[334,546,547],{},"Reduce audio duration",[313,549,550,555,558,561],{},[334,551,552],{},[251,553,554],{},"internal_error",[334,556,557],{},"500",[334,559,560],{},"Uncaught exception",[334,562,377],{},[313,564,565,570,573,576],{},[334,566,567],{},[251,568,569],{},"bad_request",[334,571,572],{},"400",[334,574,575],{},"Invalid request body",[334,577,578],{},"Fix and retry",[313,580,581,586,588,594],{},[334,582,583],{},[251,584,585],{},"invalid_content_type",[334,587,572],{},[334,589,590,591],{},"Segment endpoint expects multipart; batch expects JSON on ",[251,592,593],{},"\u002Fjobs",[334,595,596],{},"Fix Content-Type and path",[313,598,599,604,607,610],{},[334,600,601],{},[251,602,603],{},"transcription_failed",[334,605,606],{},"502",[334,608,609],{},"Segment transcription failed after worker attempts",[334,611,612],{},"Client may resend utterance",[313,614,615,620,622,629],{},[334,616,617],{},[251,618,619],{},"missing_file",[334,621,572],{},[334,623,624,625,628],{},"Segment request missing ",[251,626,627],{},"file"," field",[334,630,631],{},"Add multipart file",[241,633,635],{"id":634},"websocket-error-events","WebSocket error events",[256,637,638,639,642],{},"Within an active WebSocket connection, the server may send ",[251,640,641],{},"error"," events:",[260,644,647],{"className":645,"code":646,"language":265,"meta":266},[263],"{ \"type\": \"error\", \"code\": \"...\", \"message\": \"...\", \"request_id\": \"...\" }\n",[251,648,646],{"__ignoreMap":266},[246,650,652],{"id":651},"websocket-error-codes","WebSocket error codes",[307,654,655,667],{},[310,656,657],{},[313,658,659,661,664],{},[316,660,318],{},[316,662,663],{},"Description",[316,665,666],{},"Close code",[329,668,669,682,695,707,720,733,745,756,768,780],{},[313,670,671,676,679],{},[334,672,673],{},[251,674,675],{},"audio_frame_too_large",[334,677,678],{},"Audio frame exceeds 1 MiB",[334,680,681],{},"1009",[313,683,684,689,692],{},[334,685,686],{},[251,687,688],{},"concurrent_utterance_limit",[334,690,691],{},"Concurrent utterance limit exceeded",[334,693,694],{},"—",[313,696,697,702,705],{},[334,698,699],{},[251,700,701],{},"client_backpressure",[334,703,704],{},"Client backpressure",[334,706,694],{},[313,708,709,714,717],{},[334,710,711],{},[251,712,713],{},"idle_timeout",[334,715,716],{},"Idle timeout reached",[334,718,719],{},"4408",[313,721,722,727,730],{},[334,723,724],{},[251,725,726],{},"session_duration_limit",[334,728,729],{},"Session duration exceeded",[334,731,732],{},"1008",[313,734,735,740,743],{},[334,736,737],{},[251,738,739],{},"session_audio_limit",[334,741,742],{},"Session audio budget exceeded",[334,744,732],{},[313,746,747,751,754],{},[334,748,749],{},[251,750,524],{},[334,752,753],{},"Audio quota exhausted",[334,755,732],{},[313,757,758,763,766],{},[334,759,760],{},[251,761,762],{},"bad_json",[334,764,765],{},"JSON parse failure",[334,767,694],{},[313,769,770,775,778],{},[334,771,772],{},[251,773,774],{},"bad_message",[334,776,777],{},"Invalid message type",[334,779,694],{},[313,781,782,787,790],{},[334,783,784],{},[251,785,786],{},"invalid_audio",[334,788,789],{},"Invalid audio data",[334,791,694],{},[241,793,795],{"id":794},"key-management-api-errors","Key management API errors",[307,797,798,808],{},[310,799,800],{},[313,801,802,804,806],{},[316,803,318],{},[316,805,321],{},[316,807,663],{},[329,809,810,822,834,846,858,871],{},[313,811,812,817,819],{},[334,813,814],{},[251,815,816],{},"admin_unauthorized",[334,818,341],{},[334,820,821],{},"Missing admin token",[313,823,824,829,831],{},[334,825,826],{},[251,827,828],{},"invalid_plan",[334,830,572],{},[334,832,833],{},"Unknown plan",[313,835,836,841,843],{},[334,837,838],{},[251,839,840],{},"invalid_expiry",[334,842,572],{},[334,844,845],{},"Invalid or past expiry date",[313,847,848,853,855],{},[334,849,850],{},[251,851,852],{},"store_unavailable",[334,854,557],{},[334,856,857],{},"R2 storage unavailable",[313,859,860,865,868],{},[334,861,862],{},[251,863,864],{},"key_not_found",[334,866,867],{},"404",[334,869,870],{},"Key ID not found",[313,872,873,878,880],{},[334,874,875],{},[251,876,877],{},"not_found",[334,879,867],{},[334,881,882],{},"Unknown management route",[241,884,886],{"id":885},"troubleshooting","Troubleshooting",[307,888,889,899],{},[310,890,891],{},[313,892,893,896],{},[316,894,895],{},"Problem",[316,897,898],{},"Check",[329,900,901,914,927,940,950],{},[313,902,903,908],{},[334,904,905,906],{},"401 ",[251,907,338],{},[334,909,910,911],{},"Ensure request includes ",[251,912,913],{},"Authorization: Bearer sk-...",[313,915,916,920],{},[334,917,905,918],{},[251,919,354],{},[334,921,922,923,926],{},"Verify key starts with ",[251,924,925],{},"sk-",", length ≥ 16",[313,928,929,935],{},[334,930,931,932],{},"429 ",[251,933,934],{},"*_rate_limited",[334,936,483,937,939],{},[251,938,486],{}," header, exponential backoff",[313,941,942,947],{},[334,943,944,945],{},"WS ",[251,946,713],{},[334,948,949],{},"Keep sending audio frames, or close explicitly",[313,951,952,956],{},[334,953,944,954],{},[251,955,675],{},[334,957,958],{},"Reduce frame size to ≤ 1 MiB",[241,960,962],{"id":961},"related","Related",[964,965,966,973,978],"ul",{},[967,968,969,972],"li",{},[970,971,21],"a",{"href":22}," — auth methods",[967,974,975,977],{},[970,976,216],{"href":217}," — retry strategies",[967,979,980,982],{},[970,981,197],{"href":198}," — plan limits",{"title":266,"searchDepth":984,"depth":984,"links":985},2,[986,992,993,996,997,998],{"id":243,"depth":984,"text":244,"children":987},[988,991],{"id":248,"depth":989,"text":990},3,"OpenAI format (\u002Fv1\u002Faudio\u002F* endpoints)",{"id":285,"depth":989,"text":286},{"id":304,"depth":984,"text":305},{"id":634,"depth":984,"text":635,"children":994},[995],{"id":651,"depth":989,"text":652},{"id":794,"depth":984,"text":795},{"id":885,"depth":984,"text":886},{"id":961,"depth":984,"text":962},"HTTP status codes, WebSocket error events, and error payload formats.","md",null,{},true,"---\ntitle: Errors\ndescription: HTTP status codes, WebSocket error events, and error payload formats.\n---\n## Error response formats\n\n### OpenAI format (`\u002Fv1\u002Faudio\u002F*` endpoints)\n\nUsed for realtime WebSocket, offline HTTP, and session-token endpoints:\n\n```json\n{\n  \"error\": {\n    \"message\": \"API key is missing.\",\n    \"type\": \"invalid_request_error\",\n    \"code\": \"missing_api_key\"\n  }\n}\n```\n\n`type` is `rate_limit_error` for 429 responses, otherwise `invalid_request_error`.\n\n### Envelope format (Key management API)\n\n```json\n{\n  \"ok\": false,\n  \"error\": {\n    \"code\": \"admin_unauthorized\",\n    \"message\": \"Admin token required.\",\n    \"retryable\": false\n  }\n}\n```\n\n`retryable` is `true` for 429 and ≥500 responses.\n\n## HTTP error codes\n\n| Code | HTTP | Cause | Client action |\n|---|---|---|---|\n| `missing_api_key` | 401 | No Authorization header \u002F query token | Add API key |\n| `invalid_api_key` | 401 | Key format invalid or unknown | Check key |\n| `revoked_api_key` | 401 | Key has been revoked | Contact provider |\n| `expired_api_key` | 401 | Key has expired | Re-provision |\n| `auth_unavailable` | 503 | Key store unavailable | Retry later |\n| `invalid_session_token` | 401 | Session token invalid or expired | Obtain new token |\n| `token_issuer_unavailable` | 503 | Token issuer not configured | Retry later |\n| `websocket_required` | 426 | Non-WS upgrade request | Use WebSocket client |\n| `gateway_disabled` | 503 | Realtime gateway disabled | Contact provider |\n| `connection_rate_limited` | 429 | Connection rate exceeded | Honor `Retry-After` |\n| `concurrent_connection_limit` | 429 | Max concurrent connections exceeded | Wait for release |\n| `request_rate_limited` | 429 | Request rate exceeded | Honor `Retry-After` |\n| `audio_quota_exhausted` | 429 | Audio window budget exhausted | Retry later |\n| `audio_too_long` | 413 | Single request audio exceeds plan limit | Reduce audio duration |\n| `internal_error` | 500 | Uncaught exception | Contact provider |\n| `bad_request` | 400 | Invalid request body | Fix and retry |\n| `invalid_content_type` | 400 | Segment endpoint expects multipart; batch expects JSON on `\u002Fjobs` | Fix Content-Type and path |\n| `transcription_failed` | 502 | Segment transcription failed after worker attempts | Client may resend utterance |\n| `missing_file` | 400 | Segment request missing `file` field | Add multipart file |\n\n## WebSocket error events\n\nWithin an active WebSocket connection, the server may send `error` events:\n\n```json\n{ \"type\": \"error\", \"code\": \"...\", \"message\": \"...\", \"request_id\": \"...\" }\n```\n\n### WebSocket error codes\n\n| Code | Description | Close code |\n|---|---|---|\n| `audio_frame_too_large` | Audio frame exceeds 1 MiB | 1009 |\n| `concurrent_utterance_limit` | Concurrent utterance limit exceeded | — |\n| `client_backpressure` | Client backpressure | — |\n| `idle_timeout` | Idle timeout reached | 4408 |\n| `session_duration_limit` | Session duration exceeded | 1008 |\n| `session_audio_limit` | Session audio budget exceeded | 1008 |\n| `audio_quota_exhausted` | Audio quota exhausted | 1008 |\n| `bad_json` | JSON parse failure | — |\n| `bad_message` | Invalid message type | — |\n| `invalid_audio` | Invalid audio data | — |\n\n## Key management API errors\n\n| Code | HTTP | Description |\n|---|---|---|\n| `admin_unauthorized` | 401 | Missing admin token |\n| `invalid_plan` | 400 | Unknown plan |\n| `invalid_expiry` | 400 | Invalid or past expiry date |\n| `store_unavailable` | 500 | R2 storage unavailable |\n| `key_not_found` | 404 | Key ID not found |\n| `not_found` | 404 | Unknown management route |\n\n## Troubleshooting\n\n| Problem | Check |\n|---|---|\n| 401 `missing_api_key` | Ensure request includes `Authorization: Bearer sk-...` |\n| 401 `invalid_api_key` | Verify key starts with `sk-`, length ≥ 16 |\n| 429 `*_rate_limited` | Honor `Retry-After` header, exponential backoff |\n| WS `idle_timeout` | Keep sending audio frames, or close explicitly |\n| WS `audio_frame_too_large` | Reduce frame size to ≤ 1 MiB |\n\n## Related\n\n- [Authentication](\u002Fdocs\u002Fstart\u002Fauthentication) — auth methods\n- [Reconnection & Retries](\u002Fdocs\u002Fproduction\u002Freconnection-retries) — retry strategies\n- [Rate Limits](\u002Fdocs\u002Fapi-reference\u002Frate-limits) — plan limits\n",{"title":193,"description":999},"4-jtwGP0mZhyNsK_21TCVQ3TqPxrpLW0id28uFOsZ6g",[1008,1009],{"title":189,"path":190,"stem":191,"children":-1},{"title":197,"path":198,"stem":199,"children":-1},1795064386861]