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

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)

Warning

The retention period for Recording Add-on Results is 30 days, after which they cannot be accessed.


Data Properties

data-properties page anchor
Property nameTypeRequiredDescriptionChild properties
redirect_tostring<uri>Optional
Not PII

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

Path parameters

path-parameters page anchor
Property nameTypeRequiredPIIDescription
AccountSidSID<AC>required

The SID of the Account that created the Recording AddOnResult Payload resource to fetch.

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

ReferenceSidSID<RE>required

The SID of the recording to which the AddOnResult resource that contains the payload to fetch belongs.

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

AddOnResultSidSID<XR>required

The SID of the AddOnResult to which the payload to fetch belongs.

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

PayloadSidSID<XH>required

The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to fetch.

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

Fetch a Datum

fetch-a-datum page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_21
// Download the helper library from https://www.twilio.com/docs/node/install
_21
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_21
_21
// Find your Account SID and Auth Token at twilio.com/console
_21
// and set the environment variables. See http://twil.io/secure
_21
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_21
const authToken = process.env.TWILIO_AUTH_TOKEN;
_21
const client = twilio(accountSid, authToken);
_21
_21
async function fetchRecordingAddOnResultPayloadData() {
_21
const datum = await client
_21
.recordings("REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_21
.addOnResults("XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_21
.payloads("XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_21
.data()
_21
.fetch();
_21
_21
console.log(datum.redirectTo);
_21
}
_21
_21
fetchRecordingAddOnResultPayloadData();

Output

_10
{
_10
"redirect_to": "http://example.com"
_10
}


GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{PayloadSid}/Data.json

Property nameTypeRequiredPIIDescription
AccountSidSID<AC>required

The SID of the Account that created the Recording AddOnResult Payload resource to fetch.

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

ReferenceSidSID<RE>required

The SID of the recording to which the AddOnResult resource that contains the payload to fetch belongs.

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

AddOnResultSidSID<XR>required

The SID of the AddOnResult to which the payload to fetch belongs.

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

PayloadSidSID<XH>required

The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to fetch.

Pattern: ^XH[0-9a-fA-F]{32}$Min length: 34Max length: 34
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_21
// Download the helper library from https://www.twilio.com/docs/node/install
_21
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_21
_21
// Find your Account SID and Auth Token at twilio.com/console
_21
// and set the environment variables. See http://twil.io/secure
_21
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_21
const authToken = process.env.TWILIO_AUTH_TOKEN;
_21
const client = twilio(accountSid, authToken);
_21
_21
async function fetchRecordingAddOnResultPayloadData() {
_21
const datum = await client
_21
.recordings("REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_21
.addOnResults("XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_21
.payloads("XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_21
.data()
_21
.fetch();
_21
_21
console.log(datum.redirectTo);
_21
}
_21
_21
fetchRecordingAddOnResultPayloadData();

Output

_10
{
_10
"redirect_to": "http://example.com"
_10
}


Rate this page: