Video generation
Video generation
The video recording (archive) will be created immediately and returned in the response. Subsequently, the partial archive will be downloaded asynchronously.
The download link for the archive will be sent via a Websockets push notification with the type archive_generated
The archive will be available for download for 3 hours and will be deleted afterward. To download it again, use the following
POST /api/admin/v1/downloads |
Method parameters
string
from, starting date for generating the archive
string
to, ending date for generating the archive
200 |
Successful response
JSON
|
401 |
Authorization token is not provided or is invalid. Obtaining a token |
402 |
License error |
422 |
Returns a JSON object with an error. Validation
JSON
|
cURL
BASH
curl -k --request POST \
--url 'https://your-domain/api/admin/v1/downloads' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"from": "string",
"to": "string"
}'
PHP
PHP
$data = array (
'from' => 'string',
'to' => 'string',
);
$context = stream_context_create([
'ssl'=>['verify_peer' => false],
'http' => [
'method' => 'POST',
'header' => "Content-Type: application/json\r
Accept: application/json",
'content'=>json_encode($data)
]
]);
$result = file_get_contents('https://your-domain/api/admin/v1/downloads', false, $context);