API referenceCollections
Collection metrics
Live face/selfie counts straight from the engine's vector store. (GET /v1/collections/{id}/metrics)
GET
/v1/collections/{id}/metrics- Auth
- Bearer API key
- Billing
- free (0 credits).
Live face/selfie counts straight from the engine's vector store. Free.
Example request
curl -X GET "https://api.sightradar.com/v1/collections/$ID/metrics" \
-H "Authorization: Bearer $SR_API_KEY"Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string |
Response body
| Field | Type | Description |
|---|---|---|
collection_id | string | |
status | string | |
photo_count | integer | |
face_count | integer | |
selfie_count | integer |
Status codes
| Status | Meaning |
|---|---|
200 | Counts. |
401 | Missing or invalid API key. |
404 | Resource not found. |
502 | Engine metrics unavailable. |
Last updated
Get collection deletion status
Authoritative status for an asynchronous collection deletion. (GET /v1/collections/{id}/deletion)
Delete one photo's faceprints (soft by default, restorable)
Deletes the face vectors indexed from one photo (by the photoId you supplied at index time), without… (DELETE /v1/collections/{id}/photos/{photoId})