Create a Recording
Changed onStarts a recording resource for an active call. Use Update a Recording to pause, resume, or stop it; use the account-level Recordings collection to find saved media across calls.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Voice.
Learn more about API scopes.
Request
- Base URLhttps://YOUR_SPACE.signalwire.com/api/laml/2010-04-01
- URLhttps://YOUR_SPACE.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings
- AuthHTTP basic
Path parameters
Universal Unique Identifier.
The Project ID that uniquely identifies the Account.
Universal Unique Identifier.
The unique identifier for the call.
Request body application/x-www-form-urlencoded
Example request
{
"RecordingChannels": "mono",
"RecordingStatusCallback": "https://your-api-endpoint.com/recording-status",
"RecordingStatusCallbackEvent": "completed",
"RecordingStatusCallbackMethod": "POST",
"RecordingTrack": "both",
"Trim": "do-not-trim"
}Response
The request has succeeded.
Example response
{
"api_version": "2010-04-01",
"channel": "1",
"channels": "1",
"date_created": "Tue, 25 Sep 2018 23:00:00 +0000",
"date_updated": "Wed, 26 Sep 2018 23:00:04 +0000",
"start_time": "Tue, 25 Sep 2018 23:00:00 +0000",
"end_time": "Wed, 26 Sep 2018 23:00:04 +0000",
"duration": 4,
"price": "-0.0025",
"price_unit": "USD",
"uri": "/api/laml/2010-04-01/Accounts/720796a0-8ee9-4350-83bd-2d07a3121f1e/Recordings/19e436af-5688-4307-b03b-bdb2b42b8142.json",
"subresource_uris": {
"transcriptions": "/api/laml/2010-04-01/Accounts/720796a0-8ee9-4350-83bd-2d07a3121f1e/Recordings/19e436af-5688-4307-b03b-bdb2b42b8142/Transcriptions.json"
},
"trim": "do-not-trim"
}Changes
- breaking
the
response's property type changed fromstringto no type, and format fromuuidto no format for status - breaking
the
response's property format changed fromuuidto no format for status - breaking
the
response's property format changed fromuuidto no format for status - breaking
the
response's property type changed fromstringto no type, and format fromuuidto no format for status - info
added to the
response propertyallOflist for the response status - info
added to the
response propertyallOflist for the response status - info
added to the
response propertyanyOflist for the response status - info
added to the
response propertyanyOflist for the response status - info
removed
subschema #1from theresponse propertyanyOflist for the response status - info
removed
subschema #1from theresponse propertyanyOflist for the response status
- breaking
- breaking
added 'unevaluatedProperties' constraint to the request body
- info
added 'unevaluatedProperties' constraint to the response body for the status
- info
added 'unevaluatedProperties' constraint to the response body for the status
- info
added 'unevaluatedProperties' constraint to the response body for the status
- info
added 'unevaluatedProperties' constraint to the response body for the status
- info
added 'unevaluatedProperties' constraint to the response body for the status
- info
added 'unevaluatedProperties' constraint to the response body for the status
- info
added 'unevaluatedProperties' constraint to the
////response property for the status
- breaking