Skip to contentSkip to navigationSkip to topbar
On this page

Transcript Media Resource


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.


Transcript Media Resource

transcript-media-resource page anchor
Property nameTypeRequiredDescriptionChild properties
account_sidSID<AC>Optional
Not PII

The unique SID identifier of the Account.

Pattern: ^AC[0-9a-fA-F]{32}$Min length: 34Max length: 34

media_urlstring<uri>Optional

Downloadable URL for media, if stored in Twilio AI.


service_sidSID<GA>Optional

The unique SID identifier of the Service.

Pattern: ^GA[0-9a-fA-F]{32}$Min length: 34Max length: 34

sidSID<GT>Optional

The unique SID identifier of the Transcript.

Pattern: ^GT[0-9a-fA-F]{32}$Min length: 34Max length: 34

urlstring<uri>Optional

The URL of this resource.


GET https://intelligence.twilio.com/v2/Transcripts/{Sid}/Media

Path parameters

path-parameters page anchor
Property nameTypeRequiredPIIDescription
SidSID<GT>required

The unique SID identifier of the Transcript.

Pattern: ^GT[0-9a-fA-F]{32}$Min length: 34Max length: 34
Property nameTypeRequiredPIIDescription
RedactedbooleanOptional

Grant access to PII Redacted/Unredacted Media. If redaction is enabled, the default is true to access redacted media.

Fetch a mediaLink to code sample: Fetch a media
1
// Download the helper library from https://www.twilio.com/docs/node/install
2
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
3
4
// Find your Account SID and Auth Token at twilio.com/console
5
// and set the environment variables. See http://twil.io/secure
6
const accountSid = process.env.TWILIO_ACCOUNT_SID;
7
const authToken = process.env.TWILIO_AUTH_TOKEN;
8
const client = twilio(accountSid, authToken);
9
10
async function fetchMedia() {
11
const media = await client.intelligence.v2
12
.transcripts("GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
13
.media()
14
.fetch();
15
16
console.log(media.accountSid);
17
}
18
19
fetchMedia();

Output

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
}