[{"data":1,"prerenderedAt":720},["ShallowReactive",2],{"navigation":3,"\u002Fdocs\u002Fapi-reference\u002Fadmin":235,"surround-\u002Fdocs\u002Fapi-reference\u002Fadmin":717},[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":201,"body":237,"description":708,"extension":709,"links":710,"meta":711,"navigation":713,"new":18,"path":202,"rawbody":714,"seo":715,"stem":203,"technology":710,"__hash__":716},"content\u002Fdocs\u002F6.api-reference\u002F10.admin.md",{"type":238,"value":239,"toc":692},"minimark",[240,258,282,289,294,304,307,339,342,350,354,357,363,366,372,376,382,385,393,396,402,408,415,421,424,510,512,518,524,530,536,538,544,550,553,559,565,568,574,578,670,674],[241,242,243,244,248,249,253,254,257],"p",{},"These endpoints are for ",[245,246,247],"strong",{},"internal operators and dashboards",", not for regular API consumers. All key-management routes require the ",[250,251,252],"code",{},"GATEWAY_ADMIN_TOKEN"," via ",[250,255,256],{},"Authorization: Bearer \u003Cadmin-token>",".",[259,260,263],"callout",{"color":261,"icon":262},"primary","i-lucide-info",[241,264,265,266,269,270,273,274,277,278,281],{},"Regular users do not need this admin API. A signed-in ",[245,267,268],{},"Lanson Live App"," user can create and revoke their own free key for ",[245,271,272],{},"Lanson Live API"," under ",[245,275,276],{},"Account → Developer → Create API key",". That UI calls the dashboard server's ",[250,279,280],{},"\u002Fapi\u002Fme\u002Faudio-keys"," endpoint, which writes the same key store without exposing the admin token.",[241,283,284,285,288],{},"The single exception is ",[250,286,287],{},"GET \u002Fv1\u002Fexternal-transcription\u002Fplans",", which is public and intended for SDK clients and dashboards that need to display plan limits.",[290,291,293],"h2",{"id":292},"base-url","Base URL",[295,296,301],"pre",{"className":297,"code":299,"language":300},[298],"language-text","https:\u002F\u002Faudio.lansonai.com\n","text",[250,302,299],{"__ignoreMap":303},"",[290,305,21],{"id":306},"authentication",[308,309,310,323],"table",{},[311,312,313],"thead",{},[314,315,316,320],"tr",{},[317,318,319],"th",{},"Header",[317,321,322],{},"Value",[324,325,326],"tbody",{},[314,327,328,334],{},[329,330,331],"td",{},[250,332,333],{},"Authorization",[329,335,336],{},[250,337,338],{},"Bearer \u003CGATEWAY_ADMIN_TOKEN>",[241,340,341],{},"A missing or incorrect admin token returns:",[295,343,348],{"className":344,"code":346,"language":347,"meta":303},[345],"language-json","{\n  \"ok\": false,\n  \"error\": {\n    \"code\": \"admin_unauthorized\",\n    \"message\": \"Admin token required.\",\n    \"retryable\": false\n  }\n}\n","json",[250,349,346],{"__ignoreMap":303},[290,351,353],{"id":352},"response-envelope","Response envelope",[241,355,356],{},"All admin endpoints use the same envelope:",[295,358,361],{"className":359,"code":360,"language":347,"meta":303},[345],"{\n  \"ok\": true,\n  \"data\": { ... }\n}\n",[250,362,360],{"__ignoreMap":303},[241,364,365],{},"Errors:",[295,367,370],{"className":368,"code":369,"language":347,"meta":303},[345],"{\n  \"ok\": false,\n  \"error\": {\n    \"code\": \"...\",\n    \"message\": \"...\",\n    \"retryable\": false\n  }\n}\n",[250,371,369],{"__ignoreMap":303},[290,373,375],{"id":374},"endpoints","Endpoints",[377,378,380],"h3",{"id":379},"get-v1external-transcriptionplans",[250,381,287],{},[241,383,384],{},"Public. Returns every known plan and its resolved limits.",[295,386,391],{"className":387,"code":389,"language":390,"meta":303},[388],"language-bash","curl https:\u002F\u002Faudio.lansonai.com\u002Fv1\u002Fexternal-transcription\u002Fplans\n","bash",[250,392,389],{"__ignoreMap":303},[241,394,395],{},"Response:",[295,397,400],{"className":398,"code":399,"language":347,"meta":303},[345],"{\n  \"ok\": true,\n  \"data\": [\n    {\n      \"plan\": \"free\",\n      \"limits\": {\n        \"maxConcurrentConnections\": 1,\n        \"maxConcurrentUtterances\": 2,\n        \"maxConnectionsPerMinute\": 6,\n        \"maxRequestsPerMinute\": 12,\n        \"maxAudioSecondsPerRequest\": 900,\n        \"maxSessionSeconds\": 900,\n        \"maxAudioSecondsPerSession\": 900,\n        \"maxAudioSecondsPerWindow\": 3600,\n        \"idleTimeoutSeconds\": 60\n      }\n    }\n  ]\n}\n",[250,401,399],{"__ignoreMap":303},[377,403,405],{"id":404},"post-v1external-transcriptionkeys",[250,406,407],{},"POST \u002Fv1\u002Fexternal-transcription\u002Fkeys",[241,409,410,411,414],{},"Issue a new API key. The ",[245,412,413],{},"plaintext key is returned exactly once"," in the response; after that only metadata and a hash are stored.",[295,416,419],{"className":417,"code":418,"language":390,"meta":303},[388],"curl -X POST https:\u002F\u002Faudio.lansonai.com\u002Fv1\u002Fexternal-transcription\u002Fkeys \\\n  -H \"Authorization: Bearer \u003Cadmin-token>\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"owner_id\": \"tenant_a\",\n    \"plan\": \"pro\",\n    \"label\": \"production\",\n    \"expires_at\": \"2026-12-31T23:59:59Z\"\n  }'\n",[250,420,418],{"__ignoreMap":303},[241,422,423],{},"Request fields:",[308,425,426,442],{},[311,427,428],{},[314,429,430,433,436,439],{},[317,431,432],{},"Field",[317,434,435],{},"Type",[317,437,438],{},"Required",[317,440,441],{},"Description",[324,443,444,464,481,495],{},[314,445,446,451,454,457],{},[329,447,448],{},[250,449,450],{},"owner_id",[329,452,453],{},"string",[329,455,456],{},"no",[329,458,459,460,463],{},"Tenant identifier (default: ",[250,461,462],{},"default",")",[314,465,466,471,473,475],{},[329,467,468],{},[250,469,470],{},"plan",[329,472,453],{},[329,474,456],{},[329,476,477,478,463],{},"Plan name (default: ",[250,479,480],{},"free",[314,482,483,488,490,492],{},[329,484,485],{},[250,486,487],{},"label",[329,489,453],{},[329,491,456],{},[329,493,494],{},"Human-readable label",[314,496,497,502,505,507],{},[329,498,499],{},[250,500,501],{},"expires_at",[329,503,504],{},"string (ISO 8601)",[329,506,456],{},[329,508,509],{},"Expiration timestamp",[241,511,395],{},[295,513,516],{"className":514,"code":515,"language":347,"meta":303},[345],"{\n  \"ok\": true,\n  \"data\": {\n    \"key\": \"sk-...\",\n    \"id\": \"...\",\n    \"ownerId\": \"tenant_a\",\n    \"keyPrefix\": \"sk-xxxxxxxxx\",\n    \"lastFour\": \"abcd\",\n    \"plan\": \"pro\",\n    \"status\": \"active\",\n    \"label\": \"production\",\n    \"expiresAt\": \"2026-12-31T23:59:59Z\",\n    \"revokedAt\": null,\n    \"lastUsedAt\": null,\n    \"createdAt\": \"2026-08-16T...\",\n    \"limits\": { ... }\n  }\n}\n",[250,517,515],{"__ignoreMap":303},[377,519,521],{"id":520},"get-v1external-transcriptionkeys",[250,522,523],{},"GET \u002Fv1\u002Fexternal-transcription\u002Fkeys",[241,525,526,527,257],{},"List key metadata. Optionally filter by ",[250,528,529],{},"?owner_id=",[295,531,534],{"className":532,"code":533,"language":390,"meta":303},[388],"curl https:\u002F\u002Faudio.lansonai.com\u002Fv1\u002Fexternal-transcription\u002Fkeys \\\n  -H \"Authorization: Bearer \u003Cadmin-token>\"\n",[250,535,533],{"__ignoreMap":303},[241,537,395],{},[295,539,542],{"className":540,"code":541,"language":347,"meta":303},[345],"{\n  \"ok\": true,\n  \"data\": [\n    { \"id\": \"...\", \"ownerId\": \"tenant_a\", \"plan\": \"pro\", \"status\": \"active\", ... }\n  ]\n}\n",[250,543,541],{"__ignoreMap":303},[377,545,547],{"id":546},"get-v1external-transcriptionkeysid",[250,548,549],{},"GET \u002Fv1\u002Fexternal-transcription\u002Fkeys\u002F{id}",[241,551,552],{},"Inspect a single key.",[295,554,557],{"className":555,"code":556,"language":390,"meta":303},[388],"curl https:\u002F\u002Faudio.lansonai.com\u002Fv1\u002Fexternal-transcription\u002Fkeys\u002F\u003Cid> \\\n  -H \"Authorization: Bearer \u003Cadmin-token>\"\n",[250,558,556],{"__ignoreMap":303},[377,560,562],{"id":561},"delete-v1external-transcriptionkeysid",[250,563,564],{},"DELETE \u002Fv1\u002Fexternal-transcription\u002Fkeys\u002F{id}",[241,566,567],{},"Revoke a key.",[295,569,572],{"className":570,"code":571,"language":390,"meta":303},[388],"curl -X DELETE https:\u002F\u002Faudio.lansonai.com\u002Fv1\u002Fexternal-transcription\u002Fkeys\u002F\u003Cid> \\\n  -H \"Authorization: Bearer \u003Cadmin-token>\"\n",[250,573,571],{"__ignoreMap":303},[290,575,577],{"id":576},"error-codes","Error codes",[308,579,580,592],{},[311,581,582],{},[314,583,584,587,590],{},[317,585,586],{},"Code",[317,588,589],{},"HTTP",[317,591,441],{},[324,593,594,607,620,633,646,658],{},[314,595,596,601,604],{},[329,597,598],{},[250,599,600],{},"admin_unauthorized",[329,602,603],{},"401",[329,605,606],{},"Missing or incorrect admin token",[314,608,609,614,617],{},[329,610,611],{},[250,612,613],{},"invalid_plan",[329,615,616],{},"400",[329,618,619],{},"Unknown plan name",[314,621,622,627,630],{},[329,623,624],{},[250,625,626],{},"key_not_found",[329,628,629],{},"404",[329,631,632],{},"Key ID does not exist",[314,634,635,640,643],{},[329,636,637],{},[250,638,639],{},"issue_failed",[329,641,642],{},"500",[329,644,645],{},"Unable to issue a key",[314,647,648,653,655],{},[329,649,650],{},[250,651,652],{},"store_unavailable",[329,654,642],{},[329,656,657],{},"R2 key store unavailable",[314,659,660,665,667],{},[329,661,662],{},[250,663,664],{},"not_found",[329,666,629],{},[329,668,669],{},"Unknown admin route",[290,671,673],{"id":672},"related","Related",[675,676,677,684],"ul",{},[678,679,680,683],"li",{},[681,682,21],"a",{"href":22}," — regular API key and session-token flow",[678,685,686,688,689],{},[681,687,197],{"href":198}," — plan limits returned by ",[250,690,691],{},"\u002Fplans",{"title":303,"searchDepth":693,"depth":693,"links":694},2,[695,696,697,698,706,707],{"id":292,"depth":693,"text":293},{"id":306,"depth":693,"text":21},{"id":352,"depth":693,"text":353},{"id":374,"depth":693,"text":375,"children":699},[700,702,703,704,705],{"id":379,"depth":701,"text":287},3,{"id":404,"depth":701,"text":407},{"id":520,"depth":701,"text":523},{"id":546,"depth":701,"text":549},{"id":561,"depth":701,"text":564},{"id":576,"depth":693,"text":577},{"id":672,"depth":693,"text":673},"Internal key management and plan catalog endpoints.","md",null,{"updated":712},"2026-11-08",true,"---\ntitle: Admin API\ndescription: Internal key management and plan catalog endpoints.\nupdated: 2026-11-08\n---\nThese endpoints are for **internal operators and dashboards**, not for regular API consumers. All key-management routes require the `GATEWAY_ADMIN_TOKEN` via `Authorization: Bearer \u003Cadmin-token>`.\n\n::callout{icon=\"i-lucide-info\" color=\"primary\"}\nRegular users do not need this admin API. A signed-in **Lanson Live App** user can create and revoke their own free key for **Lanson Live API** under **Account → Developer → Create API key**. That UI calls the dashboard server's `\u002Fapi\u002Fme\u002Faudio-keys` endpoint, which writes the same key store without exposing the admin token.\n::\n\nThe single exception is `GET \u002Fv1\u002Fexternal-transcription\u002Fplans`, which is public and intended for SDK clients and dashboards that need to display plan limits.\n\n## Base URL\n\n```\nhttps:\u002F\u002Faudio.lansonai.com\n```\n\n## Authentication\n\n| Header | Value |\n|---|---|\n| `Authorization` | `Bearer \u003CGATEWAY_ADMIN_TOKEN>` |\n\nA missing or incorrect admin token returns:\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## Response envelope\n\nAll admin endpoints use the same envelope:\n\n```json\n{\n  \"ok\": true,\n  \"data\": { ... }\n}\n```\n\nErrors:\n\n```json\n{\n  \"ok\": false,\n  \"error\": {\n    \"code\": \"...\",\n    \"message\": \"...\",\n    \"retryable\": false\n  }\n}\n```\n\n## Endpoints\n\n### `GET \u002Fv1\u002Fexternal-transcription\u002Fplans`\n\nPublic. Returns every known plan and its resolved limits.\n\n```bash\ncurl https:\u002F\u002Faudio.lansonai.com\u002Fv1\u002Fexternal-transcription\u002Fplans\n```\n\nResponse:\n\n```json\n{\n  \"ok\": true,\n  \"data\": [\n    {\n      \"plan\": \"free\",\n      \"limits\": {\n        \"maxConcurrentConnections\": 1,\n        \"maxConcurrentUtterances\": 2,\n        \"maxConnectionsPerMinute\": 6,\n        \"maxRequestsPerMinute\": 12,\n        \"maxAudioSecondsPerRequest\": 900,\n        \"maxSessionSeconds\": 900,\n        \"maxAudioSecondsPerSession\": 900,\n        \"maxAudioSecondsPerWindow\": 3600,\n        \"idleTimeoutSeconds\": 60\n      }\n    }\n  ]\n}\n```\n\n### `POST \u002Fv1\u002Fexternal-transcription\u002Fkeys`\n\nIssue a new API key. The **plaintext key is returned exactly once** in the response; after that only metadata and a hash are stored.\n\n```bash\ncurl -X POST https:\u002F\u002Faudio.lansonai.com\u002Fv1\u002Fexternal-transcription\u002Fkeys \\\n  -H \"Authorization: Bearer \u003Cadmin-token>\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"owner_id\": \"tenant_a\",\n    \"plan\": \"pro\",\n    \"label\": \"production\",\n    \"expires_at\": \"2026-12-31T23:59:59Z\"\n  }'\n```\n\nRequest fields:\n\n| Field | Type | Required | Description |\n|---|---|---|---|\n| `owner_id` | string | no | Tenant identifier (default: `default`) |\n| `plan` | string | no | Plan name (default: `free`) |\n| `label` | string | no | Human-readable label |\n| `expires_at` | string (ISO 8601) | no | Expiration timestamp |\n\nResponse:\n\n```json\n{\n  \"ok\": true,\n  \"data\": {\n    \"key\": \"sk-...\",\n    \"id\": \"...\",\n    \"ownerId\": \"tenant_a\",\n    \"keyPrefix\": \"sk-xxxxxxxxx\",\n    \"lastFour\": \"abcd\",\n    \"plan\": \"pro\",\n    \"status\": \"active\",\n    \"label\": \"production\",\n    \"expiresAt\": \"2026-12-31T23:59:59Z\",\n    \"revokedAt\": null,\n    \"lastUsedAt\": null,\n    \"createdAt\": \"2026-08-16T...\",\n    \"limits\": { ... }\n  }\n}\n```\n\n### `GET \u002Fv1\u002Fexternal-transcription\u002Fkeys`\n\nList key metadata. Optionally filter by `?owner_id=`.\n\n```bash\ncurl https:\u002F\u002Faudio.lansonai.com\u002Fv1\u002Fexternal-transcription\u002Fkeys \\\n  -H \"Authorization: Bearer \u003Cadmin-token>\"\n```\n\nResponse:\n\n```json\n{\n  \"ok\": true,\n  \"data\": [\n    { \"id\": \"...\", \"ownerId\": \"tenant_a\", \"plan\": \"pro\", \"status\": \"active\", ... }\n  ]\n}\n```\n\n### `GET \u002Fv1\u002Fexternal-transcription\u002Fkeys\u002F{id}`\n\nInspect a single key.\n\n```bash\ncurl https:\u002F\u002Faudio.lansonai.com\u002Fv1\u002Fexternal-transcription\u002Fkeys\u002F\u003Cid> \\\n  -H \"Authorization: Bearer \u003Cadmin-token>\"\n```\n\n### `DELETE \u002Fv1\u002Fexternal-transcription\u002Fkeys\u002F{id}`\n\nRevoke a key.\n\n```bash\ncurl -X DELETE https:\u002F\u002Faudio.lansonai.com\u002Fv1\u002Fexternal-transcription\u002Fkeys\u002F\u003Cid> \\\n  -H \"Authorization: Bearer \u003Cadmin-token>\"\n```\n\n## Error codes\n\n| Code | HTTP | Description |\n|---|---|---|\n| `admin_unauthorized` | 401 | Missing or incorrect admin token |\n| `invalid_plan` | 400 | Unknown plan name |\n| `key_not_found` | 404 | Key ID does not exist |\n| `issue_failed` | 500 | Unable to issue a key |\n| `store_unavailable` | 500 | R2 key store unavailable |\n| `not_found` | 404 | Unknown admin route |\n\n## Related\n\n- [Authentication](\u002Fdocs\u002Fstart\u002Fauthentication) — regular API key and session-token flow\n- [Rate Limits](\u002Fdocs\u002Fapi-reference\u002Frate-limits) — plan limits returned by `\u002Fplans`\n",{"title":201,"description":708},"iPNgTcHfk0Zzq05YUMwhbwBH3B_wVEOzV2Oa9CC5ZGY",[718,719],{"title":167,"path":163,"stem":164,"children":-1},{"title":205,"path":206,"stem":207,"children":-1},1795064386943]