About
This endpoint returns the image metadata keys that events in a Use Case have used, with the value types seen for each key. Use it to discover which keys exist, since image metadata is set per event rather than by a fixed schema.
Keys are for discovery and display only. You cannot filter event queries on them yet. For event-level keys, use Get Custom Metadata Schema instead.
HTTP API
Required scope: vision-events:read
Get Image Metadata Schema
Retrieve the per-image metadata keys used by events in a given use case. Keys are listed for discovery only. They cannot be used as query filters.
Roboflow API key passed as a Bearer token.
The use case ID.
200Per-image metadata schema.application/json
Each key maps to the value types seen for it.
{"verdict":{"types":["string"]},"angle":{"types":["number"]},"rechecked":{"types":["boolean"]}}403Insufficient permissions for this resource.application/json
GET /vision-events/image-metadata-schema/{useCaseId} HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: application/jsoncurl -L \
--request GET \
--url 'https://api.roboflow.com/vision-events/image-metadata-schema/{useCaseId}' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--header 'Accept: application/json'const response = await fetch("https://api.roboflow.com/vision-events/image-metadata-schema/{useCaseId}", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_SECRET_TOKEN",
"Accept": "application/json"
}
});
const data = await response.json();
console.log(data);import requests
url = "https://api.roboflow.com/vision-events/image-metadata-schema/{useCaseId}"
headers = {
"Authorization": "Bearer YOUR_SECRET_TOKEN",
"Accept": "application/json"
}
response = requests.get(url, headers=headers)
print(response.json()){
"useCaseId": "text",
"fields": {
"verdict": {
"types": [
"string"
]
},
"angle": {
"types": [
"number"
]
},
"rechecked": {
"types": [
"boolean"
]
}
}
}{
"error": "text"
}A key stays listed until its data ages out, so a key can appear after the last event that used it was replaced.