Endpoints
Overview
Section titled “Overview” POST /api/classify
GET /api/result/<classify_id>
DELETE /api/classify/<classify_id>
GET /api/video/annotate/<classify_id>
Send video to classification
Section titled “Send video to classification” POST /api/classify
POST /api/classify?sync=true
By default, classification is asynchronous (sync=false). Set sync=true to wait for the result in the response.
Async response
Section titled “Async response”{ "id": "66436fc66d24ab9cf81140eb", "accepted_at": "2024-05-14T16:05:58.444012022+02:00"}Sync response
Section titled “Sync response”When sync=true, the response contains the full classification result.
Get a classification result
Section titled “Get a classification result” GET /api/result/<classify_id>
Returns the full response structure for a given classification.
Download annotated video
Section titled “Download annotated video” GET /api/video/annotate/<classify_id>
Returns the annotated highlight video for a classification.
Delete a result
Section titled “Delete a result” DELETE /api/classify/<classify_id>
Deletes both the video and the classification results.