# Recording Add-on Results Payloads Subresource

This subresource of the [Recording Add-on Results resource](/docs/marketplace/api/recording-add-on-results) allows Recording Add-on Listing users to fetch a Payload, view a list of Payloads, or delete Payloads associated with a specific Recording Add-on Result.

> \[!WARNING]
>
> The retention period for Recording Add-on Results is 30 days, after which they cannot be accessed.

## Payload Properties

```json
{"type":"object","refName":"api.v2010.account.recording.recording_add_on_result.recording_add_on_result_payload","modelName":"api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload","properties":{"sid":{"type":"string","minLength":34,"maxLength":34,"pattern":"^XH[0-9a-fA-F]{32}$","nullable":true,"description":"The unique string that that we created to identify the Recording AddOnResult Payload resource."},"add_on_result_sid":{"type":"string","minLength":34,"maxLength":34,"pattern":"^XR[0-9a-fA-F]{32}$","nullable":true,"description":"The SID of the AddOnResult to which the payload belongs."},"account_sid":{"type":"string","minLength":34,"maxLength":34,"pattern":"^AC[0-9a-fA-F]{32}$","nullable":true,"description":"The SID of the [Account](/docs/iam/api/account) that created the Recording AddOnResult Payload resource."},"label":{"type":"string","nullable":true,"description":"The string provided by the vendor that describes the payload."},"add_on_sid":{"type":"string","minLength":34,"maxLength":34,"pattern":"^XB[0-9a-fA-F]{32}$","nullable":true,"description":"The SID of the Add-on to which the result belongs."},"add_on_configuration_sid":{"type":"string","minLength":34,"maxLength":34,"pattern":"^XE[0-9a-fA-F]{32}$","nullable":true,"description":"The SID of the Add-on configuration."},"content_type":{"type":"string","nullable":true,"description":"The MIME type of the payload."},"date_created":{"type":"string","format":"date-time-rfc-2822","nullable":true,"description":"The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format."},"date_updated":{"type":"string","format":"date-time-rfc-2822","nullable":true,"description":"The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format."},"reference_sid":{"type":"string","minLength":34,"maxLength":34,"pattern":"^RE[0-9a-fA-F]{32}$","nullable":true,"description":"The SID of the recording to which the AddOnResult resource that contains the payload belongs."},"subresource_uris":{"type":"object","format":"uri-map","nullable":true,"description":"A list of related resources identified by their relative URIs."}}}
```

## Fetch an instance of a result payload

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

### Path parameters

```json
[{"name":"AccountSid","in":"path","description":"The SID of the [Account](/docs/iam/api/account) that created the Recording AddOnResult Payload resource to fetch.","schema":{"type":"string","minLength":34,"maxLength":34,"pattern":"^AC[0-9a-fA-F]{32}$"},"required":true},{"name":"ReferenceSid","in":"path","description":"The SID of the recording to which the AddOnResult resource that contains the payload to fetch belongs.","schema":{"type":"string","minLength":34,"maxLength":34,"pattern":"^RE[0-9a-fA-F]{32}$"},"required":true},{"name":"AddOnResultSid","in":"path","description":"The SID of the AddOnResult to which the payload to fetch belongs.","schema":{"type":"string","minLength":34,"maxLength":34,"pattern":"^XR[0-9a-fA-F]{32}$"},"required":true},{"name":"Sid","in":"path","description":"The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to fetch.","schema":{"type":"string","minLength":34,"maxLength":34,"pattern":"^XH[0-9a-fA-F]{32}$"},"required":true}]
```

This endpoint returns details on a given Payload associated with a given Result.

Fetch a Payload

```js
// Download the helper library from https://www.twilio.com/docs/node/install
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = twilio(accountSid, authToken);

async function fetchRecordingAddOnResultPayload() {
  const payload = await client
    .recordings("REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    .addOnResults("XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    .payloads("XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    .fetch();

  console.log(payload.sid);
}

fetchRecordingAddOnResultPayload();
```

```python
# Download the helper library from https://www.twilio.com/docs/python/install
import os
from twilio.rest import Client

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = os.environ["TWILIO_ACCOUNT_SID"]
auth_token = os.environ["TWILIO_AUTH_TOKEN"]
client = Client(account_sid, auth_token)

payload = (
    client.recordings("REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    .add_on_results("XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    .payloads("XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    .fetch()
)

print(payload.sid)
```

