Retrieve the link to an event file generated by the device. The URL remains active for approximately several minutes to a few hours.
This API can be used in two ways:
1. For events in a given period of time. The files can then be downloaded. All the information required for this call is available in the event object received from the GET /devices/{imei}/events call
2. For virtual events, without using the GET /devices/{imei}/events call. You need additional information, such as the virtual event configuration on your device and the IDs of the cameras connected to the device
Successful operation
Bad request error
Unauthorized error
Forbidden error
Not found error
Internal server error
curl -i -X GET \ 'https://api-prod.surfsight.net/v2/devices/:imei/event-file-link?fileId=1595077872&fileType=video&cameraId=1' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{
}