Skip to content

Labels API

Labels let you provide feedback on classification results: marking them as true positives, false positives, or applying custom labels for your own tracking.

OPTIONS /api/label

Returns the standard and custom labels available for the current tenant.

{
"standard": [
"animal", "flag", "person", "plant", "rain",
"spider", "text", "vehicle", "web", "wind",
"EMPTY", "FIX", "N/A"
],
"custom": ["my-custom-label"]
}
FieldTypeDescription
standardstring[]Built-in labels provided by Gaard.
customstring[]Custom labels created by your team.
POST /api/label/<classify_id>

Attaches one or more labels and an optional comment to an existing classification result.

{
"labels": ["FP"],
"comment": "False alarm - wind moving a branch"
}
FieldTypeRequiredDescription
labelsstring[]YesOne or more label values to attach.
commentstringNoFree-text comment explaining the label.
LabelMeaning
FPFalse positive: Gaard flagged the video but there was no real threat.
TPTrue positive: Gaard correctly identified a threat.
FNFalse negative: Gaard missed a real threat.
TNTrue negative: Gaard correctly classified the video as safe.

You can also use simpler labels: true or false.

Custom labels are accepted: any string value you provide will be stored and will appear in the list returned by OPTIONS /api/label.