Query Events
Search, filter, and browse Vision Events in the dashboard, ask the Agent in natural language, or query via the API
About
This page covers how to find specific Vision Events (the timestamped records of what your deployed models observed) by filtering and searching them in the Vision Events dashboard or through the REST API. Narrow results by date range, event type, device, stream, workflow, detected class, or feedback status to audit production behavior and build reports. You can also ask the Roboflow Agent questions about your events in natural language.
Saved Filters
A saved filter belongs to its Use Case, so everyone in the Workspace can open it. Relative dates stay relative: a saved filter for the last 7 days always shows the most recent 7 days. Anyone who can create Vision Events can save over a filter. Only the person who saved it, or someone who can manage Vision Events, can rename or delete it.
Auto-Finalized Events
An auto-finalized event was closed automatically on the edge device before its video finished uploading, so the video is missing. The event still has its result and still images. This applies only to events synced through Edge Device Backup.
Agent Queries
Asking the Agent about events requires the "View Vision Events" permission. If a question reaches past your Workspace's retention window, the Agent tells you the earliest date it can query instead of answering zero. Date boundaries and time buckets use UTC.
Web App
Filter Events
Open "Vision Events" and click a Use Case to see its events, newest first.

Use the filter bar to narrow results by date, event type, device, stream, Workflow, detection (with an optional confidence threshold), feedback, custom metadata, video count, or ingestion warnings. A start or end date can be "Relative" (ex: 7 days ago) or "Absolute" (a fixed date and time).
Click a value in the event detail sidebar (ex: a device ID or custom metadata value) to add it as a filter. Click an active filter chip to change its value or operator.
The total count of matching events appears above the results, even while the list is still loading. If the Use Case has event values, the total value of the matching events appears too.
To reuse filters, open "Saved Filters" at the start of the filter bar and click "Save Current Filters". Use "Copy Link" to share one. See Saved Filters for who can change them.
To keep an event, open it and click the star in the header, or press S. Your stars are private to you and to the Use Case. To see them, open the "Lists" menu next to "Saved Filters" and pick "Starred". A starred event stays visible after it passes the retention window. You can star up to 1,000 events per Use Case.

