Vision Events
Record, search, and analyze what your deployed computer vision models see in production.
About
Overview
Vision Events is a Roboflow datastore that can capture important events, like the detection of defect or a count of inventory, alongside visual information from your deployed computer vision model. This gives you a searchable, filterable history of everything your vision system observes in production.
What is a Vision Event?
A Vision Event is a timestamped record created when a model processes an image. Each event can optionally capture:
Images: The original images that were processed and associated output images
Predictions: Object detections, classifications, instance segmentations, or keypoints returned by the model
Source metadata: Which device, stream, or workflow generated the event
Custom metadata: Key-value pairs you define for your domain (e.g.
line_number,shift,part_number)
For programmatic access, see the Vision Events API Reference.
Key Concepts
Use Cases
A Use Case groups events that share a common purpose and custom metadata structure. Events in the same Use Case typically send similar metadata fields so you can filter and query them consistently.
For example, a "Defect Detection" Use Case might always include line_id, shift, and part_number even if events come from multiple factories or camera locations. Create separate Use Cases when the metadata structure is fundamentally different (e.g. "PPE Compliance" tracks zone and alert_type instead).
In this section
Send Events - send events from a Workflow block, the REST API, or edge device backup.
Query Events - filter events in the dashboard, ask the Agent in natural language, or query via the API.
Add Images for Training - move captured event images into a project to train a model.
Operator Feedback - let team members mark events correct, incorrect, or inconclusive.
Summary Reports - email your team a recurring digest of a Use Case.
Delete Events - remove events you no longer need from a Use Case.
HTTP API
The Vision Events API lets you record structured events from your computer vision deployments, then query and analyze them. Events can include images, detection annotations, custom metadata, and type-specific data for quality checks, inventory counts, safety alerts, and more.
With the Vision Events API, you can:
Authentication
All Vision Events endpoints use Bearer token authentication with your Roboflow API key:
Vision Events endpoints require specific scoped API key permissions:
Read operations (query, list, schema):
vision-events:readordevice:readWrite operations (create, batch, upload):
vision-events:writeordevice:update
Use Cases
Each vision event is associated with a use case. To learn how to create and manage use cases, see the Use Cases documentation.
You can also list existing use cases that have recorded events via the API.
Event Types
The API supports five event types, each with its own eventData schema:
quality_check
QA and inspection results
inventory_count
Inventory measurements
safety_alert
Safety incidents and alerts
custom
Freeform event data
operator_feedback
Human feedback on model predictions
Data Retention
Events are retained for a configurable lookback window (default: 14 days). The lookbackDays value is returned in query responses so you know the effective retention period for your workspace.
Python SDK
The Roboflow Python SDK provides methods for working with vision events on the Workspace object. You can create events, query them with filters and pagination, upload images, and manage use cases.
For full details on event schemas, filtering options, and response formats, see the Vision Events REST API documentation.
Quick Start
Available Methods
Upload an image for use in events
Create a single vision event
Create up to 100 events in one request
Query events with filters and pagination
Auto-paginating query across all matching events
List use cases in your workspace
Create a new use case
Rename a use case
Archive a use case
Unarchive a use case
Get discovered custom metadata field types
MCP Server
Connect your AI agent to the MCP Server and it can look at production events with these tools:
vision_events_query
Query production vision events for a use case.
vision_events_use_cases_list
List the vision event use cases in the workspace.
vision_events_use_case_create
Create a new vision event use case.
vision_events_custom_metadata_schema_get
Get the custom metadata schema discovered for a use case.
Last updated
Was this helpful?