twilio-rust-openapi 1.0.0

This is the public Twilio REST API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
# \Api20100401RecordingApi

All URIs are relative to *https://api.twilio.com*

Method | HTTP request | Description
------------- | ------------- | -------------
[**create_call_recording**]Api20100401RecordingApi.md#create_call_recording | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json | 
[**delete_call_recording**]Api20100401RecordingApi.md#delete_call_recording | **DELETE** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json | 
[**delete_conference_recording**]Api20100401RecordingApi.md#delete_conference_recording | **DELETE** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json | 
[**delete_recording**]Api20100401RecordingApi.md#delete_recording | **DELETE** /2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json | 
[**fetch_call_recording**]Api20100401RecordingApi.md#fetch_call_recording | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json | 
[**fetch_conference_recording**]Api20100401RecordingApi.md#fetch_conference_recording | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json | 
[**fetch_recording**]Api20100401RecordingApi.md#fetch_recording | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json | 
[**list_call_recording**]Api20100401RecordingApi.md#list_call_recording | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json | 
[**list_conference_recording**]Api20100401RecordingApi.md#list_conference_recording | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings.json | 
[**list_recording**]Api20100401RecordingApi.md#list_recording | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings.json | 
[**update_call_recording**]Api20100401RecordingApi.md#update_call_recording | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json | 
[**update_conference_recording**]Api20100401RecordingApi.md#update_conference_recording | **POST** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json | 



## create_call_recording

> models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording create_call_recording(account_sid, call_sid, recording_status_callback_event, recording_status_callback, recording_status_callback_method, trim, recording_channels, recording_track)


Create a recording for the call

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**account_sid** | **String** | The SID of the [Account]https://www.twilio.com/docs/iam/api/account that will create the resource. | [required] |
**call_sid** | **String** | The SID of the [Call]https://www.twilio.com/docs/voice/api/call-resource to associate the resource with. | [required] |
**recording_status_callback_event** | Option<[**Vec<String>**]String.md> | The recording status events on which we should call the `recording_status_callback` URL. Can be: `in-progress`, `completed` and `absent` and the default is `completed`. Separate multiple event values with a space. |  |
**recording_status_callback** | Option<**String**> | The URL we should call using the `recording_status_callback_method` on each recording event specified in  `recording_status_callback_event`. For more information, see [RecordingStatusCallback parameters]https://www.twilio.com/docs/voice/api/recording#recordingstatuscallback. |  |
**recording_status_callback_method** | Option<**String**> | The HTTP method we should use to call `recording_status_callback`. Can be: `GET` or `POST` and the default is `POST`. |  |
**trim** | Option<**String**> | Whether to trim any leading and trailing silence in the recording. Can be: `trim-silence` or `do-not-trim` and the default is `do-not-trim`. `trim-silence` trims the silence from the beginning and end of the recording and `do-not-trim` does not. |  |
**recording_channels** | Option<**String**> | The number of channels used in the recording. Can be: `mono` or `dual` and the default is `mono`. `mono` records all parties of the call into one channel. `dual` records each party of a 2-party call into separate channels. |  |
**recording_track** | Option<**String**> | The audio track to record for the call. Can be: `inbound`, `outbound` or `both`. The default is `both`. `inbound` records the audio that is received by Twilio. `outbound` records the audio that is generated from Twilio. `both` records the audio that is received and generated by Twilio. |  |

### Return type

[**models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording**](api.v2010.account.call.call_recording.md)

### Authorization

