A Transcript Media
returns a signed URL for the Media (call recording) corresponding to the Transcript
. If PII redaction was enabled when the Transcript
was created, the recording will have PII timeframes redacted.
The unique SID identifier of the Account.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The unique SID identifier of the Service.
^GA[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The unique SID identifier of the Transcript.
^GT[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The URL of this resource.
GET https://intelligence.twilio.com/v2/Transcripts/{Sid}/Media
The unique SID identifier of the Transcript.
^GT[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
Grant access to PII Redacted/Unredacted Media. If redaction is enabled, the default is true
to access redacted media.
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function fetchMedia() {11const media = await client.intelligence.v212.transcripts("GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")13.media()14.fetch();1516console.log(media.accountSid);17}1819fetchMedia();
1{2"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",3"service_sid": "GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",4"sid": "GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",5"media_url": "https://media.server.com/media.wav",6"url": "https://intelligence.twilio.com/v2/Transcripts/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Media"7}