Create a new Transcript for the service
Create a new Transcript for the service
Body
-
The unique SID identifier of the Service.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^GA[0-9a-fA-F]{32}$
. -
JSON object describing Media Channel including Source and Participants
-
Used to store client provided metadata. Maximum of 64 double-byte UTF8 characters.
-
The date that this Transcript's media was started, given in ISO 8601 format.
POST
/v2/Transcripts
curl \
--request POST 'https://intelligence.twilio.com/v2/Transcripts' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'Channel=%7B+%22media_properties%22+%3A+%7B+%22media_url%22%3A+%22http%3A%2F%2Ffoobar.test%2FClusterTests%2Fcall1.wav%22%7D%7D&ServiceSid=GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&CustomerKey=aaaaaaaa'
Request examples
Create
{"Channel"=>"{ \"media_properties\" : { \"media_url\": \"http://foobar.test/ClusterTests/call1.wav\"}}", "ServiceSid"=>"GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "CustomerKey"=>"aaaaaaaa"}
{"Channel"=>"{ \"media_properties\" : { \"media_url\": \"http://foobar.test/ClusterTests/call1.wav\"}}", "ServiceSid"=>"GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "CustomerKey"=>"aaaaaaaa"}
Response examples (202)
Create
{
"sid": "GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://intelligence.twilio.com/v2/Transcripts/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"links": {
"media": "https://intelligence.twilio.com/v2/Transcripts/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Media",
"sentences": "https://intelligence.twilio.com/v2/Transcripts/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Sentences",
"operator_results": "https://intelligence.twilio.com/v2/Transcripts/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OperatorResults"
},
"status": "queued",
"channel": {
"media_properties": {
"media_url": "http://foobar.test/ClusterTests/call1.wav"
}
},
"duration": 0,
"redaction": true,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"service_sid": "GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"customer_key": "aaaaaaaa",
"data_logging": false,
"date_created": "2010-08-31T20:36:28Z",
"date_updated": "2010-08-31T20:36:28Z",
"language_code": "en-US",
"media_start_time": null
}
{
"sid": "GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://intelligence.twilio.com/v2/Transcripts/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"links": {
"media": "https://intelligence.twilio.com/v2/Transcripts/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Media",
"sentences": "https://intelligence.twilio.com/v2/Transcripts/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Sentences",
"operator_results": "https://intelligence.twilio.com/v2/Transcripts/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OperatorResults"
},
"status": "queued",
"channel": {
"media_properties": {
"media_url": "http://foobar.test/ClusterTests/call1.wav"
}
},
"duration": 0,
"redaction": true,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"service_sid": "GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"customer_key": null,
"data_logging": false,
"date_created": "2010-08-31T20:36:28Z",
"date_updated": "2010-08-31T20:36:28Z",
"language_code": "en-US",
"media_start_time": null
}