Appearance
๐ฌ Smoke Detection โ
Zubie's smoke detection alerts you when smoke or vapor is detected inside a vehicle. The system provides detailed reports on each event, including the strength of particulates detected.
NOTE Smoke detected events mentioned in this article refer only to events identified by Zubie's smoke detection devices, not events triggered by dashcam detection.๐ Use Cases For Smoke Detection โ
๐ญ Enforce No-Smoking Policies: Get objective, timestamped evidence of smoking to enforce policies, issue fines, or restrict future rentals.
๐ฐ Cost Recovery: Justify cleaning or damage fees with concrete proof of smoking, protecting you against disputes and documenting incidents for insurance claims.
๐งผ Maintain Vehicle Cleanliness: Automate alerts to your service team to ensure vehicles are cleaned promptly, maintaining high customer satisfaction and brand reputation.
๐จ Retrieving events โ
You can retrieve smoke detection events in two ways:
Webhooks (Recommended): Receive real-time event notifications by enabling the
vehicle_smoke_detectedwebhook. This is the preferred method for continuous monitoring for speed and resource efficiency. See our Webhooks Guide for setup instructions.Events API: Poll the API for historical events. This is best for on-demand lookups or retrieving the details for a single event.
- A list of historical smoke detection events can be retrieved using the
events?event=vehicle_smoke_detectedAPI endpoint. - Specific events can be retrieved using the
/event/{event_key}API endpoint.
๐ฌ Accessing Event Media โ
๐ Get The Event Media Key โ
A media key is required to call the smoking event media API endpoint. To obtain the media key, call the /event/{event_key} API endpoint using the event key property provided in the vehicle_smoke_detected webhook.
Both the /event/{event_key} and the /events API endpoints will include a media: [] property which is an array of media objects.
json
"media": [
{
"key": "agpzfnf1YmllY2FyciELEgVNZWRpYSIWaHFZRlZtc3o1YUJ3RHlieXFmdm9Tbgw",
"labels": ["event:smoke-detected"],
"media_type": "application/pdf",
"status": "ready"
},
],Extract the media key from the media object.
๐ท Call The Event Media API Endpoint โ
IMPORTANT To retrieve event media, the
media.read scope must be added to the Zinc app. This must be approved by Zubie. You can request access by emailing support@zubie.com. Once the media key has been obtained, a call can be made to the /media/{media_key}/fetch API endpoint, which will return a temporary, signed URL that contains the corresponding event media.
GET
http
https://api.zubiecar.com/api/v2/zinc/media/{media_key}/fetchMore information on the /media API endpoint can be found at https://developer.zubie.com/reference/media.

