Record
The following actions can be performed with the Record APIs.
BaseURI:https://api.plivo.com/v1/Account/{auth_id}/Call/{call_uuid}/Record
Record a Call
URI: https://api.plivo.com/v1/Account/{auth_id}/Call/{call_uuid}/Record/
Method: POST
Parameters
There are no mandatory parameters for this API. The following optional parameters can be specified:
Optional Parameters
| Parameter | Description |
|---|---|
time_limit |
Max recording duration in seconds. Defaults to 60. |
file_format |
The format of the recording. The valid formats are mp3 and wav formats. Defaults to mp3. |
transcription_type |
The type of transcription required. The following values are allowed:
|
transcription_url |
The URL where the transcription is available. |
transcription_method |
The method used to invoke the transcription_url. Defaults to POST. |
callback_url |
The URL invoked by the API when the recording ends. The following parameters are sent to the callback_url:
|
callback_method |
The method which is used to invoke the callback_url URL. Defaults to POST. |
Response
HTTP Status: 202
JSON:
{
"url": "http://s3.amazonaws.com/plivocloud/ffca7d3abcc0.mp3",
"message": "call recording started",
"api_id": "c7b69074-58be-11e1-86da-adf28403fe48"
}
JSON:
{
"call_uuid": "cfa1e4c0-e21e-11e1-92d4-28373719f1a2",
"record_url": "http://s3.amazonaws.com/plivocloud/ffca7d3abcc0.mp3",
"message": "record done",
"api_id": "c7b69074-58be-11e1-86da-adf28403fe48"
}
Stop Recording a Call
URI: https://api.plivo.com/v1/Account/{auth_id}/Call/{call_uuid}/Record/
Method: DELETE
Parameters
There are no required parameters for this API. The following optional parameters can be specified:
Optional Parameters
| Parameter | Description |
|---|---|
URL |
You can specify a record URL to stop only one record. By default all recordings are stopped. |
Response
HTTP Status: 204
Asynchronous Mode
All Plivo APIs can be invoked in asynchronous mode with the inclusion of the callback_url parameter.
Note: In asynchronous mode, you will only get back a response with the api_id.
The response is sent to the callback_url which is fired immediately after execution of the Plivo API.
See API Request and API Response for more information.
Asynchronous Parameters
| Parameter | Description |
|---|---|
callback_url |
The URL that is notified by the API when the response is available and to which the response is sent. |
callback_method |
The method used to notify the callback_url URL. Defaults to POST. |
Asynchronous Response
The Asynchronous Response is sent in json format in the response field.
See the API Response section for more information.