View Event Details
Click an event to see its images, video clips, source metadata, predictions, event data, custom metadata, and value.
If the event has detections, segmentations, or keypoints, check "Draw Detections" to draw them on the source image. This helps when your pipeline saves only the input image. Your browser remembers this choice for all events and the fullscreen view. The checkbox is hidden on output images, which already show detections.
A play icon on an event card means it has video clips. Clips play in the "Media" strip after the images, and a clip that is still processing plays once it is ready. Detection overlays and fullscreen work on images only, and you cannot add clips for training.
A crossed-out video icon marks an auto-finalized event. Its detail view shows when it was finalized.
Ask the Agent
Click "Agent" in the left sidebar and ask the Roboflow Agent about a Use Case (ex: "How many failures did assembly-line-qa have last week?"). It answers by querying your event data. It can count events, track pass and fail rates over time, compute sums, averages, minimums, maximums, and unique counts of numeric fields, group totals by field, custom metadata, day, or week, and list the events themselves (ex: "Show me the events from device X"). Ask for more to see the next page of events.
"Analyze with AI" on a Use Case's Overview or Search tab opens the Agent in a new tab with a question ready to send. From the Search tab, the question includes your current filters.
For a recurring emailed digest, see Summary Reports.
HTTP API
Query Vision Events
Query vision events with filters, time ranges, and pagination. This endpoint supports filtering by event type, device context, detection classes, custom metadata, image metadata, and event-specific fields.
Required scope: vision-events:read or device:read
Query vision events with filters, time ranges, and pagination. Events come newest first and only from the workspace's retention window. Requires the vision-events:read or device:read scope. imageMetadataFilters and savedFilterId need vision-events:read.
Roboflow API key passed as a Bearer token.
The use case ID to query events for.
Start of the time range.
End of the time range.
Filter to one event type. To filter to several, use eventTypes.
Filter to events that have (true) or do not have (false) ingestion warnings.
The nextCursor from a previous response, to fetch the next page.
Number of events to return per page.
100Start the first page at this event, so it is the first result. Ignored when you send cursor. The response sets anchorFound.
Run a saved filter of this use case instead of sending filters. Send only useCaseId, limit, and cursor with it. Requires the vision-events:read scope and does not work with device API keys. Relative dates resolve on the first page and stay fixed for later pages. Sending any other filter with it returns 400.
Yq3mT8vR2nKpQuery results.
True when more events match. Pass nextCursor as cursor to get the next page.
Cursor for the next page. null when hasMore is false.
Returned when you sent anchorEventId. False when that event is not in the retention window.
The workspace's retention window in days (14 by default).
Deprecated field names used in the request.
Invalid query.
Insufficient permissions for this resource.
The savedFilterId does not exist in this use case, or the use case does not exist or is archived.
The saved filter can no longer be read. Save it again from the Search tab.
POST /vision-events/query HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 242
{
"useCaseId": "a1b3c8e1",
"startTime": "2024-01-14T00:00:00Z",
"endTime": "2024-01-15T23:59:59Z",
"eventTypes": [
"quality_check",
"safety_alert"
],
"customMetadataFilters": [
{
"field": "temperature",
"operator": "gt",
"value": 70,
"type": "number"
}
],
"limit": 50
}{
"events": [
{
"eventId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"eventType": "quality_check",
"timestamp": "2024-01-15T10:30:00.000Z",
"images": [
{
"label": "inspection-photo",
"objectDetections": [
{
"class": "defect",
"x": 100,
"y": 200,
"width": 50,
"height": 30,
"confidence": 0.95
}
]
}
],
"videos": [
{
"sourceId": "Kq4vX8mNp2RtY6wZ1bCd",
"label": "line-3 camera"
}
],
"eventData": {
"result": "fail",
"externalId": "batch-001"
},
"customMetadata": {
"line": "A1",
"temperature": 72.5
}
}
],
"hasMore": true,
"nextCursor": "eyJ0aW1lc3RhbXAiOiIyMDI0LTAxLTE1IiwiZXZlbnRJZCI6InFjLTAwMSJ9",
"lookbackDays": 14
}Each video in the results lists only its sourceId and label. To play or download one, get a playback URL for its sourceId.
To run a saved filter, send its ID as savedFilterId. You get the same events the Search tab shows for that filter.
Saved Filters
Saved filters are the same ones the Search tab shows, so a filter you save through the API appears in the web app. A raw API key acts for the workspace and owns no filter. To rename or delete any filter, it needs the vision-events:manage scope. An OAuth token acts as its user, so that user can rename and delete their own filters with vision-events:write. Changes to someone else's filter are written to the workspace audit log.
List the saved filters of a use case, sorted by name. Requires the vision-events:read scope and the View Vision Events permission.
Roboflow API key passed as a Bearer token.
The use case the filters belong to.
The use case's saved filters.
Insufficient permissions, or a device API key.
The use case does not exist or is archived.
GET /vision-events/use-cases/{useCaseId}/saved-filters HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"savedFilters": [
{
"id": "Yq3mT8vR2nKp",
"name": "Line 3 misses",
"filters": [
{
"category": "startDate",
"operator": "gte",
"value": "now-7d",
"label": "Start Date: 7 days ago"
},
{
"category": "customMetadata",
"field": "line_id",
"type": "string",
"operator": "eq",
"value": "3",
"label": "line_id: 3"
}
],
"createdBy": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedBy": "text",
"updatedAt": "2026-01-01T00:00:00.000Z"
}
]
}Get one saved filter. Requires the vision-events:read scope and the View Vision Events permission.
Roboflow API key passed as a Bearer token.
The use case the filter belongs to.
The saved filter ID.
The saved filter.
Insufficient permissions, or a device API key.
The saved filter or its use case does not exist, or the use case is archived.
The saved filter can no longer be read. Save it again from the Search tab.
GET /vision-events/use-cases/{useCaseId}/saved-filters/{savedFilterId} HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"savedFilter": {
"id": "Yq3mT8vR2nKp",
"name": "Line 3 misses",
"filters": [
{
"category": "startDate",
"operator": "gte",
"value": "now-7d",
"label": "Start Date: 7 days ago"
},
{
"category": "customMetadata",
"field": "line_id",
"type": "string",
"operator": "eq",
"value": "3",
"label": "line_id: 3"
}
],
"createdBy": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedBy": "text",
"updatedAt": "2026-01-01T00:00:00.000Z"
}
}Save a set of filters to a use case. Every member of the workspace who can view Vision Events can open it. Requires the vision-events:write scope and the Create Vision Events permission.
Roboflow API key passed as a Bearer token.
The use case the filters belong to.
Must be unique in the use case, ignoring case. Leading and trailing spaces are trimmed.
Line 3 missesSaved filter created.
Invalid name or filters.
Insufficient permissions, or a device API key.
The use case does not exist or is archived.
The name is taken, or the use case already has 100 saved filters.
POST /vision-events/use-cases/{useCaseId}/saved-filters HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 241
{
"name": "Line 3 misses",
"filters": [
{
"category": "startDate",
"operator": "gte",
"value": "now-7d",
"label": "Start Date: 7 days ago"
},
{
"category": "customMetadata",
"field": "line_id",
"type": "string",
"operator": "eq",
"value": "3",
"label": "line_id: 3"
}
]
}{
"savedFilter": {
"id": "Yq3mT8vR2nKp",
"name": "Line 3 misses",
"filters": [
{
"category": "startDate",
"operator": "gte",
"value": "now-7d",
"label": "Start Date: 7 days ago"
},
{
"category": "customMetadata",
"field": "line_id",
"type": "string",
"operator": "eq",
"value": "3",
"label": "line_id: 3"
}
],
"createdBy": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedBy": "text",
"updatedAt": "2026-01-01T00:00:00.000Z"
}
}Rename a saved filter, save new filters over it, or both. Saving over needs the vision-events:write scope. Renaming needs vision-events:manage, unless an OAuth token renames a filter its own user saved.
Roboflow API key passed as a Bearer token.
The use case the filter belongs to.
The saved filter ID.
Send name, filters, or both.
A new name. Must be unique in the use case, ignoring case.
Saved filter updated.
Invalid name or filters.
Insufficient permissions, or a device API key.
Saved filter not found.
The new name is taken, or the saved filter can no longer be read.
PATCH /vision-events/use-cases/{useCaseId}/saved-filters/{savedFilterId} HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 37
{
"name": "Line 3 misses, last 7 days"
}{
"savedFilter": {
"id": "Yq3mT8vR2nKp",
"name": "Line 3 misses",
"filters": [
{
"category": "startDate",
"operator": "gte",
"value": "now-7d",
"label": "Start Date: 7 days ago"
},
{
"category": "customMetadata",
"field": "line_id",
"type": "string",
"operator": "eq",
"value": "3",
"label": "line_id: 3"
}
],
"createdBy": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedBy": "text",
"updatedAt": "2026-01-01T00:00:00.000Z"
}
}Delete a saved filter. Needs the vision-events:manage scope, unless an OAuth token deletes a filter its own user saved.
Roboflow API key passed as a Bearer token.
The use case the filter belongs to.
The saved filter ID.
Saved filter deleted.
Insufficient permissions, or a device API key.
The saved filter or its use case does not exist, or the use case is archived.
The saved filter can no longer be read. Save it again from the Search tab.
DELETE /vision-events/use-cases/{useCaseId}/saved-filters/{savedFilterId} HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true
}Python SDK
Query vision events with filters, time ranges, and pagination.
Single Page Query
Use query_vision_events() to fetch a single page of results:
You can also pass additional filters as keyword arguments. These are forwarded directly to the API:
For manual pagination, use the cursor parameter with the nextCursor value from a previous response:
Paginate Through All Results
Use query_all_vision_events() to automatically paginate through all matching events. It yields one page of events at a time:
For full details on available filters, operators, and response formats, see the REST API reference.
MCP Server
Connect your AI agent to the MCP Server and it can answer questions about your events with these tools:
vision_events_query
Query production vision events with filters and pagination.
vision_events_use_cases_list
List the vision event use cases in the workspace.
vision_events_custom_metadata_schema_get
Get the custom metadata schema discovered for a use case.
Last updated
Was this helpful?