github.com/twilio/twilio-go@v1.20.1/rest/api/v2010/docs/AccountsRecordingsApi.md (about) 1 # AccountsRecordingsApi 2 3 All URIs are relative to *https://api.twilio.com* 4 5 Method | HTTP request | Description 6 ------------- | ------------- | ------------- 7 [**DeleteRecording**](AccountsRecordingsApi.md#DeleteRecording) | **Delete** /2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json | 8 [**FetchRecording**](AccountsRecordingsApi.md#FetchRecording) | **Get** /2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json | 9 [**ListRecording**](AccountsRecordingsApi.md#ListRecording) | **Get** /2010-04-01/Accounts/{AccountSid}/Recordings.json | 10 11 12 13 ## DeleteRecording 14 15 > DeleteRecording(ctx, Sidoptional) 16 17 18 19 Delete a recording from your account 20 21 ### Path Parameters 22 23 24 Name | Type | Description 25 ------------- | ------------- | ------------- 26 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 27 **Sid** | **string** | The Twilio-provided string that uniquely identifies the Recording resource to delete. 28 29 ### Other Parameters 30 31 Other parameters are passed through a pointer to a DeleteRecordingParams struct 32 33 34 Name | Type | Description 35 ------------- | ------------- | ------------- 36 **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to delete. 37 38 ### Return type 39 40 (empty response body) 41 42 ### Authorization 43 44 [accountSid_authToken](../README.md#accountSid_authToken) 45 46 ### HTTP request headers 47 48 - **Content-Type**: Not defined 49 - **Accept**: Not defined 50 51 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 52 [[Back to Model list]](../README.md#documentation-for-models) 53 [[Back to README]](../README.md) 54 55 56 ## FetchRecording 57 58 > ApiV2010Recording FetchRecording(ctx, Sidoptional) 59 60 61 62 Fetch an instance of a recording 63 64 ### Path Parameters 65 66 67 Name | Type | Description 68 ------------- | ------------- | ------------- 69 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 70 **Sid** | **string** | The Twilio-provided string that uniquely identifies the Recording resource to fetch. 71 72 ### Other Parameters 73 74 Other parameters are passed through a pointer to a FetchRecordingParams struct 75 76 77 Name | Type | Description 78 ------------- | ------------- | ------------- 79 **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to fetch. 80 **IncludeSoftDeleted** | **bool** | A boolean parameter indicating whether to retrieve soft deleted recordings or not. Recordings metadata are kept after deletion for a retention period of 40 days. 81 82 ### Return type 83 84 [**ApiV2010Recording**](ApiV2010Recording.md) 85 86 ### Authorization 87 88 [accountSid_authToken](../README.md#accountSid_authToken) 89 90 ### HTTP request headers 91 92 - **Content-Type**: Not defined 93 - **Accept**: application/json 94 95 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 96 [[Back to Model list]](../README.md#documentation-for-models) 97 [[Back to README]](../README.md) 98 99 100 ## ListRecording 101 102 > []ApiV2010Recording ListRecording(ctx, optional) 103 104 105 106 Retrieve a list of recordings belonging to the account used to make the request 107 108 ### Path Parameters 109 110 This endpoint does not need any path parameter. 111 112 ### Other Parameters 113 114 Other parameters are passed through a pointer to a ListRecordingParams struct 115 116 117 Name | Type | Description 118 ------------- | ------------- | ------------- 119 **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to read. 120 **DateCreated** | **time.Time** | Only include recordings that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read recordings that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read recordings that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read recordings that were created on or after midnight of this date. 121 **DateCreatedBefore** | **time.Time** | Only include recordings that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read recordings that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read recordings that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read recordings that were created on or after midnight of this date. 122 **DateCreatedAfter** | **time.Time** | Only include recordings that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read recordings that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read recordings that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read recordings that were created on or after midnight of this date. 123 **CallSid** | **string** | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to read. 124 **ConferenceSid** | **string** | The Conference SID that identifies the conference associated with the recording to read. 125 **IncludeSoftDeleted** | **bool** | A boolean parameter indicating whether to retrieve soft deleted recordings or not. Recordings metadata are kept after deletion for a retention period of 40 days. 126 **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. 127 **Limit** | **int** | Max number of records to return. 128 129 ### Return type 130 131 [**[]ApiV2010Recording**](ApiV2010Recording.md) 132 133 ### Authorization 134 135 [accountSid_authToken](../README.md#accountSid_authToken) 136 137 ### HTTP request headers 138 139 - **Content-Type**: Not defined 140 - **Accept**: application/json 141 142 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 143 [[Back to Model list]](../README.md#documentation-for-models) 144 [[Back to README]](../README.md) 145