Recording Add-on Results Payloads Data Subresource
This subresource of the Recording Add-on Results Payloads subresource allows Recording Add-on Listing users to fetch or list the Data associated with a specific Recording Add-on Result Payload. The response includes a 307 redirect to a signed URL where the Data can be downloaded.
Warning
The retention period for Recording Add-on Results is 30 days, after which they cannot be accessed.
The URL to redirect to to get the data returned by the AddOn that was previously stored.
GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{PayloadSid}/Data.json
The SID of the Account that created the Recording AddOnResult Payload resource to fetch.
^AC[0-9a-fA-F]{32}$Min length: 34Max length: 34The SID of the recording to which the AddOnResult resource that contains the payload to fetch belongs.
^RE[0-9a-fA-F]{32}$Min length: 34Max length: 34The SID of the AddOnResult to which the payload to fetch belongs.
^XR[0-9a-fA-F]{32}$Min length: 34Max length: 34The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to fetch.
^XH[0-9a-fA-F]{32}$Min length: 34Max length: 341// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID at twilio.com/console5// Provision API Keys at twilio.com/console/runtime/api-keys6// and set the environment variables. See http://twil.io/secure7// For local testing, you can use your Account SID and Auth token8const accountSid = process.env.TWILIO_ACCOUNT_SID;9const apiKey = process.env.TWILIO_API_KEY;10const apiSecret = process.env.TWILIO_API_SECRET;11const client = twilio(apiKey, apiSecret, { accountSid: accountSid });1213async function fetchRecordingAddOnResultPayloadData() {14const data = await client15.recordings("REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")16.addOnResults("XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")17.payloads("XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")18.data()19.fetch();2021console.log(data.redirectTo);22}2324fetchRecordingAddOnResultPayloadData();
Response
1{2"redirect_to": "http://example.com"3}
GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{PayloadSid}/Data.json
The SID of the Account that created the Recording AddOnResult Payload resource to fetch.
^AC[0-9a-fA-F]{32}$Min length: 34Max length: 34The SID of the recording to which the AddOnResult resource that contains the payload to fetch belongs.
^RE[0-9a-fA-F]{32}$Min length: 34Max length: 34The SID of the AddOnResult to which the payload to fetch belongs.
^XR[0-9a-fA-F]{32}$Min length: 34Max length: 34The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to fetch.
^XH[0-9a-fA-F]{32}$Min length: 34Max length: 341// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID at twilio.com/console5// Provision API Keys at twilio.com/console/runtime/api-keys6// and set the environment variables. See http://twil.io/secure7// For local testing, you can use your Account SID and Auth token8const accountSid = process.env.TWILIO_ACCOUNT_SID;9const apiKey = process.env.TWILIO_API_KEY;10const apiSecret = process.env.TWILIO_API_SECRET;11const client = twilio(apiKey, apiSecret, { accountSid: accountSid });1213async function fetchRecordingAddOnResultPayloadData() {14const data = await client15.recordings("REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")16.addOnResults("XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")17.payloads("XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")18.data()19.fetch();2021console.log(data.redirectTo);22}2324fetchRecordingAddOnResultPayloadData();
Response
1{2"redirect_to": "http://example.com"3}