title: identity agent API version: 1.0 date: 2026-10-24 author: Core Team status: Active
POST /api/v1/agents/identity/match-from-photoAuth: Required Scope: file-level
Upload a face photo to match against known identities. Detects face via InsightFace, extracts 512D embedding via CoreML FaceNet, then searches pgvector for the closest identity.
multipart/form-data with field image (JPEG/PNG) and optional file_uuid.
curl -s -X POST "$API/api/v1/agents/identity/match-from-photo" \
-H "Authorization: Bearer $JWT" \
-F "image=@/path/to/face.jpg" \
-F "file_uuid=$FILE_UUID"
{
"success": true,
"matches": [
{
"identity_uuid": "a9a90105...",
"name": "Cary Grant",
"similarity": 0.87
}
]
}
POST /api/v1/agents/identity/match-from-traceAuth: Required Scope: file-level
Match a face trace (tracked face across frames) against known identities. Samples 3 angles from the trace, generates embeddings, and searches pgvector.
| Field | Type | Required | Description |
|---|---|---|---|
file_uuid |
string | Yes | File containing the trace |
trace_id |
integer | Yes | Face trace ID to match |
curl -s -X POST "$API/api/v1/agents/identity/match-from-trace" \
-H "Authorization: Bearer $JWT" \
-H "Content-Type: application/json" \
-d '{"file_uuid": "'"$FILE_UUID"'", "trace_id": 10}'
POST /api/v1/agents/identity/confirmAuth: Required Scope: file-level
Confirm identity binding for a trace. This marks the trace as confirmed in TKG, updates face_detections, adds to _seeds, and optionally triggers Round 2 propagation.
| Field | Type | Required | Description |
|---|---|---|---|
file_uuid |
string | Yes | Video file UUID |
trace_id |
integer | Yes | Face trace ID to confirm |
identity_id |
integer | Yes | Identity internal ID |
identity_uuid |
string | Yes | Identity UUID |
name |
string | Yes | Identity name |
propagate |
boolean | No | Auto-trigger Round 2 matching (default: true) |
curl -s -X POST "$API/api/v1/agents/identity/confirm" \
-H "Authorization: Bearer $JWT" \
-H "Content-Type: application/json" \
-d '{"file_uuid": "'"$FILE_UUID"'", "trace_id": 10, "identity_id": 42, "identity_uuid": "'"$IDENTITY_UUID"'", "name": "Cary Grant", "propagate": false}'
{
"success": true,
"file_uuid": "384b0ff44aaaa1f1",
"trace_id": 10,
"identity_uuid": "a9a90105...",
"name": "Cary Grant",
"steps": {
"tkg_updated": true,
"qdrant_updated": 150,
"pg_updated": 150,
"seed_added": true
},
"propagation": {
"matched": 5,
"message": "Propagation completed"
}
}
Updated: 2026-06-26 00:30:00
| Version | Date | Changes |
|---|---|---|
| 1.0 | 2026-10-24 | Initial documentation |