Send Events
Three ways to send Vision Events from your deployed models.
Send Events
You can send Vision Events with a Workflow block, the HTTP API, or edge device backup.
Workflow Block: the easiest option if your model runs in a Workflow.
HTTP API: for models you deploy outside of Workflows.
Edge Device Backup: for Roboflow edge devices, which back up events from the device's local event store.
Workflow Block
The recommended approach for most users. Add the Vision Event block to any Roboflow Workflow to automatically create events from inference results with no code needed.
Setup
Open the Workflow Editor
Navigate to Workflows in your workspace and open the workflow you want to add events to.
Add the Vision Event Block
Search for "Vision Event" in the block catalog and add it to your workflow.
Connect Inputs
Connect the image input and model prediction outputs to the Vision Event block.
Configure the Use Case
Set the Use Case name (useCaseId). You can also map custom metadata from upstream blocks. Once a Use Case is selected, click "Open in Vision Events" below the dropdown to jump to that Use Case's events page in a new tab.
Deploy the Workflow
Deploy or update your workflow. Events are created automatically each time the workflow runs.
HTTP API
Use the HTTP API to send events from code that does not run in a Workflow. Each endpoint page lists its fields, required scope, and responses.
Upload each image with Upload a Vision Event Image. The response has a
sourceId.To attach video clips, upload each clip with Upload a Vision Event Video. You get a
videoIdand a signed URL to upload the clip to, since clips can be up to 3 GB.Create the event with Create a Vision Event. Put each image
sourceIdinimages[].sourceIdand eachvideoIdinvideos[].sourceId.
To send up to 100 events in one request, use Batch Create Vision Events. If your deployment has no route to the cloud, use Upload a Vision Event Bundle.
Edge Device Backup
For enterprise deployments where connectivity may be intermittent, the edge device stores events locally and syncs them to Roboflow when connectivity is restored.
To enable Vision Events backup:
Open Deployment Manager in your workspace
Select the device to configure
Enable Vision Events Backup in the device's Event Store configuration
Events are written to the local event store on the device
When the device reconnects, events sync to Roboflow automatically
Events appear in the Vision Events dashboard after sync completes.
When "Backup Mode" is "Records and Files", video clips attached to events on the device upload too, so they play in the dashboard. MP4 and MOV clips upload, up to four per event. Other formats stay on the device. A clip that fails to upload delays its event by about an hour per retry. After repeated failures (3 by default) the event syncs without the clip. See Draft Events and Video for how a pipeline attaches clips on the device.

Last updated
Was this helpful?