[accountSid_authToken](../README.md#accountSid_authToken)

### HTTP request headers

- **Content-Type**: application/x-www-form-urlencoded
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## delete_call_recording

> delete_call_recording(account_sid, call_sid, sid)


Delete a recording from your account

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**account_sid** | **String** | The SID of the [Account]https://www.twilio.com/docs/iam/api/account that created the Recording resources to delete. | [required] |
**call_sid** | **String** | The [Call]https://www.twilio.com/docs/voice/api/call-resource SID of the resources to delete. | [required] |
**sid** | **String** | The Twilio-provided string that uniquely identifies the Recording resource to delete. | [required] |

### Return type

 (empty response body)

### Authorization

[accountSid_authToken](../README.md#accountSid_authToken)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## delete_conference_recording

> delete_conference_recording(account_sid, conference_sid, sid)


Delete a recording from your account

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**account_sid** | **String** | The SID of the [Account]https://www.twilio.com/docs/iam/api/account that created the Conference Recording resources to delete. | [required] |
**conference_sid** | **String** | The Conference SID that identifies the conference associated with the recording to delete. | [required] |
**sid** | **String** | The Twilio-provided string that uniquely identifies the Conference Recording resource to delete. | [required] |

### Return type

 (empty response body)

### Authorization

[accountSid_authToken](../README.md#accountSid_authToken)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## delete_recording

> delete_recording(account_sid, sid)


Delete a recording from your account

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**account_sid** | **String** | The SID of the [Account]https://www.twilio.com/docs/iam/api/account that created the Recording resources to delete. | [required] |
**sid** | **String** | The Twilio-provided string that uniquely identifies the Recording resource to delete. | [required] |

### Return type

 (empty response body)

### Authorization

[accountSid_authToken](../README.md#accountSid_authToken)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## fetch_call_recording

> models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording fetch_call_recording(account_sid, call_sid, sid)


Fetch an instance of a recording for a call

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**account_sid** | **String** | The SID of the [Account]https://www.twilio.com/docs/iam/api/account that created the Recording resource to fetch. | [required] |
**call_sid** | **String** | The [Call]https://www.twilio.com/docs/voice/api/call-resource SID of the resource to fetch. | [required] |
**sid** | **String** | The Twilio-provided string that uniquely identifies the Recording resource to fetch. | [required] |

### Return type

[**models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording**](api.v2010.account.call.call_recording.md)

### Authorization

[accountSid_authToken](../README.md#accountSid_authToken)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## fetch_conference_recording

> models::ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording fetch_conference_recording(account_sid, conference_sid, sid)


Fetch an instance of a recording for a call

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**account_sid** | **String** | The SID of the [Account]https://www.twilio.com/docs/iam/api/account that created the Conference Recording resource to fetch. | [required] |
**conference_sid** | **String** | The Conference SID that identifies the conference associated with the recording to fetch. | [required] |
**sid** | **String** | The Twilio-provided string that uniquely identifies the Conference Recording resource to fetch. | [required] |

### Return type

[**models::ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording**](api.v2010.account.conference.conference_recording.md)

### Authorization

[accountSid_authToken](../README.md#accountSid_authToken)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## fetch_recording

> models::ApiPeriodV2010PeriodAccountPeriodRecording fetch_recording(account_sid, sid, include_soft_deleted)


Fetch an instance of a recording

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**account_sid** | **String** | The SID of the [Account]https://www.twilio.com/docs/iam/api/account that created the Recording resource to fetch. | [required] |
**sid** | **String** | The Twilio-provided string that uniquely identifies the Recording resource to fetch. | [required] |
**include_soft_deleted** | Option<**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. |  |

### Return type

[**models::ApiPeriodV2010PeriodAccountPeriodRecording**](api.v2010.account.recording.md)

### Authorization

[accountSid_authToken](../README.md#accountSid_authToken)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## list_call_recording

> models::ListCallRecordingResponse list_call_recording(account_sid, call_sid, date_created, date_created_less_than, date_created_greater_than, page_size, page, page_token)


Retrieve a list of recordings belonging to the call used to make the request

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**account_sid** | **String** | The SID of the [Account]https://www.twilio.com/docs/iam/api/account that created the Recording resources to read. | [required] |
**call_sid** | **String** | The [Call]https://www.twilio.com/docs/voice/api/call-resource SID of the resources to read. | [required] |
**date_created** | Option<**String**> | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. |  |
**date_created_less_than** | Option<**String**> | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. |  |
**date_created_greater_than** | Option<**String**> | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. |  |
**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. |  |
**page** | Option<**i32**> | The page index. This value is simply for client state. |  |
**page_token** | Option<**String**> | The page token. This is provided by the API. |  |

### Return type

[**models::ListCallRecordingResponse**](ListCallRecordingResponse.md)

### Authorization

[accountSid_authToken](../README.md#accountSid_authToken)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## list_conference_recording

> models::ListConferenceRecordingResponse list_conference_recording(account_sid, conference_sid, date_created, date_created_less_than, date_created_greater_than, page_size, page, page_token)


Retrieve a list of recordings belonging to the call used to make the request

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**account_sid** | **String** | The SID of the [Account]https://www.twilio.com/docs/iam/api/account that created the Conference Recording resources to read. | [required] |
**conference_sid** | **String** | The Conference SID that identifies the conference associated with the recording to read. | [required] |
**date_created** | Option<**String**> | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. |  |
**date_created_less_than** | Option<**String**> | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. |  |
**date_created_greater_than** | Option<**String**> | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. |  |
**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. |  |
**page** | Option<**i32**> | The page index. This value is simply for client state. |  |
**page_token** | Option<**String**> | The page token. This is provided by the API. |  |

### Return type

[**models::ListConferenceRecordingResponse**](ListConferenceRecordingResponse.md)

### Authorization

[accountSid_authToken](../README.md#accountSid_authToken)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## list_recording

> models::ListRecordingResponse list_recording(account_sid, date_created, date_created_less_than, date_created_greater_than, call_sid, conference_sid, include_soft_deleted, page_size, page, page_token)


Retrieve a list of recordings belonging to the account used to make the request

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**account_sid** | **String** | The SID of the [Account]https://www.twilio.com/docs/iam/api/account that created the Recording resources to read. | [required] |
**date_created** | Option<**String**> | 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. |  |
**date_created_less_than** | Option<**String**> | 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. |  |
**date_created_greater_than** | Option<**String**> | 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. |  |
**call_sid** | Option<**String**> | The [Call]https://www.twilio.com/docs/voice/api/call-resource SID of the resources to read. |  |
**conference_sid** | Option<**String**> | The Conference SID that identifies the conference associated with the recording to read. |  |
**include_soft_deleted** | Option<**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. |  |
**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. |  |
**page** | Option<**i32**> | The page index. This value is simply for client state. |  |
**page_token** | Option<**String**> | The page token. This is provided by the API. |  |

### Return type

[**models::ListRecordingResponse**](ListRecordingResponse.md)

### Authorization

[accountSid_authToken](../README.md#accountSid_authToken)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## update_call_recording

> models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording update_call_recording(account_sid, call_sid, sid, status, pause_behavior)


Changes the status of the recording to paused, stopped, or in-progress. Note: Pass `Twilio.CURRENT` instead of recording sid to reference current active recording.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**account_sid** | **String** | The SID of the [Account]https://www.twilio.com/docs/iam/api/account that created the Recording resource to update. | [required] |
**call_sid** | **String** | The [Call]https://www.twilio.com/docs/voice/api/call-resource SID of the resource to update. | [required] |
**sid** | **String** | The Twilio-provided string that uniquely identifies the Recording resource to update. | [required] |
**status** | **models::CallRecordingEnumStatus** |  | [required] |
**pause_behavior** | Option<**String**> | Whether to record during a pause. Can be: `skip` or `silence` and the default is `silence`. `skip` does not record during the pause period, while `silence` will replace the actual audio of the call with silence during the pause period. This parameter only applies when setting `status` is set to `paused`. |  |

### Return type

[**models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording**](api.v2010.account.call.call_recording.md)

### Authorization

[accountSid_authToken](../README.md#accountSid_authToken)

### HTTP request headers

- **Content-Type**: application/x-www-form-urlencoded
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## update_conference_recording

> models::ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording update_conference_recording(account_sid, conference_sid, sid, status, pause_behavior)


Changes the status of the recording to paused, stopped, or in-progress. Note: To use `Twilio.CURRENT`, pass it as recording sid.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**account_sid** | **String** | The SID of the [Account]https://www.twilio.com/docs/iam/api/account that created the Conference Recording resource to update. | [required] |
**conference_sid** | **String** | The Conference SID that identifies the conference associated with the recording to update. | [required] |
**sid** | **String** | The Twilio-provided string that uniquely identifies the Conference Recording resource to update. Use `Twilio.CURRENT` to reference the current active recording. | [required] |
**status** | **models::ConferenceRecordingEnumStatus** |  | [required] |
**pause_behavior** | Option<**String**> | Whether to record during a pause. Can be: `skip` or `silence` and the default is `silence`. `skip` does not record during the pause period, while `silence` will replace the actual audio of the call with silence during the pause period. This parameter only applies when setting `status` is set to `paused`. |  |

### Return type

[**models::ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording**](api.v2010.account.conference.conference_recording.md)

### Authorization

[accountSid_authToken](../README.md#accountSid_authToken)

### HTTP request headers

- **Content-Type**: application/x-www-form-urlencoded
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)