Use Cases
Group Vision Events by purpose using Use Cases.
About
Web App
Use Cases
When to Use One vs. Multiple Use Cases
Create a Use Case

View Use Cases
Manage Use Cases Programmatically
Archive a Use Case

Custom Metadata Schema
HTTP API
Create a Use Case
Create a new use case in your workspace.
Roboflow API key passed as a Bearer token.
A name for the use case. Must be unique within the workspace.
Use case created successfully.
Validation error or duplicate name.
Insufficient permissions for this resource.
POST /vision-events/use-cases HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"name": "text"
}{
"id": "text",
"name": "text"
}Request Body Parameters
Example Request
Example Response
Notes
Update a Use Case
Update the name or status of an existing use case.
Roboflow API key passed as a Bearer token.
The ID of the use case to update.
A new name for the use case. Must be unique within the workspace.
The new status for the use case.
Use case updated successfully.
Validation error or duplicate name.
Insufficient permissions for this resource.
Use case not found.
PUT /vision-events/use-cases/{useCaseId} HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 33
{
"name": "text",
"status": "active"
}{
"id": "text",
"name": "text"
}Path Parameters
Request Body Parameters
Example Request
Example Response
List Use Cases
List all use cases that have recorded vision events in your workspace.
Roboflow API key passed as a Bearer token.
Filter by use case status. Defaults to active.
activePossible values: List of use cases.
Insufficient permissions for this resource.
GET /vision-events/use-cases HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"useCases": [
{
"id": "text",
"name": "text",
"status": "active",
"workspaceId": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
}
],
"lookbackDays": 1
}Query Parameters
Example Request
Example Response
Archive a Use Case
Archive a use case by setting its status to inactive.
Roboflow API key passed as a Bearer token.
The ID of the use case to archive.
Use case archived successfully.
Insufficient permissions for this resource.
Use case not found.
POST /vision-events/use-cases/{useCaseId}/archive HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true
}Path Parameters
Example Request
Example Response
Notes
Unarchive a Use Case
Restore a previously archived use case by setting its status back to active.
Roboflow API key passed as a Bearer token.
The ID of the use case to unarchive.
Use case unarchived successfully.
Use case is not archived.
Insufficient permissions for this resource.
Use case not found.
POST /vision-events/use-cases/{useCaseId}/unarchive HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true
}Path Parameters
Example Request
Example Response
Notes
Python SDK
List Use Cases
Create a Use Case
Rename a Use Case
Archive a Use Case
Unarchive a Use Case
Last updated
Was this helpful?