Record call
Managing call recording
| Method |
record.call |
| API version |
v4.0 |
| Description |
Conversation recording management. It is impossible to disable the recording of a conversation configured through your personal account. |
| Return to list of methods |
The method allows you to manage the recording of an active conversation. Global conversation recording cannot be turned off.
Request parameters
| Name |
Type |
Required |
Valid values |
Description |
| access_token |
string |
yes |
|
Authentication session key |
| call_session_id |
number |
yes |
|
A unique call session identifier that can be obtained in the response of the start.informer_call, start.vnumber_call, start.scenario_call, and start.employee_call methods, using the notification server or the DATA API. |
| action |
string |
yes |
on, off |
Action on a conversation recording: on - enable conversation recording, off - disable conversation recording. |
Example request
{
"jsonrpc": "2.0",
"method": "record.call",
"id": "req1",
"params": {
"access_token": "2fRN4g217ca0b4224a67988aff3e584f91964a692045415f36fa66146f5a3c1ae1f6093d",
"call_session_id": 235496,
"action": "on"
}
}
Example response
{
"jsonrpc": "2.0",
"id": "req1",
"result": {
"data": {
"success": "true"
}
}
}
List of returned errors
| Error text |
Error code |
Mnemonics |
Description |
| Permission denied |
-32003 |
forbidden |
It is not possible to disable global call recording. Global call recording is a setting at the employee level. |
| The call recording is already started |
-32602 |
record_already_started |
Call recording is already enabled |
| The call recording is not enabled |
-32602 |
record_already_stopped |
Call recording was not enabled |
See also the section "List of errors common for all methods".