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.
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: 34
Max length: 34
The SID of the recording to which the AddOnResult resource that contains the payload to fetch belongs.
^RE[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID of the AddOnResult to which the payload to fetch belongs.
^XR[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to fetch.
^XH[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
1// 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 and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function fetchRecordingAddOnResultPayloadData() {11const data = await client12.recordings("REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")13.addOnResults("XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")14.payloads("XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")15.data()16.fetch();1718console.log(data.redirectTo);19}2021fetchRecordingAddOnResultPayloadData();
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: 34
Max length: 34
The SID of the recording to which the AddOnResult resource that contains the payload to fetch belongs.
^RE[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID of the AddOnResult to which the payload to fetch belongs.
^XR[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to fetch.
^XH[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
1// 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 and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function fetchRecordingAddOnResultPayloadData() {11const data = await client12.recordings("REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")13.addOnResults("XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")14.payloads("XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")15.data()16.fetch();1718console.log(data.redirectTo);19}2021fetchRecordingAddOnResultPayloadData();
1{2"redirect_to": "http://example.com"3}