Skip to contentSkip to navigationSkip to topbar
Rate this page:
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 nameTypePIIDescription
account_sidSID<AC>
Not PII

The unique SID identifier of the Account.

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

media_urlstring<uri>

Downloadable URL for media, if stored in Twilio AI.


service_sidSID<GA>

The unique SID identifier of the Service.

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

sidSID<GT>

The unique SID identifier of the Transcript.

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

urlstring<uri>

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 Media

fetch-a-media page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_19
// Download the helper library from https://www.twilio.com/docs/node/install
_19
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_19
_19
// Find your Account SID and Auth Token at twilio.com/console
_19
// and set the environment variables. See http://twil.io/secure
_19
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_19
const authToken = process.env.TWILIO_AUTH_TOKEN;
_19
const client = twilio(accountSid, authToken);
_19
_19
async function fetchMedia() {
_19
const media = await client.intelligence.v2
_19
.transcripts("GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_19
.media()
_19
.fetch();
_19
_19
console.log(media.accountSid);
_19
}
_19
_19
fetchMedia();

Output

_10
{
_10
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_10
"service_sid": "GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_10
"sid": "GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_10
"media_url": "https://media.server.com/media.wav",
_10
"url": "https://intelligence.twilio.com/v2/Transcripts/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Media"
_10
}


Rate this page: