Transcript Sentence Resource
A Transcript Sentence
is the actual text of the recording transcription.
The GET
Sentences
request returns a list of Sentences of a Transcript
. With the Redacted
query param, the endpoint returns the PII redacted/unredacted Sentences.
Property nameTypePIIDescription
The index of the sentence in the transcript.
Offset from the beginning of the transcript when this sentence starts.
Offset from the beginning of the transcript when this sentence ends.
A 34 character string that uniquely identifies this Sentence.
Pattern: ^GX[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
GET https://intelligence.twilio.com/v2/Transcripts/{TranscriptSid}/Sentences
Property nameTypeRequiredPIIDescription
TranscriptSidSID<GT>required The unique SID identifier of the Transcript.
Pattern: ^GT[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
Property nameTypeRequiredPIIDescription
Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is true
to access redacted sentences.
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Minimum: 1
Maximum: 1000
The page index. This value is simply for client state.
Minimum: 0
The page token. This is provided by the API.
_18// Download the helper library from https://www.twilio.com/docs/node/install
_18const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_18// Find your Account SID and Auth Token at twilio.com/console
_18// and set the environment variables. See http://twil.io/secure
_18const accountSid = process.env.TWILIO_ACCOUNT_SID;
_18const authToken = process.env.TWILIO_AUTH_TOKEN;
_18const client = twilio(accountSid, authToken);
_18async function listSentence() {
_18 const sentences = await client.intelligence.v2
_18 .transcripts("GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_18 .sentences.list({ limit: 20 });
_18 sentences.forEach((s) => console.log(s.mediaChannel));
_22 "transcript": "test test",
_22 "sid": "GXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_22 "first_page_url": "https://intelligence.twilio.com/v2/Transcripts/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Sentences?PageSize=50&Page=0",
_22 "url": "https://intelligence.twilio.com/v2/Transcripts/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Sentences?PageSize=50&Page=0",
_22 "next_page_url": null,
_22 "previous_page_url": null