Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

Transcript Media Resource


(information)

Info

Public Beta

Voice Intelligence is currently available as a public beta release. Some features are not yet implemented and others may be changed before the product is declared as Generally Available. Beta products are not covered by a Twilio SLA.

Learn more about beta product support(link takes you to an external page).

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
Resource properties
account_sidtype: SID<AC>
Not PII

The unique SID identifier of the Account.

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

media_urltype: string<uri>

Downloadable URL for media, if stored in Twilio AI.


service_sidtype: SID<GA>

The unique SID identifier of the Service.

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

sidtype: SID<GT>

The unique SID identifier of the Transcript.

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

urltype: string<uri>

The URL of this resource.


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

Parameters

fetch-parameters page anchor
URI parameters
Sidtype: SID<GT>
Path ParameterNot PII

The unique SID identifier of the Transcript.

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

Redactedtype: boolean
Query ParameterNot PII

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

Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_11
// Download the helper library from https://www.twilio.com/docs/node/install
_11
// Find your Account SID and Auth Token at twilio.com/console
_11
// and set the environment variables. See http://twil.io/secure
_11
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_11
const authToken = process.env.TWILIO_AUTH_TOKEN;
_11
const client = require('twilio')(accountSid, authToken);
_11
_11
client.intelligence.v2.transcripts('GTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11
.media()
_11
.fetch()
_11
.then(media => console.log(media.mediaUrl));

Output

_10
{
_10
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10
"service_sid": "GAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10
"sid": "GTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10
"media_url": "https://media.server.com/media.wav",
_10
"url": "https://intelligence.twilio.com/v2/Transcripts/GTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Media"
_10
}


Rate this page: