Requested Media Unavailable

The REQUESTED_MEDIA_UNAVAILABLE event is triggered when a user submits a video request for a camera, but the requested footage does not exist on the camera’s SD card. This means the system attempted to locate the video for the provided time range but found no stored media covering that period.

**Event Name:**REQUESTED_MEDIA_UNAVAILABLE

Enablement Package: NA


Trigger Condition

  • REQUESTED_MEDIA_UNAVAILABLE webhook event should be subscribed.
  • This webhook is triggered when a user requests a video from a Surfsight (vendor 15) camera, but the video is not found on the SD card.
  • The event is triggered when the request status is 4, indicates media unavailable.

Example Payload

{
  "messageType": "REQUESTED_MEDIA_UNAVAILABLE",
  "generatedAt": 1732604310799,
  "data": {
    "requestedMediaId": "5d376b54-abc3-11ef-b0b8-4bd1b5f22e63",
    "requestedMediaName": "25Nov2024_Moraga Heavy Wrecker_Request:1",
    "safetyCamDeviceId": "7dff30dc-cacb-11eb-bddc-9d43d52c24ba",
    "safetyCamSerialNum": "357660101393338",
    "startTime": "2024-11-24 18:30:00",
    "endTime": "2024-11-24 18:30:30",
    "requestorId": "03840664-4a03-11e6-98cb-7b86271dc116",
    "requestorName": "Alan Niesel",
    "vehicleId": "06f4a604-43ed-11ed-8b3a-a19290b8c9aa",
    "vehicleName": "Moraga Heavy Wrecker",
    "groupId": "ba8a4244-d8e7-11eb-bc30-8f8842ad486a",
    "groupName": "Bay Area Group",
    "driverId": "8a9388a9-8b37-6f5d-018c-5eb378551097",
    "driverName": "Mateo Curtis",
    "customerId": 1059,
    "vendorId": 15,
    "recordStatus": 1,
    "chunksAvailable": [],
    "status": 4,
    "mediaLinks": []
  }
}

Reference

Field

Description

messageType*
string

Type of Message(Identifies the type of event being sent).
Example: REQUESTED_MEDIA_UNAVAILABLE

generatedAt*
number (epoch ms)

The exact time the webhook was created, in epoch milliseconds (UTC). Example: 1732604310799

data*
object

Contains all the details related to the media request.

requestedMediaId*
string

A unique identifier for the specific video request. Example: 5d376b54-abc3-11ef-b0b8-4bd1b5f22e63

requestedMediaName*
string

A readable name for the requested video. Usually includes date/time. Example: 25Nov2024_Moraga Heavy Wrecker_Request:1

safetyCamDeviceId*
string

Internal Azuga ID for the camera device. Example: 7dff30dc-cacb-11eb-bddc-9d43d52c24ba

safetyCamSerialNum*
String

The serial number printed on the camera device. Example: "357660101393338"

startTime*
string (UTC)

Start timestamp of the requested footage (UTC – format: YYYY-MM-DD HH:MM:SS). Example: 2024-11-24 18:30:00

endTime*
string (UTC)

End timestamp of the requested footage (UTC – format: YYYY-MM-DD HH:MM:SS). Example: 2024-11-24 18:30:30

requestorId*
String

Unique ID of the user who requested the video. Example: "03840664-4a03-11e6-98cb-7b86271dc116"

requestorName*
String

Name of the person who initiated the request.
Example: "Alan Niesel"

vehicleId*
string

The Azuga ID of the vehicle from which the footage was requested. Example: 06f4a604-43ed-11ed-8b3a-a19290b8c9aa

vehicleName*
string

Display name / fleet number of the vehicle.
Example: Moraga Heavy Wrecker

groupId*
string

ID of the group the vehicle belongs to.
Example: ba8a4244-d8e7-11eb-bc30-8f8842ad486a

groupName*
string

Name of the group the vehicle belongs to. Example: Bay Area Group

driverId*
string

ID of the driver linked to the vehicle at the time of the event. Example: 8a9388a9-8b37-6f5d-018c-5eb378551097

driverName*
String

Driver name associated at the time of event. Example: "Mateo Curtis"

customerId*
number

Unique customer identifier. Example: "1059"

vendorId*
number

Camera vendor ID (15 = Surfsight camera).

recordStatus*
number

Indicates record availability status.
Example: 1

chunksAvailable*
array

List of all available video segments (chunks) from each camera stream.

mediaLinks*
array

Download links for the video files and thumbnails.

status*
number

Type of media. Example: 4 (4 = Unavailable).