|
POST /api/v1/billing/cameras/preview |
Theexpired_atfield indicates when the link token expires.
This request can include a user's integration token. If the user has access to the camera, a link is generated.
For a deleted camera, no live preview is provided: the response field preview is null Archived previews (with a date) work as usual.
{
"cameras": [
{
"uuid": "uuid",
"stream_type": "high",
"date": "2000-01-01T00:00:00Z"
}
],
"source": "mp4",
"ttl": "100",
"network": "internal"
}
Method parameters
array cameras required , An array of camera UUIDs for which links are requested. Each camera object has the following properties:
-
uuid– UUID of the camera for which to generate a link. This field is required
-
stream_type– video stream type. If omitted or set to camera the link is generated for the camera; if a stream type is provided, the link is generated for that specific camera stream.
-
date– archive start date used to generate an archive link.
string source required , Link type.
-
mp4preview as a short MP4 clip (default).
-
jpg– preview image in JPG format.
int ttl, Link lifetime in seconds
string network, Network for which to generate the link. Default: external.
-
external– the link is accessible from an external network
-
internal– the link is accessible only from an internal network
|
200 |
|
Successful response with all parameters JSON
|
|
401 |
|
If an authorization token is provided and is invalid |