```csharp
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Api.V2010.Account.Recording.AddOnResult;
using System.Threading.Tasks;

class Program {
    public static async Task Main(string[] args) {
        // Find your Account SID and Auth Token at twilio.com/console
        // and set the environment variables. See http://twil.io/secure
        string accountSid = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");
        string authToken = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");

        TwilioClient.Init(accountSid, authToken);

        var payload = await PayloadResource.FetchAsync(
            pathReferenceSid: "REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
            pathAddOnResultSid: "XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
            pathSid: "XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");

        Console.WriteLine(payload.Sid);
    }
}
```

```java
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.recording.addonresult.Payload;

public class Example {
    // Find your Account SID and Auth Token at twilio.com/console
    // and set the environment variables. See http://twil.io/secure
    public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID");
    public static final String AUTH_TOKEN = System.getenv("TWILIO_AUTH_TOKEN");

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        Payload payload = Payload
                              .fetcher("REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
                                  "XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
                                  "XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
                              .fetch();

        System.out.println(payload.getSid());
    }
}
```

```go
// Download the helper library from https://www.twilio.com/docs/go/install
package main

import (
	"fmt"
	"github.com/twilio/twilio-go"
	api "github.com/twilio/twilio-go/rest/api/v2010"
	"os"
)

func main() {
	// Find your Account SID and Auth Token at twilio.com/console
	// and set the environment variables. See http://twil.io/secure
	// Make sure TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN exists in your environment
	client := twilio.NewRestClient()

	params := &api.FetchRecordingAddOnResultPayloadParams{}

	resp, err := client.Api.FetchRecordingAddOnResultPayload("REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
		"XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
		"XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
		params)
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	} else {
		if resp.Sid != nil {
			fmt.Println(*resp.Sid)
		} else {
			fmt.Println(resp.Sid)
		}
	}
}
```

```php
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once "/path/to/vendor/autoload.php";

use Twilio\Rest\Client;

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
$sid = getenv("TWILIO_ACCOUNT_SID");
$token = getenv("TWILIO_AUTH_TOKEN");
$twilio = new Client($sid, $token);

$payload = $twilio
    ->recordings("REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    ->addOnResults("XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    ->payloads("XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    ->fetch();

print $payload->sid;
```

```ruby
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'twilio-ruby'

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = ENV['TWILIO_ACCOUNT_SID']
auth_token = ENV['TWILIO_AUTH_TOKEN']
@client = Twilio::REST::Client.new(account_sid, auth_token)

payload = @client
          .api
          .v2010
          .recordings('REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
          .add_on_results('XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
          .payloads('XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
          .fetch

puts payload.sid
```

```bash
# Install the twilio-cli from https://twil.io/cli

twilio api:core:recordings:add-on-results:payloads:fetch \
   --reference-sid REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \
   --add-on-result-sid XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \
   --sid XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
```

```bash
curl -X GET "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Recordings/REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AddOnResults/XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Payloads/XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json" \
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
```

```json
{
  "sid": "XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "reference_sid": "REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "add_on_sid": "XBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "add_on_configuration_sid": "XEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "add_on_result_sid": "XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "label": "XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "content_type": "application/json",
  "date_created": "Wed, 01 Sep 2010 15:15:41 +0000",
  "date_updated": "Wed, 01 Sep 2010 15:15:41 +0000",
  "subresource_uris": {
    "data": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings/REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AddOnResults/XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Payloads/XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Data.json"
  }
}
```

## Retrieve a list of payloads belonging to the AddOnResult

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

### Path parameters

```json
[{"name":"AccountSid","in":"path","description":"The SID of the [Account](/docs/iam/api/account) that created the Recording AddOnResult Payload resources to read.","schema":{"type":"string","minLength":34,"maxLength":34,"pattern":"^AC[0-9a-fA-F]{32}$"},"required":true},{"name":"ReferenceSid","in":"path","description":"The SID of the recording to which the AddOnResult resource that contains the payloads to read belongs.","schema":{"type":"string","minLength":34,"maxLength":34,"pattern":"^RE[0-9a-fA-F]{32}$"},"required":true},{"name":"AddOnResultSid","in":"path","description":"The SID of the AddOnResult to which the payloads to read belongs.","schema":{"type":"string","minLength":34,"maxLength":34,"pattern":"^XR[0-9a-fA-F]{32}$"},"required":true}]
```

### Query parameters

```json
[{"name":"PageSize","in":"query","description":"How many resources to return in each list page. The default is 50, and the maximum is 1000.","schema":{"type":"integer","format":"int64","minimum":1,"maximum":1000}},{"name":"Page","in":"query","description":"The page index. This value is simply for client state.","schema":{"type":"integer","minimum":0}},{"name":"PageToken","in":"query","description":"The page token. This is provided by the API.","schema":{"type":"string"}}]
```

This endpoint returns all Payloads associated with a given Result.

List multiple Payloads

