[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-twilio-twilio-call-recordings":3,"mdc-n8fgwb-key":33,"related-org-twilio-twilio-call-recordings":2324,"related-repo-twilio-twilio-call-recordings":2496},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":29,"sourceUrl":31,"mdContent":32},"twilio-call-recordings","record and manage Twilio voice calls","Record Twilio voice calls correctly. Covers the critical distinction between Record verb (voicemail) and Dial record (call recording), dual-channel for QA, mid-call pause for PCI, Conference recording, and the ConversationRelay workaround. Use this skill whenever you need to capture call audio for compliance, QA, or analytics.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"twilio","Twilio","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Ftwilio.png",[12,16,19,22],{"name":13,"slug":14,"type":15},"Compliance","compliance","tag",{"name":17,"slug":18,"type":15},"QA","qa",{"name":20,"slug":21,"type":15},"Audio","audio",{"name":9,"slug":8,"type":15},25,"https:\u002F\u002Fgithub.com\u002Ftwilio\u002Fai","2026-07-17T06:07:55.268412",null,7,[],{"repoUrl":24,"stars":23,"forks":27,"topics":30,"description":26},[],"https:\u002F\u002Fgithub.com\u002Ftwilio\u002Fai\u002Ftree\u002FHEAD\u002Fskills\u002Ftwilio\u002Ftwilio-call-recordings","---\nname: twilio-call-recordings\ndescription: >\n  Record Twilio voice calls correctly. Covers the critical distinction\n  between Record verb (voicemail) and Dial record (call recording),\n  dual-channel for QA, mid-call pause for PCI, Conference recording, and\n  the ConversationRelay workaround. Use this skill whenever you need to\n  capture call audio for compliance, QA, or analytics.\n---\n\n## Overview\n\nTwilio offers multiple recording methods. Choosing the wrong one is the **#1 developer mistake** in voice — using `\u003CRecord>` when you mean `\u003CDial record>` produces voicemail behavior instead of call recording.\n\n| Method | What it does | Use when |\n|--------|-------------|----------|\n| `\u003CRecord>` verb | Records the CALLER only (voicemail-style) | Leaving a message, capturing input |\n| `\u003CDial record>` | Records BOTH parties on a call | Call recording for two-party calls |\n| `\u003CStart>\u003CRecording>` | Starts a recording alongside other verbs | ConversationRelay, multi-verb flows |\n| Conference `record` | Records the conference mix | Multi-party calls |\n| Recordings REST API | Programmatic control mid-call | Pause during payment (PCI) |\n\n---\n\n## Prerequisites\n\n- Twilio account with a voice-capable phone number — see `twilio-account-setup`\n- `TWILIO_ACCOUNT_SID` and `TWILIO_AUTH_TOKEN` — see `twilio-iam-auth-setup`\n- SDK: `pip install twilio` \u002F `npm install twilio`\n- A webhook endpoint for recording status callbacks\n- **Compliance check:** Recording consent requirements vary by jurisdiction — see `twilio-compliance-traffic`\n\n---\n\n## Quickstart\n\n### Record a Two-Party Call (Most Common)\n\nUse `\u003CDial record>` — NOT `\u003CRecord>`.\n\n**Python (Flask)**\n```python\nfrom flask import Flask, request\nfrom twilio.twiml.voice_response import VoiceResponse\n\napp = Flask(__name__)\n\n@app.route(\"\u002Fvoice\", methods=[\"POST\"])\ndef incoming_call():\n    response = VoiceResponse()\n    response.say(\"This call may be recorded for quality assurance.\")\n    dial = response.dial(\n        record=\"record-from-answer-dual\",  # dual-channel: agent on one, caller on other\n        recording_status_callback=\"https:\u002F\u002Fyourapp.com\u002Frecording-status\"\n    )\n    dial.number(\"+15558675310\")  # agent's phone\n    return str(response)\n```\n\n**Node.js (Express)**\n```node\napp.post(\"\u002Fvoice\", (req, res) => {\n    const response = new VoiceResponse();\n    response.say(\"This call may be recorded for quality assurance.\");\n    const dial = response.dial({\n        record: \"record-from-answer-dual\",\n        recordingStatusCallback: \"https:\u002F\u002Fyourapp.com\u002Frecording-status\",\n    });\n    dial.number(\"+15558675310\");\n    res.type(\"text\u002Fxml\").send(response.toString());\n});\n```\n\n### Handle the Recording Status Callback\n\n> **Security:** Validate `X-Twilio-Signature` on recording callbacks in production. Without validation, attackers could POST fake recording URLs to your endpoint.\n\n**Python (Flask)**\n```python\n@app.route(\"\u002Frecording-status\", methods=[\"POST\"])\ndef recording_status():\n    recording_sid = request.form[\"RecordingSid\"]\n    recording_url = request.form[\"RecordingUrl\"]\n    call_sid = request.form[\"CallSid\"]\n    status = request.form[\"RecordingStatus\"]  # \"completed\", \"failed\"\n    duration = request.form.get(\"RecordingDuration\", 0)\n\n    if status == \"completed\":\n        # Store recording reference\n        save_recording(call_sid, recording_sid, recording_url, duration)\n\n    return \"\", 200\n```\n\n---\n\n## Key Patterns\n\n### Recording Modes for `\u003CDial record>`\n\n| Mode | What's recorded | Use case |\n|------|----------------|----------|\n| `record-from-answer` | Single channel, both parties mixed | Simple recording |\n| `record-from-answer-dual` | Dual channel — caller on left, agent on right | QA (separate agent\u002Fcaller audio) |\n| `record-from-ringing` | Records from ring, not answer | Capture ring time + full call |\n| `record-from-ringing-dual` | Dual channel from ring | QA with ring time |\n\n**Always use `dual` for QA and analytics.** Dual-channel lets speech analytics tools (like Conversation Intelligence) distinguish agent from caller.\n\n### Conference Recording\n\nRecord multi-party calls via the Conference:\n\n**Python**\n```python\nresponse = VoiceResponse()\ndial = response.dial()\ndial.conference(\n    \"support-room-123\",\n    record=\"record-from-start\",  # Records from when conference starts\n    recording_status_callback=\"https:\u002F\u002Fyourapp.com\u002Fconf-recording-status\"\n)\n```\n\n**Note:** Conference recording captures the main audio mix. Coach\u002Fwhisper audio is NOT included. See `twilio-conference-calls`.\n\n### ConversationRelay Recording\n\n**Critical:** `record:true` on the REST API call is **silently ignored** with ConversationRelay. No error. No recording.\n\n**Correct approach:** Use `\u003CStart>\u003CRecording>` in TwiML before `\u003CConnect>`:\n\n**Python**\n```python\n@app.route(\"\u002Fvoice\", methods=[\"POST\"])\ndef voice():\n    response = VoiceResponse()\n    response.say(\"This call may be recorded.\")\n    \n    # Start recording BEFORE connecting ConversationRelay\n    start = Start()\n    start.recording(\n        recording_status_callback=\"https:\u002F\u002Fyourapp.com\u002Frecording-status\",\n        recording_status_callback_event=\"completed\"\n    )\n    response.append(start)\n    \n    # Now connect ConversationRelay\n    connect = Connect()\n    connect.conversation_relay(url=\"wss:\u002F\u002Fyourapp.com\u002Fws\u002Fvoice\")\n    response.append(connect)\n    \n    return str(response)\n```\n\n**Node.js**\n```node\napp.post(\"\u002Fvoice\", (req, res) => {\n    const response = new VoiceResponse();\n    response.say(\"This call may be recorded.\");\n    \n    const start = response.start();\n    start.recording({\n        recordingStatusCallback: \"https:\u002F\u002Fyourapp.com\u002Frecording-status\",\n        recordingStatusCallbackEvent: \"completed\",\n    });\n    \n    const connect = response.connect();\n    connect.conversationRelay({ url: \"wss:\u002F\u002Fyourapp.com\u002Fws\u002Fvoice\" });\n    \n    res.type(\"text\u002Fxml\").send(response.toString());\n});\n```\n\n### Mid-Call Pause for PCI Compliance\n\nPause recording when a customer provides payment information:\n\n**Python**\n```python\ndef pause_recording_for_payment(call_sid, recording_sid):\n    \"\"\"Pause recording during credit card capture.\"\"\"\n    client.calls(call_sid).recordings(recording_sid).update(\n        status=\"paused\"\n    )\n\ndef resume_recording(call_sid, recording_sid):\n    \"\"\"Resume recording after payment processed.\"\"\"\n    client.calls(call_sid).recordings(recording_sid).update(\n        status=\"in-progress\"\n    )\n```\n\n**Node.js**\n```node\nasync function pauseForPayment(callSid, recordingSid) {\n    await client.calls(callSid).recordings(recordingSid).update({\n        status: \"paused\",\n    });\n}\n\nasync function resumeRecording(callSid, recordingSid) {\n    await client.calls(callSid).recordings(recordingSid).update({\n        status: \"in-progress\",\n    });\n}\n```\n\n**PCI DSS:** Never record card numbers. Use Twilio's `\u003CPay>` verb when possible. If collecting verbally, pause recording for the duration. PCI Mode is IRREVERSIBLE and account-wide — use a sub-account if only some calls need PCI.\n\n### Accessing Recordings\n\n**Python**\n```python\n# List recordings for a specific call\nrecordings = client.recordings.list(call_sid=call_sid)\n\nfor recording in recordings:\n    print(f\"SID: {recording.sid}\")\n    print(f\"Duration: {recording.duration}s\")\n    print(f\"URL: https:\u002F\u002Fapi.twilio.com{recording.uri.replace('.json', '.mp3')}\")\n\n# Download a recording\nimport requests as req\naudio = req.get(\n    f\"https:\u002F\u002Fapi.twilio.com\u002F2010-04-01\u002FAccounts\u002F{account_sid}\u002FRecordings\u002F{recording_sid}.mp3\",\n    auth=(account_sid, auth_token)\n)\nwith open(\"recording.mp3\", \"wb\") as f:\n    f.write(audio.content)\n\n# Delete a recording (GDPR right to deletion)\nclient.recordings(recording_sid).delete()\n```\n\n### Recording Storage & Retention\n\n| Feature | Default | Notes |\n|---------|---------|-------|\n| Storage location | Twilio cloud | Can configure external storage (S3, GCS) |\n| Retention | Indefinite | Delete manually via API or set auto-delete policy |\n| Formats | WAV (default), MP3 | Request MP3 by appending `.mp3` to URL |\n| Encryption | At rest | Additional encryption with PCI Mode |\n\n---\n\n## Common Errors\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| Recording captures only caller (no agent) | Used `\u003CRecord>` verb instead of `\u003CDial record>` | Switch to `\u003CDial record=\"record-from-answer\">` |\n| No recording at all | Used REST API `record:true` with ConversationRelay | Use `\u003CStart>\u003CRecording>` in TwiML |\n| Recording is empty \u002F silent | Webhook endpoint unreachable, recording never started | Check StatusCallback URL reachability |\n| Recording has both parties on same channel | Used `record-from-answer` (mono) | Use `record-from-answer-dual` for separate channels |\n| Coach audio missing from conference recording | Expected behavior — coach audio isn't in the mix | Record coach's call leg separately |\n\n---\n\n## CANNOT\n\n- **`recordingTrack` has no observable effect via TwiML** — The `\u003CStart>\u003CRecording>` TwiML parameter `recordingTrack` does not isolate tracks. Use the Recordings REST API with `recordingTrack` for actual track isolation.\n- **Cannot start API recordings on ConversationRelay calls** — REST API `record:true` is silently ignored (\"not eligible for recording\"). Must use `\u003CStart>\u003CRecording>` before `\u003CConnect>` in TwiML.\n- **Cannot pause\u002Fresume recordings via TwiML** — Only available via the REST API (`update` with `status=\"paused\"` or `status=\"in-progress\"`).\n- **Cannot get dual-channel conference recordings** — Conference recording is always mono (mixed).\n- **Cannot get dual-channel from Calls API without explicit param** — `Record=true` defaults to mono. Must specify `recordingChannels: 'dual'`.\n- **Cannot transcribe PCI-mode recordings** — Recordings created while PCI mode was enabled cannot be transcribed, even after PCI is disabled.\n- **Cannot use `\u003CRecord>` verb for call recording** — `\u003CRecord>` captures the caller only (voicemail-style). Use `\u003CDial record>` or `\u003CStart>\u003CRecording>` for call recording.\n- **Cannot capture coach\u002Fwhisper audio in conference recordings** — Supervisor whisper is excluded from the mix\n- **Cannot reverse PCI Mode** — PCI Mode is irreversible and account-wide. Once enabled, all recordings are encrypted.\n- **Cannot auto-delete recordings without configuration** — Recordings are retained indefinitely unless you configure auto-deletion\n- **Cannot avoid larger file sizes with dual-channel** — Dual-channel recordings are ~2x the size of mono. Factor into storage costs.\n\n---\n\n## Next Steps\n\n- **Conference calls:** `twilio-conference-calls`\n- **Agent routing:** `twilio-taskrouter-routing`\n- **Compliance:** `twilio-compliance-traffic`\n- **Debug recording issues:** `twilio-debugging-observability`\n",{"data":34,"body":35},{"name":4,"description":6},{"type":36,"children":37},"root",[38,47,78,219,223,229,310,313,319,326,345,353,500,508,597,603,625,632,741,744,750,761,876,894,900,905,913,976,993,999,1024,1049,1056,1213,1221,1339,1345,1350,1357,1448,1455,1545,1563,1569,1576,1731,1737,1844,1847,1853,2013,2016,2022,2248,2251,2257,2318],{"type":39,"tag":40,"props":41,"children":43},"element","h2",{"id":42},"overview",[44],{"type":45,"value":46},"text","Overview",{"type":39,"tag":48,"props":49,"children":50},"p",{},[51,53,59,61,68,70,76],{"type":45,"value":52},"Twilio offers multiple recording methods. Choosing the wrong one is the ",{"type":39,"tag":54,"props":55,"children":56},"strong",{},[57],{"type":45,"value":58},"#1 developer mistake",{"type":45,"value":60}," in voice — using ",{"type":39,"tag":62,"props":63,"children":65},"code",{"className":64},[],[66],{"type":45,"value":67},"\u003CRecord>",{"type":45,"value":69}," when you mean ",{"type":39,"tag":62,"props":71,"children":73},{"className":72},[],[74],{"type":45,"value":75},"\u003CDial record>",{"type":45,"value":77}," produces voicemail behavior instead of call recording.",{"type":39,"tag":79,"props":80,"children":81},"table",{},[82,106],{"type":39,"tag":83,"props":84,"children":85},"thead",{},[86],{"type":39,"tag":87,"props":88,"children":89},"tr",{},[90,96,101],{"type":39,"tag":91,"props":92,"children":93},"th",{},[94],{"type":45,"value":95},"Method",{"type":39,"tag":91,"props":97,"children":98},{},[99],{"type":45,"value":100},"What it does",{"type":39,"tag":91,"props":102,"children":103},{},[104],{"type":45,"value":105},"Use when",{"type":39,"tag":107,"props":108,"children":109},"tbody",{},[110,134,155,177,201],{"type":39,"tag":87,"props":111,"children":112},{},[113,124,129],{"type":39,"tag":114,"props":115,"children":116},"td",{},[117,122],{"type":39,"tag":62,"props":118,"children":120},{"className":119},[],[121],{"type":45,"value":67},{"type":45,"value":123}," verb",{"type":39,"tag":114,"props":125,"children":126},{},[127],{"type":45,"value":128},"Records the CALLER only (voicemail-style)",{"type":39,"tag":114,"props":130,"children":131},{},[132],{"type":45,"value":133},"Leaving a message, capturing input",{"type":39,"tag":87,"props":135,"children":136},{},[137,145,150],{"type":39,"tag":114,"props":138,"children":139},{},[140],{"type":39,"tag":62,"props":141,"children":143},{"className":142},[],[144],{"type":45,"value":75},{"type":39,"tag":114,"props":146,"children":147},{},[148],{"type":45,"value":149},"Records BOTH parties on a call",{"type":39,"tag":114,"props":151,"children":152},{},[153],{"type":45,"value":154},"Call recording for two-party calls",{"type":39,"tag":87,"props":156,"children":157},{},[158,167,172],{"type":39,"tag":114,"props":159,"children":160},{},[161],{"type":39,"tag":62,"props":162,"children":164},{"className":163},[],[165],{"type":45,"value":166},"\u003CStart>\u003CRecording>",{"type":39,"tag":114,"props":168,"children":169},{},[170],{"type":45,"value":171},"Starts a recording alongside other verbs",{"type":39,"tag":114,"props":173,"children":174},{},[175],{"type":45,"value":176},"ConversationRelay, multi-verb flows",{"type":39,"tag":87,"props":178,"children":179},{},[180,191,196],{"type":39,"tag":114,"props":181,"children":182},{},[183,185],{"type":45,"value":184},"Conference ",{"type":39,"tag":62,"props":186,"children":188},{"className":187},[],[189],{"type":45,"value":190},"record",{"type":39,"tag":114,"props":192,"children":193},{},[194],{"type":45,"value":195},"Records the conference mix",{"type":39,"tag":114,"props":197,"children":198},{},[199],{"type":45,"value":200},"Multi-party calls",{"type":39,"tag":87,"props":202,"children":203},{},[204,209,214],{"type":39,"tag":114,"props":205,"children":206},{},[207],{"type":45,"value":208},"Recordings REST API",{"type":39,"tag":114,"props":210,"children":211},{},[212],{"type":45,"value":213},"Programmatic control mid-call",{"type":39,"tag":114,"props":215,"children":216},{},[217],{"type":45,"value":218},"Pause during payment (PCI)",{"type":39,"tag":220,"props":221,"children":222},"hr",{},[],{"type":39,"tag":40,"props":224,"children":226},{"id":225},"prerequisites",[227],{"type":45,"value":228},"Prerequisites",{"type":39,"tag":230,"props":231,"children":232},"ul",{},[233,245,270,289,294],{"type":39,"tag":234,"props":235,"children":236},"li",{},[237,239],{"type":45,"value":238},"Twilio account with a voice-capable phone number — see ",{"type":39,"tag":62,"props":240,"children":242},{"className":241},[],[243],{"type":45,"value":244},"twilio-account-setup",{"type":39,"tag":234,"props":246,"children":247},{},[248,254,256,262,264],{"type":39,"tag":62,"props":249,"children":251},{"className":250},[],[252],{"type":45,"value":253},"TWILIO_ACCOUNT_SID",{"type":45,"value":255}," and ",{"type":39,"tag":62,"props":257,"children":259},{"className":258},[],[260],{"type":45,"value":261},"TWILIO_AUTH_TOKEN",{"type":45,"value":263}," — see ",{"type":39,"tag":62,"props":265,"children":267},{"className":266},[],[268],{"type":45,"value":269},"twilio-iam-auth-setup",{"type":39,"tag":234,"props":271,"children":272},{},[273,275,281,283],{"type":45,"value":274},"SDK: ",{"type":39,"tag":62,"props":276,"children":278},{"className":277},[],[279],{"type":45,"value":280},"pip install twilio",{"type":45,"value":282}," \u002F ",{"type":39,"tag":62,"props":284,"children":286},{"className":285},[],[287],{"type":45,"value":288},"npm install twilio",{"type":39,"tag":234,"props":290,"children":291},{},[292],{"type":45,"value":293},"A webhook endpoint for recording status callbacks",{"type":39,"tag":234,"props":295,"children":296},{},[297,302,304],{"type":39,"tag":54,"props":298,"children":299},{},[300],{"type":45,"value":301},"Compliance check:",{"type":45,"value":303}," Recording consent requirements vary by jurisdiction — see ",{"type":39,"tag":62,"props":305,"children":307},{"className":306},[],[308],{"type":45,"value":309},"twilio-compliance-traffic",{"type":39,"tag":220,"props":311,"children":312},{},[],{"type":39,"tag":40,"props":314,"children":316},{"id":315},"quickstart",[317],{"type":45,"value":318},"Quickstart",{"type":39,"tag":320,"props":321,"children":323},"h3",{"id":322},"record-a-two-party-call-most-common",[324],{"type":45,"value":325},"Record a Two-Party Call (Most Common)",{"type":39,"tag":48,"props":327,"children":328},{},[329,331,336,338,343],{"type":45,"value":330},"Use ",{"type":39,"tag":62,"props":332,"children":334},{"className":333},[],[335],{"type":45,"value":75},{"type":45,"value":337}," — NOT ",{"type":39,"tag":62,"props":339,"children":341},{"className":340},[],[342],{"type":45,"value":67},{"type":45,"value":344},".",{"type":39,"tag":48,"props":346,"children":347},{},[348],{"type":39,"tag":54,"props":349,"children":350},{},[351],{"type":45,"value":352},"Python (Flask)",{"type":39,"tag":354,"props":355,"children":360},"pre",{"className":356,"code":357,"language":358,"meta":359,"style":359},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","from flask import Flask, request\nfrom twilio.twiml.voice_response import VoiceResponse\n\napp = Flask(__name__)\n\n@app.route(\"\u002Fvoice\", methods=[\"POST\"])\ndef incoming_call():\n    response = VoiceResponse()\n    response.say(\"This call may be recorded for quality assurance.\")\n    dial = response.dial(\n        record=\"record-from-answer-dual\",  # dual-channel: agent on one, caller on other\n        recording_status_callback=\"https:\u002F\u002Fyourapp.com\u002Frecording-status\"\n    )\n    dial.number(\"+15558675310\")  # agent's phone\n    return str(response)\n","python","",[361],{"type":39,"tag":62,"props":362,"children":363},{"__ignoreMap":359},[364,375,384,394,403,411,420,428,437,446,455,464,473,482,491],{"type":39,"tag":365,"props":366,"children":369},"span",{"class":367,"line":368},"line",1,[370],{"type":39,"tag":365,"props":371,"children":372},{},[373],{"type":45,"value":374},"from flask import Flask, request\n",{"type":39,"tag":365,"props":376,"children":378},{"class":367,"line":377},2,[379],{"type":39,"tag":365,"props":380,"children":381},{},[382],{"type":45,"value":383},"from twilio.twiml.voice_response import VoiceResponse\n",{"type":39,"tag":365,"props":385,"children":387},{"class":367,"line":386},3,[388],{"type":39,"tag":365,"props":389,"children":391},{"emptyLinePlaceholder":390},true,[392],{"type":45,"value":393},"\n",{"type":39,"tag":365,"props":395,"children":397},{"class":367,"line":396},4,[398],{"type":39,"tag":365,"props":399,"children":400},{},[401],{"type":45,"value":402},"app = Flask(__name__)\n",{"type":39,"tag":365,"props":404,"children":406},{"class":367,"line":405},5,[407],{"type":39,"tag":365,"props":408,"children":409},{"emptyLinePlaceholder":390},[410],{"type":45,"value":393},{"type":39,"tag":365,"props":412,"children":414},{"class":367,"line":413},6,[415],{"type":39,"tag":365,"props":416,"children":417},{},[418],{"type":45,"value":419},"@app.route(\"\u002Fvoice\", methods=[\"POST\"])\n",{"type":39,"tag":365,"props":421,"children":422},{"class":367,"line":27},[423],{"type":39,"tag":365,"props":424,"children":425},{},[426],{"type":45,"value":427},"def incoming_call():\n",{"type":39,"tag":365,"props":429,"children":431},{"class":367,"line":430},8,[432],{"type":39,"tag":365,"props":433,"children":434},{},[435],{"type":45,"value":436},"    response = VoiceResponse()\n",{"type":39,"tag":365,"props":438,"children":440},{"class":367,"line":439},9,[441],{"type":39,"tag":365,"props":442,"children":443},{},[444],{"type":45,"value":445},"    response.say(\"This call may be recorded for quality assurance.\")\n",{"type":39,"tag":365,"props":447,"children":449},{"class":367,"line":448},10,[450],{"type":39,"tag":365,"props":451,"children":452},{},[453],{"type":45,"value":454},"    dial = response.dial(\n",{"type":39,"tag":365,"props":456,"children":458},{"class":367,"line":457},11,[459],{"type":39,"tag":365,"props":460,"children":461},{},[462],{"type":45,"value":463},"        record=\"record-from-answer-dual\",  # dual-channel: agent on one, caller on other\n",{"type":39,"tag":365,"props":465,"children":467},{"class":367,"line":466},12,[468],{"type":39,"tag":365,"props":469,"children":470},{},[471],{"type":45,"value":472},"        recording_status_callback=\"https:\u002F\u002Fyourapp.com\u002Frecording-status\"\n",{"type":39,"tag":365,"props":474,"children":476},{"class":367,"line":475},13,[477],{"type":39,"tag":365,"props":478,"children":479},{},[480],{"type":45,"value":481},"    )\n",{"type":39,"tag":365,"props":483,"children":485},{"class":367,"line":484},14,[486],{"type":39,"tag":365,"props":487,"children":488},{},[489],{"type":45,"value":490},"    dial.number(\"+15558675310\")  # agent's phone\n",{"type":39,"tag":365,"props":492,"children":494},{"class":367,"line":493},15,[495],{"type":39,"tag":365,"props":496,"children":497},{},[498],{"type":45,"value":499},"    return str(response)\n",{"type":39,"tag":48,"props":501,"children":502},{},[503],{"type":39,"tag":54,"props":504,"children":505},{},[506],{"type":45,"value":507},"Node.js (Express)",{"type":39,"tag":354,"props":509,"children":513},{"className":510,"code":511,"language":512,"meta":359,"style":359},"language-node shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","app.post(\"\u002Fvoice\", (req, res) => {\n    const response = new VoiceResponse();\n    response.say(\"This call may be recorded for quality assurance.\");\n    const dial = response.dial({\n        record: \"record-from-answer-dual\",\n        recordingStatusCallback: \"https:\u002F\u002Fyourapp.com\u002Frecording-status\",\n    });\n    dial.number(\"+15558675310\");\n    res.type(\"text\u002Fxml\").send(response.toString());\n});\n","node",[514],{"type":39,"tag":62,"props":515,"children":516},{"__ignoreMap":359},[517,525,533,541,549,557,565,573,581,589],{"type":39,"tag":365,"props":518,"children":519},{"class":367,"line":368},[520],{"type":39,"tag":365,"props":521,"children":522},{},[523],{"type":45,"value":524},"app.post(\"\u002Fvoice\", (req, res) => {\n",{"type":39,"tag":365,"props":526,"children":527},{"class":367,"line":377},[528],{"type":39,"tag":365,"props":529,"children":530},{},[531],{"type":45,"value":532},"    const response = new VoiceResponse();\n",{"type":39,"tag":365,"props":534,"children":535},{"class":367,"line":386},[536],{"type":39,"tag":365,"props":537,"children":538},{},[539],{"type":45,"value":540},"    response.say(\"This call may be recorded for quality assurance.\");\n",{"type":39,"tag":365,"props":542,"children":543},{"class":367,"line":396},[544],{"type":39,"tag":365,"props":545,"children":546},{},[547],{"type":45,"value":548},"    const dial = response.dial({\n",{"type":39,"tag":365,"props":550,"children":551},{"class":367,"line":405},[552],{"type":39,"tag":365,"props":553,"children":554},{},[555],{"type":45,"value":556},"        record: \"record-from-answer-dual\",\n",{"type":39,"tag":365,"props":558,"children":559},{"class":367,"line":413},[560],{"type":39,"tag":365,"props":561,"children":562},{},[563],{"type":45,"value":564},"        recordingStatusCallback: \"https:\u002F\u002Fyourapp.com\u002Frecording-status\",\n",{"type":39,"tag":365,"props":566,"children":567},{"class":367,"line":27},[568],{"type":39,"tag":365,"props":569,"children":570},{},[571],{"type":45,"value":572},"    });\n",{"type":39,"tag":365,"props":574,"children":575},{"class":367,"line":430},[576],{"type":39,"tag":365,"props":577,"children":578},{},[579],{"type":45,"value":580},"    dial.number(\"+15558675310\");\n",{"type":39,"tag":365,"props":582,"children":583},{"class":367,"line":439},[584],{"type":39,"tag":365,"props":585,"children":586},{},[587],{"type":45,"value":588},"    res.type(\"text\u002Fxml\").send(response.toString());\n",{"type":39,"tag":365,"props":590,"children":591},{"class":367,"line":448},[592],{"type":39,"tag":365,"props":593,"children":594},{},[595],{"type":45,"value":596},"});\n",{"type":39,"tag":320,"props":598,"children":600},{"id":599},"handle-the-recording-status-callback",[601],{"type":45,"value":602},"Handle the Recording Status Callback",{"type":39,"tag":604,"props":605,"children":606},"blockquote",{},[607],{"type":39,"tag":48,"props":608,"children":609},{},[610,615,617,623],{"type":39,"tag":54,"props":611,"children":612},{},[613],{"type":45,"value":614},"Security:",{"type":45,"value":616}," Validate ",{"type":39,"tag":62,"props":618,"children":620},{"className":619},[],[621],{"type":45,"value":622},"X-Twilio-Signature",{"type":45,"value":624}," on recording callbacks in production. Without validation, attackers could POST fake recording URLs to your endpoint.",{"type":39,"tag":48,"props":626,"children":627},{},[628],{"type":39,"tag":54,"props":629,"children":630},{},[631],{"type":45,"value":352},{"type":39,"tag":354,"props":633,"children":635},{"className":356,"code":634,"language":358,"meta":359,"style":359},"@app.route(\"\u002Frecording-status\", methods=[\"POST\"])\ndef recording_status():\n    recording_sid = request.form[\"RecordingSid\"]\n    recording_url = request.form[\"RecordingUrl\"]\n    call_sid = request.form[\"CallSid\"]\n    status = request.form[\"RecordingStatus\"]  # \"completed\", \"failed\"\n    duration = request.form.get(\"RecordingDuration\", 0)\n\n    if status == \"completed\":\n        # Store recording reference\n        save_recording(call_sid, recording_sid, recording_url, duration)\n\n    return \"\", 200\n",[636],{"type":39,"tag":62,"props":637,"children":638},{"__ignoreMap":359},[639,647,655,663,671,679,687,695,702,710,718,726,733],{"type":39,"tag":365,"props":640,"children":641},{"class":367,"line":368},[642],{"type":39,"tag":365,"props":643,"children":644},{},[645],{"type":45,"value":646},"@app.route(\"\u002Frecording-status\", methods=[\"POST\"])\n",{"type":39,"tag":365,"props":648,"children":649},{"class":367,"line":377},[650],{"type":39,"tag":365,"props":651,"children":652},{},[653],{"type":45,"value":654},"def recording_status():\n",{"type":39,"tag":365,"props":656,"children":657},{"class":367,"line":386},[658],{"type":39,"tag":365,"props":659,"children":660},{},[661],{"type":45,"value":662},"    recording_sid = request.form[\"RecordingSid\"]\n",{"type":39,"tag":365,"props":664,"children":665},{"class":367,"line":396},[666],{"type":39,"tag":365,"props":667,"children":668},{},[669],{"type":45,"value":670},"    recording_url = request.form[\"RecordingUrl\"]\n",{"type":39,"tag":365,"props":672,"children":673},{"class":367,"line":405},[674],{"type":39,"tag":365,"props":675,"children":676},{},[677],{"type":45,"value":678},"    call_sid = request.form[\"CallSid\"]\n",{"type":39,"tag":365,"props":680,"children":681},{"class":367,"line":413},[682],{"type":39,"tag":365,"props":683,"children":684},{},[685],{"type":45,"value":686},"    status = request.form[\"RecordingStatus\"]  # \"completed\", \"failed\"\n",{"type":39,"tag":365,"props":688,"children":689},{"class":367,"line":27},[690],{"type":39,"tag":365,"props":691,"children":692},{},[693],{"type":45,"value":694},"    duration = request.form.get(\"RecordingDuration\", 0)\n",{"type":39,"tag":365,"props":696,"children":697},{"class":367,"line":430},[698],{"type":39,"tag":365,"props":699,"children":700},{"emptyLinePlaceholder":390},[701],{"type":45,"value":393},{"type":39,"tag":365,"props":703,"children":704},{"class":367,"line":439},[705],{"type":39,"tag":365,"props":706,"children":707},{},[708],{"type":45,"value":709},"    if status == \"completed\":\n",{"type":39,"tag":365,"props":711,"children":712},{"class":367,"line":448},[713],{"type":39,"tag":365,"props":714,"children":715},{},[716],{"type":45,"value":717},"        # Store recording reference\n",{"type":39,"tag":365,"props":719,"children":720},{"class":367,"line":457},[721],{"type":39,"tag":365,"props":722,"children":723},{},[724],{"type":45,"value":725},"        save_recording(call_sid, recording_sid, recording_url, duration)\n",{"type":39,"tag":365,"props":727,"children":728},{"class":367,"line":466},[729],{"type":39,"tag":365,"props":730,"children":731},{"emptyLinePlaceholder":390},[732],{"type":45,"value":393},{"type":39,"tag":365,"props":734,"children":735},{"class":367,"line":475},[736],{"type":39,"tag":365,"props":737,"children":738},{},[739],{"type":45,"value":740},"    return \"\", 200\n",{"type":39,"tag":220,"props":742,"children":743},{},[],{"type":39,"tag":40,"props":745,"children":747},{"id":746},"key-patterns",[748],{"type":45,"value":749},"Key Patterns",{"type":39,"tag":320,"props":751,"children":753},{"id":752},"recording-modes-for-dial-record",[754,756],{"type":45,"value":755},"Recording Modes for ",{"type":39,"tag":62,"props":757,"children":759},{"className":758},[],[760],{"type":45,"value":75},{"type":39,"tag":79,"props":762,"children":763},{},[764,785],{"type":39,"tag":83,"props":765,"children":766},{},[767],{"type":39,"tag":87,"props":768,"children":769},{},[770,775,780],{"type":39,"tag":91,"props":771,"children":772},{},[773],{"type":45,"value":774},"Mode",{"type":39,"tag":91,"props":776,"children":777},{},[778],{"type":45,"value":779},"What's recorded",{"type":39,"tag":91,"props":781,"children":782},{},[783],{"type":45,"value":784},"Use case",{"type":39,"tag":107,"props":786,"children":787},{},[788,810,832,854],{"type":39,"tag":87,"props":789,"children":790},{},[791,800,805],{"type":39,"tag":114,"props":792,"children":793},{},[794],{"type":39,"tag":62,"props":795,"children":797},{"className":796},[],[798],{"type":45,"value":799},"record-from-answer",{"type":39,"tag":114,"props":801,"children":802},{},[803],{"type":45,"value":804},"Single channel, both parties mixed",{"type":39,"tag":114,"props":806,"children":807},{},[808],{"type":45,"value":809},"Simple recording",{"type":39,"tag":87,"props":811,"children":812},{},[813,822,827],{"type":39,"tag":114,"props":814,"children":815},{},[816],{"type":39,"tag":62,"props":817,"children":819},{"className":818},[],[820],{"type":45,"value":821},"record-from-answer-dual",{"type":39,"tag":114,"props":823,"children":824},{},[825],{"type":45,"value":826},"Dual channel — caller on left, agent on right",{"type":39,"tag":114,"props":828,"children":829},{},[830],{"type":45,"value":831},"QA (separate agent\u002Fcaller audio)",{"type":39,"tag":87,"props":833,"children":834},{},[835,844,849],{"type":39,"tag":114,"props":836,"children":837},{},[838],{"type":39,"tag":62,"props":839,"children":841},{"className":840},[],[842],{"type":45,"value":843},"record-from-ringing",{"type":39,"tag":114,"props":845,"children":846},{},[847],{"type":45,"value":848},"Records from ring, not answer",{"type":39,"tag":114,"props":850,"children":851},{},[852],{"type":45,"value":853},"Capture ring time + full call",{"type":39,"tag":87,"props":855,"children":856},{},[857,866,871],{"type":39,"tag":114,"props":858,"children":859},{},[860],{"type":39,"tag":62,"props":861,"children":863},{"className":862},[],[864],{"type":45,"value":865},"record-from-ringing-dual",{"type":39,"tag":114,"props":867,"children":868},{},[869],{"type":45,"value":870},"Dual channel from ring",{"type":39,"tag":114,"props":872,"children":873},{},[874],{"type":45,"value":875},"QA with ring time",{"type":39,"tag":48,"props":877,"children":878},{},[879,892],{"type":39,"tag":54,"props":880,"children":881},{},[882,884,890],{"type":45,"value":883},"Always use ",{"type":39,"tag":62,"props":885,"children":887},{"className":886},[],[888],{"type":45,"value":889},"dual",{"type":45,"value":891}," for QA and analytics.",{"type":45,"value":893}," Dual-channel lets speech analytics tools (like Conversation Intelligence) distinguish agent from caller.",{"type":39,"tag":320,"props":895,"children":897},{"id":896},"conference-recording",[898],{"type":45,"value":899},"Conference Recording",{"type":39,"tag":48,"props":901,"children":902},{},[903],{"type":45,"value":904},"Record multi-party calls via the Conference:",{"type":39,"tag":48,"props":906,"children":907},{},[908],{"type":39,"tag":54,"props":909,"children":910},{},[911],{"type":45,"value":912},"Python",{"type":39,"tag":354,"props":914,"children":916},{"className":356,"code":915,"language":358,"meta":359,"style":359},"response = VoiceResponse()\ndial = response.dial()\ndial.conference(\n    \"support-room-123\",\n    record=\"record-from-start\",  # Records from when conference starts\n    recording_status_callback=\"https:\u002F\u002Fyourapp.com\u002Fconf-recording-status\"\n)\n",[917],{"type":39,"tag":62,"props":918,"children":919},{"__ignoreMap":359},[920,928,936,944,952,960,968],{"type":39,"tag":365,"props":921,"children":922},{"class":367,"line":368},[923],{"type":39,"tag":365,"props":924,"children":925},{},[926],{"type":45,"value":927},"response = VoiceResponse()\n",{"type":39,"tag":365,"props":929,"children":930},{"class":367,"line":377},[931],{"type":39,"tag":365,"props":932,"children":933},{},[934],{"type":45,"value":935},"dial = response.dial()\n",{"type":39,"tag":365,"props":937,"children":938},{"class":367,"line":386},[939],{"type":39,"tag":365,"props":940,"children":941},{},[942],{"type":45,"value":943},"dial.conference(\n",{"type":39,"tag":365,"props":945,"children":946},{"class":367,"line":396},[947],{"type":39,"tag":365,"props":948,"children":949},{},[950],{"type":45,"value":951},"    \"support-room-123\",\n",{"type":39,"tag":365,"props":953,"children":954},{"class":367,"line":405},[955],{"type":39,"tag":365,"props":956,"children":957},{},[958],{"type":45,"value":959},"    record=\"record-from-start\",  # Records from when conference starts\n",{"type":39,"tag":365,"props":961,"children":962},{"class":367,"line":413},[963],{"type":39,"tag":365,"props":964,"children":965},{},[966],{"type":45,"value":967},"    recording_status_callback=\"https:\u002F\u002Fyourapp.com\u002Fconf-recording-status\"\n",{"type":39,"tag":365,"props":969,"children":970},{"class":367,"line":27},[971],{"type":39,"tag":365,"props":972,"children":973},{},[974],{"type":45,"value":975},")\n",{"type":39,"tag":48,"props":977,"children":978},{},[979,984,986,992],{"type":39,"tag":54,"props":980,"children":981},{},[982],{"type":45,"value":983},"Note:",{"type":45,"value":985}," Conference recording captures the main audio mix. Coach\u002Fwhisper audio is NOT included. See ",{"type":39,"tag":62,"props":987,"children":989},{"className":988},[],[990],{"type":45,"value":991},"twilio-conference-calls",{"type":45,"value":344},{"type":39,"tag":320,"props":994,"children":996},{"id":995},"conversationrelay-recording",[997],{"type":45,"value":998},"ConversationRelay Recording",{"type":39,"tag":48,"props":1000,"children":1001},{},[1002,1007,1009,1015,1017,1022],{"type":39,"tag":54,"props":1003,"children":1004},{},[1005],{"type":45,"value":1006},"Critical:",{"type":45,"value":1008}," ",{"type":39,"tag":62,"props":1010,"children":1012},{"className":1011},[],[1013],{"type":45,"value":1014},"record:true",{"type":45,"value":1016}," on the REST API call is ",{"type":39,"tag":54,"props":1018,"children":1019},{},[1020],{"type":45,"value":1021},"silently ignored",{"type":45,"value":1023}," with ConversationRelay. No error. No recording.",{"type":39,"tag":48,"props":1025,"children":1026},{},[1027,1032,1034,1039,1041,1047],{"type":39,"tag":54,"props":1028,"children":1029},{},[1030],{"type":45,"value":1031},"Correct approach:",{"type":45,"value":1033}," Use ",{"type":39,"tag":62,"props":1035,"children":1037},{"className":1036},[],[1038],{"type":45,"value":166},{"type":45,"value":1040}," in TwiML before ",{"type":39,"tag":62,"props":1042,"children":1044},{"className":1043},[],[1045],{"type":45,"value":1046},"\u003CConnect>",{"type":45,"value":1048},":",{"type":39,"tag":48,"props":1050,"children":1051},{},[1052],{"type":39,"tag":54,"props":1053,"children":1054},{},[1055],{"type":45,"value":912},{"type":39,"tag":354,"props":1057,"children":1059},{"className":356,"code":1058,"language":358,"meta":359,"style":359},"@app.route(\"\u002Fvoice\", methods=[\"POST\"])\ndef voice():\n    response = VoiceResponse()\n    response.say(\"This call may be recorded.\")\n    \n    # Start recording BEFORE connecting ConversationRelay\n    start = Start()\n    start.recording(\n        recording_status_callback=\"https:\u002F\u002Fyourapp.com\u002Frecording-status\",\n        recording_status_callback_event=\"completed\"\n    )\n    response.append(start)\n    \n    # Now connect ConversationRelay\n    connect = Connect()\n    connect.conversation_relay(url=\"wss:\u002F\u002Fyourapp.com\u002Fws\u002Fvoice\")\n    response.append(connect)\n    \n    return str(response)\n",[1060],{"type":39,"tag":62,"props":1061,"children":1062},{"__ignoreMap":359},[1063,1070,1078,1085,1093,1101,1109,1117,1125,1133,1141,1148,1156,1163,1171,1179,1188,1197,1205],{"type":39,"tag":365,"props":1064,"children":1065},{"class":367,"line":368},[1066],{"type":39,"tag":365,"props":1067,"children":1068},{},[1069],{"type":45,"value":419},{"type":39,"tag":365,"props":1071,"children":1072},{"class":367,"line":377},[1073],{"type":39,"tag":365,"props":1074,"children":1075},{},[1076],{"type":45,"value":1077},"def voice():\n",{"type":39,"tag":365,"props":1079,"children":1080},{"class":367,"line":386},[1081],{"type":39,"tag":365,"props":1082,"children":1083},{},[1084],{"type":45,"value":436},{"type":39,"tag":365,"props":1086,"children":1087},{"class":367,"line":396},[1088],{"type":39,"tag":365,"props":1089,"children":1090},{},[1091],{"type":45,"value":1092},"    response.say(\"This call may be recorded.\")\n",{"type":39,"tag":365,"props":1094,"children":1095},{"class":367,"line":405},[1096],{"type":39,"tag":365,"props":1097,"children":1098},{},[1099],{"type":45,"value":1100},"    \n",{"type":39,"tag":365,"props":1102,"children":1103},{"class":367,"line":413},[1104],{"type":39,"tag":365,"props":1105,"children":1106},{},[1107],{"type":45,"value":1108},"    # Start recording BEFORE connecting ConversationRelay\n",{"type":39,"tag":365,"props":1110,"children":1111},{"class":367,"line":27},[1112],{"type":39,"tag":365,"props":1113,"children":1114},{},[1115],{"type":45,"value":1116},"    start = Start()\n",{"type":39,"tag":365,"props":1118,"children":1119},{"class":367,"line":430},[1120],{"type":39,"tag":365,"props":1121,"children":1122},{},[1123],{"type":45,"value":1124},"    start.recording(\n",{"type":39,"tag":365,"props":1126,"children":1127},{"class":367,"line":439},[1128],{"type":39,"tag":365,"props":1129,"children":1130},{},[1131],{"type":45,"value":1132},"        recording_status_callback=\"https:\u002F\u002Fyourapp.com\u002Frecording-status\",\n",{"type":39,"tag":365,"props":1134,"children":1135},{"class":367,"line":448},[1136],{"type":39,"tag":365,"props":1137,"children":1138},{},[1139],{"type":45,"value":1140},"        recording_status_callback_event=\"completed\"\n",{"type":39,"tag":365,"props":1142,"children":1143},{"class":367,"line":457},[1144],{"type":39,"tag":365,"props":1145,"children":1146},{},[1147],{"type":45,"value":481},{"type":39,"tag":365,"props":1149,"children":1150},{"class":367,"line":466},[1151],{"type":39,"tag":365,"props":1152,"children":1153},{},[1154],{"type":45,"value":1155},"    response.append(start)\n",{"type":39,"tag":365,"props":1157,"children":1158},{"class":367,"line":475},[1159],{"type":39,"tag":365,"props":1160,"children":1161},{},[1162],{"type":45,"value":1100},{"type":39,"tag":365,"props":1164,"children":1165},{"class":367,"line":484},[1166],{"type":39,"tag":365,"props":1167,"children":1168},{},[1169],{"type":45,"value":1170},"    # Now connect ConversationRelay\n",{"type":39,"tag":365,"props":1172,"children":1173},{"class":367,"line":493},[1174],{"type":39,"tag":365,"props":1175,"children":1176},{},[1177],{"type":45,"value":1178},"    connect = Connect()\n",{"type":39,"tag":365,"props":1180,"children":1182},{"class":367,"line":1181},16,[1183],{"type":39,"tag":365,"props":1184,"children":1185},{},[1186],{"type":45,"value":1187},"    connect.conversation_relay(url=\"wss:\u002F\u002Fyourapp.com\u002Fws\u002Fvoice\")\n",{"type":39,"tag":365,"props":1189,"children":1191},{"class":367,"line":1190},17,[1192],{"type":39,"tag":365,"props":1193,"children":1194},{},[1195],{"type":45,"value":1196},"    response.append(connect)\n",{"type":39,"tag":365,"props":1198,"children":1200},{"class":367,"line":1199},18,[1201],{"type":39,"tag":365,"props":1202,"children":1203},{},[1204],{"type":45,"value":1100},{"type":39,"tag":365,"props":1206,"children":1208},{"class":367,"line":1207},19,[1209],{"type":39,"tag":365,"props":1210,"children":1211},{},[1212],{"type":45,"value":499},{"type":39,"tag":48,"props":1214,"children":1215},{},[1216],{"type":39,"tag":54,"props":1217,"children":1218},{},[1219],{"type":45,"value":1220},"Node.js",{"type":39,"tag":354,"props":1222,"children":1224},{"className":510,"code":1223,"language":512,"meta":359,"style":359},"app.post(\"\u002Fvoice\", (req, res) => {\n    const response = new VoiceResponse();\n    response.say(\"This call may be recorded.\");\n    \n    const start = response.start();\n    start.recording({\n        recordingStatusCallback: \"https:\u002F\u002Fyourapp.com\u002Frecording-status\",\n        recordingStatusCallbackEvent: \"completed\",\n    });\n    \n    const connect = response.connect();\n    connect.conversationRelay({ url: \"wss:\u002F\u002Fyourapp.com\u002Fws\u002Fvoice\" });\n    \n    res.type(\"text\u002Fxml\").send(response.toString());\n});\n",[1225],{"type":39,"tag":62,"props":1226,"children":1227},{"__ignoreMap":359},[1228,1235,1242,1250,1257,1265,1273,1280,1288,1295,1302,1310,1318,1325,1332],{"type":39,"tag":365,"props":1229,"children":1230},{"class":367,"line":368},[1231],{"type":39,"tag":365,"props":1232,"children":1233},{},[1234],{"type":45,"value":524},{"type":39,"tag":365,"props":1236,"children":1237},{"class":367,"line":377},[1238],{"type":39,"tag":365,"props":1239,"children":1240},{},[1241],{"type":45,"value":532},{"type":39,"tag":365,"props":1243,"children":1244},{"class":367,"line":386},[1245],{"type":39,"tag":365,"props":1246,"children":1247},{},[1248],{"type":45,"value":1249},"    response.say(\"This call may be recorded.\");\n",{"type":39,"tag":365,"props":1251,"children":1252},{"class":367,"line":396},[1253],{"type":39,"tag":365,"props":1254,"children":1255},{},[1256],{"type":45,"value":1100},{"type":39,"tag":365,"props":1258,"children":1259},{"class":367,"line":405},[1260],{"type":39,"tag":365,"props":1261,"children":1262},{},[1263],{"type":45,"value":1264},"    const start = response.start();\n",{"type":39,"tag":365,"props":1266,"children":1267},{"class":367,"line":413},[1268],{"type":39,"tag":365,"props":1269,"children":1270},{},[1271],{"type":45,"value":1272},"    start.recording({\n",{"type":39,"tag":365,"props":1274,"children":1275},{"class":367,"line":27},[1276],{"type":39,"tag":365,"props":1277,"children":1278},{},[1279],{"type":45,"value":564},{"type":39,"tag":365,"props":1281,"children":1282},{"class":367,"line":430},[1283],{"type":39,"tag":365,"props":1284,"children":1285},{},[1286],{"type":45,"value":1287},"        recordingStatusCallbackEvent: \"completed\",\n",{"type":39,"tag":365,"props":1289,"children":1290},{"class":367,"line":439},[1291],{"type":39,"tag":365,"props":1292,"children":1293},{},[1294],{"type":45,"value":572},{"type":39,"tag":365,"props":1296,"children":1297},{"class":367,"line":448},[1298],{"type":39,"tag":365,"props":1299,"children":1300},{},[1301],{"type":45,"value":1100},{"type":39,"tag":365,"props":1303,"children":1304},{"class":367,"line":457},[1305],{"type":39,"tag":365,"props":1306,"children":1307},{},[1308],{"type":45,"value":1309},"    const connect = response.connect();\n",{"type":39,"tag":365,"props":1311,"children":1312},{"class":367,"line":466},[1313],{"type":39,"tag":365,"props":1314,"children":1315},{},[1316],{"type":45,"value":1317},"    connect.conversationRelay({ url: \"wss:\u002F\u002Fyourapp.com\u002Fws\u002Fvoice\" });\n",{"type":39,"tag":365,"props":1319,"children":1320},{"class":367,"line":475},[1321],{"type":39,"tag":365,"props":1322,"children":1323},{},[1324],{"type":45,"value":1100},{"type":39,"tag":365,"props":1326,"children":1327},{"class":367,"line":484},[1328],{"type":39,"tag":365,"props":1329,"children":1330},{},[1331],{"type":45,"value":588},{"type":39,"tag":365,"props":1333,"children":1334},{"class":367,"line":493},[1335],{"type":39,"tag":365,"props":1336,"children":1337},{},[1338],{"type":45,"value":596},{"type":39,"tag":320,"props":1340,"children":1342},{"id":1341},"mid-call-pause-for-pci-compliance",[1343],{"type":45,"value":1344},"Mid-Call Pause for PCI Compliance",{"type":39,"tag":48,"props":1346,"children":1347},{},[1348],{"type":45,"value":1349},"Pause recording when a customer provides payment information:",{"type":39,"tag":48,"props":1351,"children":1352},{},[1353],{"type":39,"tag":54,"props":1354,"children":1355},{},[1356],{"type":45,"value":912},{"type":39,"tag":354,"props":1358,"children":1360},{"className":356,"code":1359,"language":358,"meta":359,"style":359},"def pause_recording_for_payment(call_sid, recording_sid):\n    \"\"\"Pause recording during credit card capture.\"\"\"\n    client.calls(call_sid).recordings(recording_sid).update(\n        status=\"paused\"\n    )\n\ndef resume_recording(call_sid, recording_sid):\n    \"\"\"Resume recording after payment processed.\"\"\"\n    client.calls(call_sid).recordings(recording_sid).update(\n        status=\"in-progress\"\n    )\n",[1361],{"type":39,"tag":62,"props":1362,"children":1363},{"__ignoreMap":359},[1364,1372,1380,1388,1396,1403,1410,1418,1426,1433,1441],{"type":39,"tag":365,"props":1365,"children":1366},{"class":367,"line":368},[1367],{"type":39,"tag":365,"props":1368,"children":1369},{},[1370],{"type":45,"value":1371},"def pause_recording_for_payment(call_sid, recording_sid):\n",{"type":39,"tag":365,"props":1373,"children":1374},{"class":367,"line":377},[1375],{"type":39,"tag":365,"props":1376,"children":1377},{},[1378],{"type":45,"value":1379},"    \"\"\"Pause recording during credit card capture.\"\"\"\n",{"type":39,"tag":365,"props":1381,"children":1382},{"class":367,"line":386},[1383],{"type":39,"tag":365,"props":1384,"children":1385},{},[1386],{"type":45,"value":1387},"    client.calls(call_sid).recordings(recording_sid).update(\n",{"type":39,"tag":365,"props":1389,"children":1390},{"class":367,"line":396},[1391],{"type":39,"tag":365,"props":1392,"children":1393},{},[1394],{"type":45,"value":1395},"        status=\"paused\"\n",{"type":39,"tag":365,"props":1397,"children":1398},{"class":367,"line":405},[1399],{"type":39,"tag":365,"props":1400,"children":1401},{},[1402],{"type":45,"value":481},{"type":39,"tag":365,"props":1404,"children":1405},{"class":367,"line":413},[1406],{"type":39,"tag":365,"props":1407,"children":1408},{"emptyLinePlaceholder":390},[1409],{"type":45,"value":393},{"type":39,"tag":365,"props":1411,"children":1412},{"class":367,"line":27},[1413],{"type":39,"tag":365,"props":1414,"children":1415},{},[1416],{"type":45,"value":1417},"def resume_recording(call_sid, recording_sid):\n",{"type":39,"tag":365,"props":1419,"children":1420},{"class":367,"line":430},[1421],{"type":39,"tag":365,"props":1422,"children":1423},{},[1424],{"type":45,"value":1425},"    \"\"\"Resume recording after payment processed.\"\"\"\n",{"type":39,"tag":365,"props":1427,"children":1428},{"class":367,"line":439},[1429],{"type":39,"tag":365,"props":1430,"children":1431},{},[1432],{"type":45,"value":1387},{"type":39,"tag":365,"props":1434,"children":1435},{"class":367,"line":448},[1436],{"type":39,"tag":365,"props":1437,"children":1438},{},[1439],{"type":45,"value":1440},"        status=\"in-progress\"\n",{"type":39,"tag":365,"props":1442,"children":1443},{"class":367,"line":457},[1444],{"type":39,"tag":365,"props":1445,"children":1446},{},[1447],{"type":45,"value":481},{"type":39,"tag":48,"props":1449,"children":1450},{},[1451],{"type":39,"tag":54,"props":1452,"children":1453},{},[1454],{"type":45,"value":1220},{"type":39,"tag":354,"props":1456,"children":1458},{"className":510,"code":1457,"language":512,"meta":359,"style":359},"async function pauseForPayment(callSid, recordingSid) {\n    await client.calls(callSid).recordings(recordingSid).update({\n        status: \"paused\",\n    });\n}\n\nasync function resumeRecording(callSid, recordingSid) {\n    await client.calls(callSid).recordings(recordingSid).update({\n        status: \"in-progress\",\n    });\n}\n",[1459],{"type":39,"tag":62,"props":1460,"children":1461},{"__ignoreMap":359},[1462,1470,1478,1486,1493,1501,1508,1516,1523,1531,1538],{"type":39,"tag":365,"props":1463,"children":1464},{"class":367,"line":368},[1465],{"type":39,"tag":365,"props":1466,"children":1467},{},[1468],{"type":45,"value":1469},"async function pauseForPayment(callSid, recordingSid) {\n",{"type":39,"tag":365,"props":1471,"children":1472},{"class":367,"line":377},[1473],{"type":39,"tag":365,"props":1474,"children":1475},{},[1476],{"type":45,"value":1477},"    await client.calls(callSid).recordings(recordingSid).update({\n",{"type":39,"tag":365,"props":1479,"children":1480},{"class":367,"line":386},[1481],{"type":39,"tag":365,"props":1482,"children":1483},{},[1484],{"type":45,"value":1485},"        status: \"paused\",\n",{"type":39,"tag":365,"props":1487,"children":1488},{"class":367,"line":396},[1489],{"type":39,"tag":365,"props":1490,"children":1491},{},[1492],{"type":45,"value":572},{"type":39,"tag":365,"props":1494,"children":1495},{"class":367,"line":405},[1496],{"type":39,"tag":365,"props":1497,"children":1498},{},[1499],{"type":45,"value":1500},"}\n",{"type":39,"tag":365,"props":1502,"children":1503},{"class":367,"line":413},[1504],{"type":39,"tag":365,"props":1505,"children":1506},{"emptyLinePlaceholder":390},[1507],{"type":45,"value":393},{"type":39,"tag":365,"props":1509,"children":1510},{"class":367,"line":27},[1511],{"type":39,"tag":365,"props":1512,"children":1513},{},[1514],{"type":45,"value":1515},"async function resumeRecording(callSid, recordingSid) {\n",{"type":39,"tag":365,"props":1517,"children":1518},{"class":367,"line":430},[1519],{"type":39,"tag":365,"props":1520,"children":1521},{},[1522],{"type":45,"value":1477},{"type":39,"tag":365,"props":1524,"children":1525},{"class":367,"line":439},[1526],{"type":39,"tag":365,"props":1527,"children":1528},{},[1529],{"type":45,"value":1530},"        status: \"in-progress\",\n",{"type":39,"tag":365,"props":1532,"children":1533},{"class":367,"line":448},[1534],{"type":39,"tag":365,"props":1535,"children":1536},{},[1537],{"type":45,"value":572},{"type":39,"tag":365,"props":1539,"children":1540},{"class":367,"line":457},[1541],{"type":39,"tag":365,"props":1542,"children":1543},{},[1544],{"type":45,"value":1500},{"type":39,"tag":48,"props":1546,"children":1547},{},[1548,1553,1555,1561],{"type":39,"tag":54,"props":1549,"children":1550},{},[1551],{"type":45,"value":1552},"PCI DSS:",{"type":45,"value":1554}," Never record card numbers. Use Twilio's ",{"type":39,"tag":62,"props":1556,"children":1558},{"className":1557},[],[1559],{"type":45,"value":1560},"\u003CPay>",{"type":45,"value":1562}," verb when possible. If collecting verbally, pause recording for the duration. PCI Mode is IRREVERSIBLE and account-wide — use a sub-account if only some calls need PCI.",{"type":39,"tag":320,"props":1564,"children":1566},{"id":1565},"accessing-recordings",[1567],{"type":45,"value":1568},"Accessing Recordings",{"type":39,"tag":48,"props":1570,"children":1571},{},[1572],{"type":39,"tag":54,"props":1573,"children":1574},{},[1575],{"type":45,"value":912},{"type":39,"tag":354,"props":1577,"children":1579},{"className":356,"code":1578,"language":358,"meta":359,"style":359},"# List recordings for a specific call\nrecordings = client.recordings.list(call_sid=call_sid)\n\nfor recording in recordings:\n    print(f\"SID: {recording.sid}\")\n    print(f\"Duration: {recording.duration}s\")\n    print(f\"URL: https:\u002F\u002Fapi.twilio.com{recording.uri.replace('.json', '.mp3')}\")\n\n# Download a recording\nimport requests as req\naudio = req.get(\n    f\"https:\u002F\u002Fapi.twilio.com\u002F2010-04-01\u002FAccounts\u002F{account_sid}\u002FRecordings\u002F{recording_sid}.mp3\",\n    auth=(account_sid, auth_token)\n)\nwith open(\"recording.mp3\", \"wb\") as f:\n    f.write(audio.content)\n\n# Delete a recording (GDPR right to deletion)\nclient.recordings(recording_sid).delete()\n",[1580],{"type":39,"tag":62,"props":1581,"children":1582},{"__ignoreMap":359},[1583,1591,1599,1606,1614,1622,1630,1638,1645,1653,1661,1669,1677,1685,1692,1700,1708,1715,1723],{"type":39,"tag":365,"props":1584,"children":1585},{"class":367,"line":368},[1586],{"type":39,"tag":365,"props":1587,"children":1588},{},[1589],{"type":45,"value":1590},"# List recordings for a specific call\n",{"type":39,"tag":365,"props":1592,"children":1593},{"class":367,"line":377},[1594],{"type":39,"tag":365,"props":1595,"children":1596},{},[1597],{"type":45,"value":1598},"recordings = client.recordings.list(call_sid=call_sid)\n",{"type":39,"tag":365,"props":1600,"children":1601},{"class":367,"line":386},[1602],{"type":39,"tag":365,"props":1603,"children":1604},{"emptyLinePlaceholder":390},[1605],{"type":45,"value":393},{"type":39,"tag":365,"props":1607,"children":1608},{"class":367,"line":396},[1609],{"type":39,"tag":365,"props":1610,"children":1611},{},[1612],{"type":45,"value":1613},"for recording in recordings:\n",{"type":39,"tag":365,"props":1615,"children":1616},{"class":367,"line":405},[1617],{"type":39,"tag":365,"props":1618,"children":1619},{},[1620],{"type":45,"value":1621},"    print(f\"SID: {recording.sid}\")\n",{"type":39,"tag":365,"props":1623,"children":1624},{"class":367,"line":413},[1625],{"type":39,"tag":365,"props":1626,"children":1627},{},[1628],{"type":45,"value":1629},"    print(f\"Duration: {recording.duration}s\")\n",{"type":39,"tag":365,"props":1631,"children":1632},{"class":367,"line":27},[1633],{"type":39,"tag":365,"props":1634,"children":1635},{},[1636],{"type":45,"value":1637},"    print(f\"URL: https:\u002F\u002Fapi.twilio.com{recording.uri.replace('.json', '.mp3')}\")\n",{"type":39,"tag":365,"props":1639,"children":1640},{"class":367,"line":430},[1641],{"type":39,"tag":365,"props":1642,"children":1643},{"emptyLinePlaceholder":390},[1644],{"type":45,"value":393},{"type":39,"tag":365,"props":1646,"children":1647},{"class":367,"line":439},[1648],{"type":39,"tag":365,"props":1649,"children":1650},{},[1651],{"type":45,"value":1652},"# Download a recording\n",{"type":39,"tag":365,"props":1654,"children":1655},{"class":367,"line":448},[1656],{"type":39,"tag":365,"props":1657,"children":1658},{},[1659],{"type":45,"value":1660},"import requests as req\n",{"type":39,"tag":365,"props":1662,"children":1663},{"class":367,"line":457},[1664],{"type":39,"tag":365,"props":1665,"children":1666},{},[1667],{"type":45,"value":1668},"audio = req.get(\n",{"type":39,"tag":365,"props":1670,"children":1671},{"class":367,"line":466},[1672],{"type":39,"tag":365,"props":1673,"children":1674},{},[1675],{"type":45,"value":1676},"    f\"https:\u002F\u002Fapi.twilio.com\u002F2010-04-01\u002FAccounts\u002F{account_sid}\u002FRecordings\u002F{recording_sid}.mp3\",\n",{"type":39,"tag":365,"props":1678,"children":1679},{"class":367,"line":475},[1680],{"type":39,"tag":365,"props":1681,"children":1682},{},[1683],{"type":45,"value":1684},"    auth=(account_sid, auth_token)\n",{"type":39,"tag":365,"props":1686,"children":1687},{"class":367,"line":484},[1688],{"type":39,"tag":365,"props":1689,"children":1690},{},[1691],{"type":45,"value":975},{"type":39,"tag":365,"props":1693,"children":1694},{"class":367,"line":493},[1695],{"type":39,"tag":365,"props":1696,"children":1697},{},[1698],{"type":45,"value":1699},"with open(\"recording.mp3\", \"wb\") as f:\n",{"type":39,"tag":365,"props":1701,"children":1702},{"class":367,"line":1181},[1703],{"type":39,"tag":365,"props":1704,"children":1705},{},[1706],{"type":45,"value":1707},"    f.write(audio.content)\n",{"type":39,"tag":365,"props":1709,"children":1710},{"class":367,"line":1190},[1711],{"type":39,"tag":365,"props":1712,"children":1713},{"emptyLinePlaceholder":390},[1714],{"type":45,"value":393},{"type":39,"tag":365,"props":1716,"children":1717},{"class":367,"line":1199},[1718],{"type":39,"tag":365,"props":1719,"children":1720},{},[1721],{"type":45,"value":1722},"# Delete a recording (GDPR right to deletion)\n",{"type":39,"tag":365,"props":1724,"children":1725},{"class":367,"line":1207},[1726],{"type":39,"tag":365,"props":1727,"children":1728},{},[1729],{"type":45,"value":1730},"client.recordings(recording_sid).delete()\n",{"type":39,"tag":320,"props":1732,"children":1734},{"id":1733},"recording-storage-retention",[1735],{"type":45,"value":1736},"Recording Storage & Retention",{"type":39,"tag":79,"props":1738,"children":1739},{},[1740,1761],{"type":39,"tag":83,"props":1741,"children":1742},{},[1743],{"type":39,"tag":87,"props":1744,"children":1745},{},[1746,1751,1756],{"type":39,"tag":91,"props":1747,"children":1748},{},[1749],{"type":45,"value":1750},"Feature",{"type":39,"tag":91,"props":1752,"children":1753},{},[1754],{"type":45,"value":1755},"Default",{"type":39,"tag":91,"props":1757,"children":1758},{},[1759],{"type":45,"value":1760},"Notes",{"type":39,"tag":107,"props":1762,"children":1763},{},[1764,1782,1800,1826],{"type":39,"tag":87,"props":1765,"children":1766},{},[1767,1772,1777],{"type":39,"tag":114,"props":1768,"children":1769},{},[1770],{"type":45,"value":1771},"Storage location",{"type":39,"tag":114,"props":1773,"children":1774},{},[1775],{"type":45,"value":1776},"Twilio cloud",{"type":39,"tag":114,"props":1778,"children":1779},{},[1780],{"type":45,"value":1781},"Can configure external storage (S3, GCS)",{"type":39,"tag":87,"props":1783,"children":1784},{},[1785,1790,1795],{"type":39,"tag":114,"props":1786,"children":1787},{},[1788],{"type":45,"value":1789},"Retention",{"type":39,"tag":114,"props":1791,"children":1792},{},[1793],{"type":45,"value":1794},"Indefinite",{"type":39,"tag":114,"props":1796,"children":1797},{},[1798],{"type":45,"value":1799},"Delete manually via API or set auto-delete policy",{"type":39,"tag":87,"props":1801,"children":1802},{},[1803,1808,1813],{"type":39,"tag":114,"props":1804,"children":1805},{},[1806],{"type":45,"value":1807},"Formats",{"type":39,"tag":114,"props":1809,"children":1810},{},[1811],{"type":45,"value":1812},"WAV (default), MP3",{"type":39,"tag":114,"props":1814,"children":1815},{},[1816,1818,1824],{"type":45,"value":1817},"Request MP3 by appending ",{"type":39,"tag":62,"props":1819,"children":1821},{"className":1820},[],[1822],{"type":45,"value":1823},".mp3",{"type":45,"value":1825}," to URL",{"type":39,"tag":87,"props":1827,"children":1828},{},[1829,1834,1839],{"type":39,"tag":114,"props":1830,"children":1831},{},[1832],{"type":45,"value":1833},"Encryption",{"type":39,"tag":114,"props":1835,"children":1836},{},[1837],{"type":45,"value":1838},"At rest",{"type":39,"tag":114,"props":1840,"children":1841},{},[1842],{"type":45,"value":1843},"Additional encryption with PCI Mode",{"type":39,"tag":220,"props":1845,"children":1846},{},[],{"type":39,"tag":40,"props":1848,"children":1850},{"id":1849},"common-errors",[1851],{"type":45,"value":1852},"Common Errors",{"type":39,"tag":79,"props":1854,"children":1855},{},[1856,1877],{"type":39,"tag":83,"props":1857,"children":1858},{},[1859],{"type":39,"tag":87,"props":1860,"children":1861},{},[1862,1867,1872],{"type":39,"tag":91,"props":1863,"children":1864},{},[1865],{"type":45,"value":1866},"Symptom",{"type":39,"tag":91,"props":1868,"children":1869},{},[1870],{"type":45,"value":1871},"Cause",{"type":39,"tag":91,"props":1873,"children":1874},{},[1875],{"type":45,"value":1876},"Fix",{"type":39,"tag":107,"props":1878,"children":1879},{},[1880,1916,1947,1965,1995],{"type":39,"tag":87,"props":1881,"children":1882},{},[1883,1888,1905],{"type":39,"tag":114,"props":1884,"children":1885},{},[1886],{"type":45,"value":1887},"Recording captures only caller (no agent)",{"type":39,"tag":114,"props":1889,"children":1890},{},[1891,1893,1898,1900],{"type":45,"value":1892},"Used ",{"type":39,"tag":62,"props":1894,"children":1896},{"className":1895},[],[1897],{"type":45,"value":67},{"type":45,"value":1899}," verb instead of ",{"type":39,"tag":62,"props":1901,"children":1903},{"className":1902},[],[1904],{"type":45,"value":75},{"type":39,"tag":114,"props":1906,"children":1907},{},[1908,1910],{"type":45,"value":1909},"Switch to ",{"type":39,"tag":62,"props":1911,"children":1913},{"className":1912},[],[1914],{"type":45,"value":1915},"\u003CDial record=\"record-from-answer\">",{"type":39,"tag":87,"props":1917,"children":1918},{},[1919,1924,1936],{"type":39,"tag":114,"props":1920,"children":1921},{},[1922],{"type":45,"value":1923},"No recording at all",{"type":39,"tag":114,"props":1925,"children":1926},{},[1927,1929,1934],{"type":45,"value":1928},"Used REST API ",{"type":39,"tag":62,"props":1930,"children":1932},{"className":1931},[],[1933],{"type":45,"value":1014},{"type":45,"value":1935}," with ConversationRelay",{"type":39,"tag":114,"props":1937,"children":1938},{},[1939,1940,1945],{"type":45,"value":330},{"type":39,"tag":62,"props":1941,"children":1943},{"className":1942},[],[1944],{"type":45,"value":166},{"type":45,"value":1946}," in TwiML",{"type":39,"tag":87,"props":1948,"children":1949},{},[1950,1955,1960],{"type":39,"tag":114,"props":1951,"children":1952},{},[1953],{"type":45,"value":1954},"Recording is empty \u002F silent",{"type":39,"tag":114,"props":1956,"children":1957},{},[1958],{"type":45,"value":1959},"Webhook endpoint unreachable, recording never started",{"type":39,"tag":114,"props":1961,"children":1962},{},[1963],{"type":45,"value":1964},"Check StatusCallback URL reachability",{"type":39,"tag":87,"props":1966,"children":1967},{},[1968,1973,1984],{"type":39,"tag":114,"props":1969,"children":1970},{},[1971],{"type":45,"value":1972},"Recording has both parties on same channel",{"type":39,"tag":114,"props":1974,"children":1975},{},[1976,1977,1982],{"type":45,"value":1892},{"type":39,"tag":62,"props":1978,"children":1980},{"className":1979},[],[1981],{"type":45,"value":799},{"type":45,"value":1983}," (mono)",{"type":39,"tag":114,"props":1985,"children":1986},{},[1987,1988,1993],{"type":45,"value":330},{"type":39,"tag":62,"props":1989,"children":1991},{"className":1990},[],[1992],{"type":45,"value":821},{"type":45,"value":1994}," for separate channels",{"type":39,"tag":87,"props":1996,"children":1997},{},[1998,2003,2008],{"type":39,"tag":114,"props":1999,"children":2000},{},[2001],{"type":45,"value":2002},"Coach audio missing from conference recording",{"type":39,"tag":114,"props":2004,"children":2005},{},[2006],{"type":45,"value":2007},"Expected behavior — coach audio isn't in the mix",{"type":39,"tag":114,"props":2009,"children":2010},{},[2011],{"type":45,"value":2012},"Record coach's call leg separately",{"type":39,"tag":220,"props":2014,"children":2015},{},[],{"type":39,"tag":40,"props":2017,"children":2019},{"id":2018},"cannot",[2020],{"type":45,"value":2021},"CANNOT",{"type":39,"tag":230,"props":2023,"children":2024},{},[2025,2062,2093,2127,2137,2162,2172,2208,2218,2228,2238],{"type":39,"tag":234,"props":2026,"children":2027},{},[2028,2039,2041,2046,2048,2053,2055,2060],{"type":39,"tag":54,"props":2029,"children":2030},{},[2031,2037],{"type":39,"tag":62,"props":2032,"children":2034},{"className":2033},[],[2035],{"type":45,"value":2036},"recordingTrack",{"type":45,"value":2038}," has no observable effect via TwiML",{"type":45,"value":2040}," — The ",{"type":39,"tag":62,"props":2042,"children":2044},{"className":2043},[],[2045],{"type":45,"value":166},{"type":45,"value":2047}," TwiML parameter ",{"type":39,"tag":62,"props":2049,"children":2051},{"className":2050},[],[2052],{"type":45,"value":2036},{"type":45,"value":2054}," does not isolate tracks. Use the Recordings REST API with ",{"type":39,"tag":62,"props":2056,"children":2058},{"className":2057},[],[2059],{"type":45,"value":2036},{"type":45,"value":2061}," for actual track isolation.",{"type":39,"tag":234,"props":2063,"children":2064},{},[2065,2070,2072,2077,2079,2084,2086,2091],{"type":39,"tag":54,"props":2066,"children":2067},{},[2068],{"type":45,"value":2069},"Cannot start API recordings on ConversationRelay calls",{"type":45,"value":2071}," — REST API ",{"type":39,"tag":62,"props":2073,"children":2075},{"className":2074},[],[2076],{"type":45,"value":1014},{"type":45,"value":2078}," is silently ignored (\"not eligible for recording\"). Must use ",{"type":39,"tag":62,"props":2080,"children":2082},{"className":2081},[],[2083],{"type":45,"value":166},{"type":45,"value":2085}," before ",{"type":39,"tag":62,"props":2087,"children":2089},{"className":2088},[],[2090],{"type":45,"value":1046},{"type":45,"value":2092}," in TwiML.",{"type":39,"tag":234,"props":2094,"children":2095},{},[2096,2101,2103,2109,2111,2117,2119,2125],{"type":39,"tag":54,"props":2097,"children":2098},{},[2099],{"type":45,"value":2100},"Cannot pause\u002Fresume recordings via TwiML",{"type":45,"value":2102}," — Only available via the REST API (",{"type":39,"tag":62,"props":2104,"children":2106},{"className":2105},[],[2107],{"type":45,"value":2108},"update",{"type":45,"value":2110}," with ",{"type":39,"tag":62,"props":2112,"children":2114},{"className":2113},[],[2115],{"type":45,"value":2116},"status=\"paused\"",{"type":45,"value":2118}," or ",{"type":39,"tag":62,"props":2120,"children":2122},{"className":2121},[],[2123],{"type":45,"value":2124},"status=\"in-progress\"",{"type":45,"value":2126},").",{"type":39,"tag":234,"props":2128,"children":2129},{},[2130,2135],{"type":39,"tag":54,"props":2131,"children":2132},{},[2133],{"type":45,"value":2134},"Cannot get dual-channel conference recordings",{"type":45,"value":2136}," — Conference recording is always mono (mixed).",{"type":39,"tag":234,"props":2138,"children":2139},{},[2140,2145,2147,2153,2155,2161],{"type":39,"tag":54,"props":2141,"children":2142},{},[2143],{"type":45,"value":2144},"Cannot get dual-channel from Calls API without explicit param",{"type":45,"value":2146}," — ",{"type":39,"tag":62,"props":2148,"children":2150},{"className":2149},[],[2151],{"type":45,"value":2152},"Record=true",{"type":45,"value":2154}," defaults to mono. Must specify ",{"type":39,"tag":62,"props":2156,"children":2158},{"className":2157},[],[2159],{"type":45,"value":2160},"recordingChannels: 'dual'",{"type":45,"value":344},{"type":39,"tag":234,"props":2163,"children":2164},{},[2165,2170],{"type":39,"tag":54,"props":2166,"children":2167},{},[2168],{"type":45,"value":2169},"Cannot transcribe PCI-mode recordings",{"type":45,"value":2171}," — Recordings created while PCI mode was enabled cannot be transcribed, even after PCI is disabled.",{"type":39,"tag":234,"props":2173,"children":2174},{},[2175,2187,2188,2193,2195,2200,2201,2206],{"type":39,"tag":54,"props":2176,"children":2177},{},[2178,2180,2185],{"type":45,"value":2179},"Cannot use ",{"type":39,"tag":62,"props":2181,"children":2183},{"className":2182},[],[2184],{"type":45,"value":67},{"type":45,"value":2186}," verb for call recording",{"type":45,"value":2146},{"type":39,"tag":62,"props":2189,"children":2191},{"className":2190},[],[2192],{"type":45,"value":67},{"type":45,"value":2194}," captures the caller only (voicemail-style). Use ",{"type":39,"tag":62,"props":2196,"children":2198},{"className":2197},[],[2199],{"type":45,"value":75},{"type":45,"value":2118},{"type":39,"tag":62,"props":2202,"children":2204},{"className":2203},[],[2205],{"type":45,"value":166},{"type":45,"value":2207}," for call recording.",{"type":39,"tag":234,"props":2209,"children":2210},{},[2211,2216],{"type":39,"tag":54,"props":2212,"children":2213},{},[2214],{"type":45,"value":2215},"Cannot capture coach\u002Fwhisper audio in conference recordings",{"type":45,"value":2217}," — Supervisor whisper is excluded from the mix",{"type":39,"tag":234,"props":2219,"children":2220},{},[2221,2226],{"type":39,"tag":54,"props":2222,"children":2223},{},[2224],{"type":45,"value":2225},"Cannot reverse PCI Mode",{"type":45,"value":2227}," — PCI Mode is irreversible and account-wide. Once enabled, all recordings are encrypted.",{"type":39,"tag":234,"props":2229,"children":2230},{},[2231,2236],{"type":39,"tag":54,"props":2232,"children":2233},{},[2234],{"type":45,"value":2235},"Cannot auto-delete recordings without configuration",{"type":45,"value":2237}," — Recordings are retained indefinitely unless you configure auto-deletion",{"type":39,"tag":234,"props":2239,"children":2240},{},[2241,2246],{"type":39,"tag":54,"props":2242,"children":2243},{},[2244],{"type":45,"value":2245},"Cannot avoid larger file sizes with dual-channel",{"type":45,"value":2247}," — Dual-channel recordings are ~2x the size of mono. Factor into storage costs.",{"type":39,"tag":220,"props":2249,"children":2250},{},[],{"type":39,"tag":40,"props":2252,"children":2254},{"id":2253},"next-steps",[2255],{"type":45,"value":2256},"Next Steps",{"type":39,"tag":230,"props":2258,"children":2259},{},[2260,2274,2289,2303],{"type":39,"tag":234,"props":2261,"children":2262},{},[2263,2268,2269],{"type":39,"tag":54,"props":2264,"children":2265},{},[2266],{"type":45,"value":2267},"Conference calls:",{"type":45,"value":1008},{"type":39,"tag":62,"props":2270,"children":2272},{"className":2271},[],[2273],{"type":45,"value":991},{"type":39,"tag":234,"props":2275,"children":2276},{},[2277,2282,2283],{"type":39,"tag":54,"props":2278,"children":2279},{},[2280],{"type":45,"value":2281},"Agent routing:",{"type":45,"value":1008},{"type":39,"tag":62,"props":2284,"children":2286},{"className":2285},[],[2287],{"type":45,"value":2288},"twilio-taskrouter-routing",{"type":39,"tag":234,"props":2290,"children":2291},{},[2292,2297,2298],{"type":39,"tag":54,"props":2293,"children":2294},{},[2295],{"type":45,"value":2296},"Compliance:",{"type":45,"value":1008},{"type":39,"tag":62,"props":2299,"children":2301},{"className":2300},[],[2302],{"type":45,"value":309},{"type":39,"tag":234,"props":2304,"children":2305},{},[2306,2311,2312],{"type":39,"tag":54,"props":2307,"children":2308},{},[2309],{"type":45,"value":2310},"Debug recording issues:",{"type":45,"value":1008},{"type":39,"tag":62,"props":2313,"children":2315},{"className":2314},[],[2316],{"type":45,"value":2317},"twilio-debugging-observability",{"type":39,"tag":2319,"props":2320,"children":2321},"style",{},[2322],{"type":45,"value":2323},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":2325,"total":2495},[2326,2341,2359,2370,2382,2389,2406,2422,2437,2449,2465,2483],{"slug":244,"name":244,"fn":2327,"description":2328,"org":2329,"tags":2330,"stars":23,"repoUrl":24,"updatedAt":2340},"configure Twilio accounts and credentials","Create and configure a Twilio account from scratch. Covers free trial signup, trial limitations, getting credentials (Account SID and Auth Token), buying a phone number, verifying recipient numbers for trial use, SDK installation, first API call, subaccount management (creation, inheritance, credential isolation, limits), and enabling specific products (AI Assistants, Conversations, Verify, ConversationRelay, WhatsApp). Use this skill before any other Twilio skill if you do not yet have a Twilio account or need to enable a product. For Organization-level governance (SSO, SCIM, multi-team), see `twilio-organizations-setup`.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2331,2334,2337],{"name":2332,"slug":2333,"type":15},"API Development","api-development",{"name":2335,"slug":2336,"type":15},"Communications","communications",{"name":2338,"slug":2339,"type":15},"SMS","sms","2026-08-01T05:43:28.968968",{"slug":2342,"name":2342,"fn":2343,"description":2344,"org":2345,"tags":2346,"stars":23,"repoUrl":24,"updatedAt":2358},"twilio-agent-augmentation-architect","augment human agents with AI intelligence","Planning skill for augmenting human agents with real-time AI intelligence. Qualifies the developer's use case across coaching, compliance, QA, and routing to recommend the right Conversation Intelligence + Conversation Memory + TaskRouter architecture. Handles both \"I want to add AI coaching to my call center\" and \"configure Conversation Intelligence operators for script adherence.\"\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2347,2350,2353,2356,2357],{"name":2348,"slug":2349,"type":15},"Agents","agents",{"name":2351,"slug":2352,"type":15},"AI","ai",{"name":2354,"slug":2355,"type":15},"Coaching","coaching",{"name":17,"slug":18,"type":15},{"name":9,"slug":8,"type":15},"2026-07-17T06:07:58.250609",{"slug":2360,"name":2360,"fn":2361,"description":2362,"org":2363,"tags":2364,"stars":23,"repoUrl":24,"updatedAt":2369},"twilio-agent-connect","connect AI agents to Twilio channels","Connect third-party AI agents (OpenAI, Bedrock, LangChain, Microsoft Foundry) to Twilio's communication channels using the Twilio Agent Connect SDK. Covers identity resolution, memory and context management via Conversation Memory, conversation orchestration via Conversation Orchestrator, multi-channel handling (Voice, SMS, RCS, WhatsApp, Chat), and AI-to-human escalation. Use this skill when integrating an existing LLM agent with Twilio services.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2365,2366,2367,2368],{"name":2348,"slug":2349,"type":15},{"name":2332,"slug":2333,"type":15},{"name":2335,"slug":2336,"type":15},{"name":9,"slug":8,"type":15},"2026-07-17T06:06:05.217098",{"slug":2371,"name":2371,"fn":2372,"description":2373,"org":2374,"tags":2375,"stars":23,"repoUrl":24,"updatedAt":2381},"twilio-ai-agent-architect","plan Twilio conversational AI agents","Planning skill for AI-powered conversational agents. Qualifies the developer's use case across outcome sophistication, entry point, and customer profile to recommend the right Twilio Conversations architecture and implementation skills. Handles both high-level requests (\"build me a voice AI assistant\") and specific ones (\"integrate ConversationRelay with my OpenAI backend\").\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2376,2377,2380],{"name":2348,"slug":2349,"type":15},{"name":2378,"slug":2379,"type":15},"Architecture","architecture",{"name":9,"slug":8,"type":15},"2026-07-17T06:07:48.883723",{"slug":4,"name":4,"fn":5,"description":6,"org":2383,"tags":2384,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2385,2386,2387,2388],{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},{"name":17,"slug":18,"type":15},{"name":9,"slug":8,"type":15},{"slug":2390,"name":2390,"fn":2391,"description":2392,"org":2393,"tags":2394,"stars":23,"repoUrl":24,"updatedAt":2405},"twilio-cli-reference","manage Twilio resources via CLI","Twilio CLI reference for managing Twilio resources from the terminal. Covers installation, credential profiles, phone number provisioning, sending SMS and email, webhook configuration, local development with a tunneling service, debugging with watch and logs, serverless deployment, and plugin ecosystem. Use when the developer asks to \"just do it\", \"set this up\", \"run a command\", mentions \"CLI\", \"command line\", or \"terminal\", or when an AI agent can execute a task directly instead of writing application code.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2395,2398,2401,2404],{"name":2396,"slug":2397,"type":15},"CLI","cli",{"name":2399,"slug":2400,"type":15},"Local Development","local-development",{"name":2402,"slug":2403,"type":15},"Operations","operations",{"name":9,"slug":8,"type":15},"2026-07-17T06:07:54.925664",{"slug":2407,"name":2407,"fn":2408,"description":2409,"org":2410,"tags":2411,"stars":23,"repoUrl":24,"updatedAt":2421},"twilio-compliance-onboarding","manage Twilio messaging and voice compliance","Registrations required BEFORE Twilio traffic works. Covers messaging programs (A2P 10DLC, toll-free verification, WhatsApp WABA, RCS, short code, alphanumeric sender) and voice trust programs (STIR\u002FSHAKEN, Voice Integrity, Branded Calling, CNAM). Each number\u002Fsender type has its own program — registration blocks traffic until complete.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2412,2413,2416,2417,2418],{"name":13,"slug":14,"type":15},{"name":2414,"slug":2415,"type":15},"Messaging","messaging",{"name":2338,"slug":2339,"type":15},{"name":9,"slug":8,"type":15},{"name":2419,"slug":2420,"type":15},"WhatsApp","whatsapp","2026-07-17T06:05:47.897229",{"slug":309,"name":309,"fn":2423,"description":2424,"org":2425,"tags":2426,"stars":23,"repoUrl":24,"updatedAt":2436},"ensure compliance for Twilio messaging traffic","Rules you must follow for Twilio messaging and voice traffic. Covers TCPA (consent tiers, quiet hours, DNC), GDPR (EU consent, right to deletion), PCI DSS (payment recording, Pay verb), HIPAA (BAA, PHI), FDCPA (debt collection limits), CAN-SPAM, WhatsApp policies, SHAKEN\u002FSTIR, and consent management patterns. Use this skill proactively when developers have working traffic to ensure they follow the rules.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2427,2428,2429,2432,2435],{"name":13,"slug":14,"type":15},{"name":2414,"slug":2415,"type":15},{"name":2430,"slug":2431,"type":15},"Regulatory Compliance","regulatory-compliance",{"name":2433,"slug":2434,"type":15},"Security","security",{"name":9,"slug":8,"type":15},"2026-07-17T06:07:55.952779",{"slug":991,"name":991,"fn":2438,"description":2439,"org":2440,"tags":2441,"stars":23,"repoUrl":24,"updatedAt":2448},"build multi-party calls with Twilio Conference","Build multi-party calls using Twilio Conference. Covers warm transfer, cold transfer, coaching (whisper), hold vs mute, participant modes, and supervisor barge. Use this skill for any contact center, support line, or scenario requiring transfers, holds, or multi-party calls.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2442,2443,2444,2447],{"name":20,"slug":21,"type":15},{"name":2335,"slug":2336,"type":15},{"name":2445,"slug":2446,"type":15},"Meetings","meetings",{"name":9,"slug":8,"type":15},"2026-07-17T06:07:55.603708",{"slug":2450,"name":2450,"fn":2451,"description":2452,"org":2453,"tags":2454,"stars":23,"repoUrl":24,"updatedAt":2464},"twilio-content-template-builder","create and send message templates with Twilio","Create, manage, and send message templates using Twilio's Content API. Covers template creation for WhatsApp, SMS, RCS, and MMS; variable usage; WhatsApp Meta approval; and sending templates via ContentSid. Use this skill when building structured messages that require pre-approval or consistent formatting across channels.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2455,2458,2459,2460,2463],{"name":2456,"slug":2457,"type":15},"Email","email",{"name":2414,"slug":2415,"type":15},{"name":2338,"slug":2339,"type":15},{"name":2461,"slug":2462,"type":15},"Templates","templates",{"name":9,"slug":8,"type":15},"2026-07-17T06:04:26.637309",{"slug":2466,"name":2466,"fn":2467,"description":2468,"org":2469,"tags":2470,"stars":23,"repoUrl":24,"updatedAt":2482},"twilio-conversation-intelligence","build conversation intelligence pipelines","Twilio Conversation Intelligence development guide. Use when building real-time or post-call conversation analysis, language operator pipelines, sentiment analysis, agent assist, cross-channel analytics, or querying aggregated conversation insights (sentiment trends, escalation rates, dashboards).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2471,2472,2475,2478,2481],{"name":2348,"slug":2349,"type":15},{"name":2473,"slug":2474,"type":15},"Analytics","analytics",{"name":2476,"slug":2477,"type":15},"Monitoring","monitoring",{"name":2479,"slug":2480,"type":15},"NLP","nlp",{"name":9,"slug":8,"type":15},"2026-07-17T06:07:52.545387",{"slug":2484,"name":2484,"fn":2485,"description":2486,"org":2487,"tags":2488,"stars":23,"repoUrl":24,"updatedAt":2494},"twilio-conversation-memory","manage conversation memory with Twilio","Store and retrieve conversation context using Twilio Conversation Memory. Covers Memory Store provisioning, profile management, traits, observations, conversation summaries, and semantic Recall. Use this skill to give AI agents or human agents persistent memory of conversations across sessions and channels.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2489,2490,2493],{"name":2348,"slug":2349,"type":15},{"name":2491,"slug":2492,"type":15},"Memory","memory",{"name":9,"slug":8,"type":15},"2026-07-17T06:04:19.526724",57,{"items":2497,"total":2495},[2498,2504,2512,2519,2525,2532,2539],{"slug":244,"name":244,"fn":2327,"description":2328,"org":2499,"tags":2500,"stars":23,"repoUrl":24,"updatedAt":2340},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2501,2502,2503],{"name":2332,"slug":2333,"type":15},{"name":2335,"slug":2336,"type":15},{"name":2338,"slug":2339,"type":15},{"slug":2342,"name":2342,"fn":2343,"description":2344,"org":2505,"tags":2506,"stars":23,"repoUrl":24,"updatedAt":2358},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2507,2508,2509,2510,2511],{"name":2348,"slug":2349,"type":15},{"name":2351,"slug":2352,"type":15},{"name":2354,"slug":2355,"type":15},{"name":17,"slug":18,"type":15},{"name":9,"slug":8,"type":15},{"slug":2360,"name":2360,"fn":2361,"description":2362,"org":2513,"tags":2514,"stars":23,"repoUrl":24,"updatedAt":2369},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2515,2516,2517,2518],{"name":2348,"slug":2349,"type":15},{"name":2332,"slug":2333,"type":15},{"name":2335,"slug":2336,"type":15},{"name":9,"slug":8,"type":15},{"slug":2371,"name":2371,"fn":2372,"description":2373,"org":2520,"tags":2521,"stars":23,"repoUrl":24,"updatedAt":2381},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2522,2523,2524],{"name":2348,"slug":2349,"type":15},{"name":2378,"slug":2379,"type":15},{"name":9,"slug":8,"type":15},{"slug":4,"name":4,"fn":5,"description":6,"org":2526,"tags":2527,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2528,2529,2530,2531],{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},{"name":17,"slug":18,"type":15},{"name":9,"slug":8,"type":15},{"slug":2390,"name":2390,"fn":2391,"description":2392,"org":2533,"tags":2534,"stars":23,"repoUrl":24,"updatedAt":2405},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2535,2536,2537,2538],{"name":2396,"slug":2397,"type":15},{"name":2399,"slug":2400,"type":15},{"name":2402,"slug":2403,"type":15},{"name":9,"slug":8,"type":15},{"slug":2407,"name":2407,"fn":2408,"description":2409,"org":2540,"tags":2541,"stars":23,"repoUrl":24,"updatedAt":2421},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2542,2543,2544,2545,2546],{"name":13,"slug":14,"type":15},{"name":2414,"slug":2415,"type":15},{"name":2338,"slug":2339,"type":15},{"name":9,"slug":8,"type":15},{"name":2419,"slug":2420,"type":15}]