```js
// Download the helper library from https://www.twilio.com/docs/node/install
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = twilio(accountSid, authToken);

async function listRecordingAddOnResultPayload() {
  const payloads = await client
    .recordings("REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    .addOnResults("XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    .payloads.list({ limit: 20 });

  payloads.forEach((p) => console.log(p.sid));
}

listRecordingAddOnResultPayload();
```

```python
# Download the helper library from https://www.twilio.com/docs/python/install
import os
from twilio.rest import Client

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = os.environ["TWILIO_ACCOUNT_SID"]
auth_token = os.environ["TWILIO_AUTH_TOKEN"]
client = Client(account_sid, auth_token)

payloads = (
    client.recordings("REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    .add_on_results("XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    .payloads.list(limit=20)
)

for record in payloads:
    print(record.sid)
```

```csharp
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Api.V2010.Account.Recording.AddOnResult;
using System.Threading.Tasks;

class Program {
    public static async Task Main(string[] args) {
        // Find your Account SID and Auth Token at twilio.com/console
        // and set the environment variables. See http://twil.io/secure
        string accountSid = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");
        string authToken = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");

        TwilioClient.Init(accountSid, authToken);

        var payloads = await PayloadResource.ReadAsync(
            pathReferenceSid: "REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
            pathAddOnResultSid: "XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
            limit: 20);

        foreach (var record in payloads) {
            Console.WriteLine(record.Sid);
        }
    }
}
```

```java
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.recording.addonresult.Payload;
import com.twilio.base.ResourceSet;

public class Example {
    // Find your Account SID and Auth Token at twilio.com/console
    // and set the environment variables. See http://twil.io/secure
    public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID");
    public static final String AUTH_TOKEN = System.getenv("TWILIO_AUTH_TOKEN");

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        ResourceSet<Payload> payloads =
            Payload.reader("REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").limit(20).read();

        for (Payload record : payloads) {
            System.out.println(record.getSid());
        }
    }
}
```

```go
// Download the helper library from https://www.twilio.com/docs/go/install
package main

import (
	"fmt"
	"github.com/twilio/twilio-go"
	api "github.com/twilio/twilio-go/rest/api/v2010"
	"os"
)

func main() {
	// Find your Account SID and Auth Token at twilio.com/console
	// and set the environment variables. See http://twil.io/secure
	// Make sure TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN exists in your environment
	client := twilio.NewRestClient()

	params := &api.ListRecordingAddOnResultPayloadParams{}
	params.SetLimit(20)

	resp, err := client.Api.ListRecordingAddOnResultPayload("REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
		"XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
		params)
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	} else {
		for record := range resp {
			if resp[record].Sid != nil {
				fmt.Println(*resp[record].Sid)
			} else {
				fmt.Println(resp[record].Sid)
			}
		}
	}
}
```

```php
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once "/path/to/vendor/autoload.php";

use Twilio\Rest\Client;

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
$sid = getenv("TWILIO_ACCOUNT_SID");
$token = getenv("TWILIO_AUTH_TOKEN");
$twilio = new Client($sid, $token);

$payloads = $twilio
    ->recordings("REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    ->addOnResults("XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    ->payloads->read(20);

foreach ($payloads as $record) {
    print $record->sid;
}
```

```ruby
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'twilio-ruby'

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = ENV['TWILIO_ACCOUNT_SID']
auth_token = ENV['TWILIO_AUTH_TOKEN']
@client = Twilio::REST::Client.new(account_sid, auth_token)

payloads = @client
           .api
           .v2010
           .recordings('REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
           .add_on_results('XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
           .payloads
           .list(limit: 20)

payloads.each do |record|
   puts record.sid
end
```

```bash
# Install the twilio-cli from https://twil.io/cli

twilio api:core:recordings:add-on-results:payloads:list \
   --reference-sid REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \
   --add-on-result-sid XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
```

```bash
curl -X GET "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Recordings/REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AddOnResults/XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Payloads.json?PageSize=20" \
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
```

```json
{
  "end": 0,
  "first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings/REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AddOnResults/XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Payloads.json?PageSize=50&Page=0",
  "next_page_uri": null,
  "page": 0,
  "page_size": 50,
  "previous_page_uri": null,
  "payloads": [
    {
      "sid": "XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "reference_sid": "REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "add_on_sid": "XBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "add_on_configuration_sid": "XEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "add_on_result_sid": "XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "label": "XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "content_type": "application/json",
      "date_created": "Wed, 01 Sep 2010 15:15:41 +0000",
      "date_updated": "Wed, 01 Sep 2010 15:15:41 +0000",
      "subresource_uris": {
        "data": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings/REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AddOnResults/XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Payloads/XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Data.json"
      }
    }
  ],
  "start": 0,
  "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings/REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AddOnResults/XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Payloads.json?PageSize=50&Page=0"
}
```

## Delete a payload from the result along with all associated Data

`DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json`

### Path parameters

```json
[{"name":"AccountSid","in":"path","description":"The SID of the [Account](/docs/iam/api/account) that created the Recording AddOnResult Payload resources to delete.","schema":{"type":"string","minLength":34,"maxLength":34,"pattern":"^AC[0-9a-fA-F]{32}$"},"required":true},{"name":"ReferenceSid","in":"path","description":"The SID of the recording to which the AddOnResult resource that contains the payloads to delete belongs.","schema":{"type":"string","minLength":34,"maxLength":34,"pattern":"^RE[0-9a-fA-F]{32}$"},"required":true},{"name":"AddOnResultSid","in":"path","description":"The SID of the AddOnResult to which the payloads to delete belongs.","schema":{"type":"string","minLength":34,"maxLength":34,"pattern":"^XR[0-9a-fA-F]{32}$"},"required":true},{"name":"Sid","in":"path","description":"The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to delete.","schema":{"type":"string","minLength":34,"maxLength":34,"pattern":"^XH[0-9a-fA-F]{32}$"},"required":true}]
```

This endpoint deletes a given Payload associated with a given Result.

Delete a Payload

```js
// Download the helper library from https://www.twilio.com/docs/node/install
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = twilio(accountSid, authToken);

async function deleteRecordingAddOnResultPayload() {
  await client
    .recordings("REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    .addOnResults("XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    .payloads("XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    .remove();
}

deleteRecordingAddOnResultPayload();
```

```python
# Download the helper library from https://www.twilio.com/docs/python/install
import os
from twilio.rest import Client

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = os.environ["TWILIO_ACCOUNT_SID"]
auth_token = os.environ["TWILIO_AUTH_TOKEN"]
client = Client(account_sid, auth_token)

client.recordings("REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").add_on_results(
    "XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
).payloads("XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete()
```

```csharp
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Api.V2010.Account.Recording.AddOnResult;
using System.Threading.Tasks;

class Program {
    public static async Task Main(string[] args) {
        // Find your Account SID and Auth Token at twilio.com/console
        // and set the environment variables. See http://twil.io/secure
        string accountSid = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");
        string authToken = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");

        TwilioClient.Init(accountSid, authToken);

        await PayloadResource.DeleteAsync(
            pathReferenceSid: "REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
            pathAddOnResultSid: "XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
            pathSid: "XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
    }
}
```

```java
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.recording.addonresult.Payload;

public class Example {
    // Find your Account SID and Auth Token at twilio.com/console
    // and set the environment variables. See http://twil.io/secure
    public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID");
    public static final String AUTH_TOKEN = System.getenv("TWILIO_AUTH_TOKEN");

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        Payload
            .deleter("REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
                "XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
                "XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
            .delete();
    }
}
```

```go
// Download the helper library from https://www.twilio.com/docs/go/install
package main

import (
	"fmt"
	"github.com/twilio/twilio-go"
	api "github.com/twilio/twilio-go/rest/api/v2010"
	"os"
)

func main() {
	// Find your Account SID and Auth Token at twilio.com/console
	// and set the environment variables. See http://twil.io/secure
	// Make sure TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN exists in your environment
	client := twilio.NewRestClient()

	params := &api.DeleteRecordingAddOnResultPayloadParams{}

	err := client.Api.DeleteRecordingAddOnResultPayload("REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
		"XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
		"XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
		params)
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	}
}
```

```php
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once "/path/to/vendor/autoload.php";

use Twilio\Rest\Client;

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
$sid = getenv("TWILIO_ACCOUNT_SID");
$token = getenv("TWILIO_AUTH_TOKEN");
$twilio = new Client($sid, $token);

$twilio
    ->recordings("REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    ->addOnResults("XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    ->payloads("XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
    ->delete();
```

```ruby
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'twilio-ruby'

# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = ENV['TWILIO_ACCOUNT_SID']
auth_token = ENV['TWILIO_AUTH_TOKEN']
@client = Twilio::REST::Client.new(account_sid, auth_token)

@client
  .api
  .v2010
  .recordings('REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
  .add_on_results('XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
  .payloads('XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
  .delete
```

```bash
# Install the twilio-cli from https://twil.io/cli

twilio api:core:recordings:add-on-results:payloads:remove \
   --reference-sid REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \
   --add-on-result-sid XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \
   --sid XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
```

```bash
curl -X DELETE "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Recordings/REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AddOnResults/XRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Payloads/XHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json" \
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
```
