ReferenceHTTP API
faceGallery
The faceGallery router: 17 methods of the face-gallery capability, with tier, scope, input and output.
Capability face-gallery · scope system · mode singleton · source packages/types/src/capabilities/face-gallery.cap.ts:217.
Every method is called at /trpc/faceGallery.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
listIdentities | query | protected | view | yes |
createIdentity | mutation | admin | admin only | with the face-assignment feature |
renameIdentity | mutation | admin | admin only | with the face-assignment feature |
deleteIdentity | mutation | admin | admin only | with the face-assignment feature |
listIdentitySamples | query | protected | view | with the face-assignment feature |
auditIdentitySamples | query | admin | admin only | with the face-assignment feature |
removeSample | mutation | admin | admin only | with the face-assignment feature |
moveIdentitySample | mutation | admin | admin only | with the face-assignment feature |
listRecentFaces | query | protected | view | with the face-assignment feature |
getFaceByTrack | query | protected | view | yes |
getFaceMedia | query | protected | view | with the face-assignment feature |
assignFace | mutation | admin | admin only | with the face-assignment feature |
unassignFace | mutation | admin | admin only | with the face-assignment feature |
deleteFace | mutation | admin | admin only | with the face-assignment feature |
assignFaces | mutation | admin | admin only | with the face-assignment feature |
unassignFaces | mutation | admin | admin only | with the face-assignment feature |
suggestFaceClusters | query | protected | view | with the face-assignment feature |
faceGallery.listIdentities
- Kind: query —
GET /trpc/faceGallery.listIdentities - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityface-gallery, or categorysystem - Viewer: yes
- Try it: open
/system/api-explorer?method=faceGallery.listIdentitieson your hub
Input
{ includeCrops?: boolean }?Output
({ id: string; name: string; sampleCount: number; coverMediaId?: number; coverBase64?: string })[]faceGallery.createIdentity
- Kind: mutation —
POST /trpc/faceGallery.createIdentity - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
face-assignmentfeature - Try it: open
/system/api-explorer?method=faceGallery.createIdentityon your hub
Input
{ name: string }Output
{ id: string; name: string; sampleCount: number; coverMediaId?: number; coverBase64?: string }faceGallery.renameIdentity
- Kind: mutation —
POST /trpc/faceGallery.renameIdentity - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
face-assignmentfeature - Try it: open
/system/api-explorer?method=faceGallery.renameIdentityon your hub
Input
{ id: string; name: string }Output
voidfaceGallery.deleteIdentity
- Kind: mutation —
POST /trpc/faceGallery.deleteIdentity - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
face-assignmentfeature - Try it: open
/system/api-explorer?method=faceGallery.deleteIdentityon your hub
Input
{ id: string }Output
voidfaceGallery.listIdentitySamples
- Kind: query —
GET /trpc/faceGallery.listIdentitySamples - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityface-gallery, or categorysystem - Viewer: with the
face-assignmentfeature - Try it: open
/system/api-explorer?method=faceGallery.listIdentitySampleson your hub
Input
{ identityId: string }Output
({ id: string; source: "detected" | "photo"; addedAt: number; deviceId?: number; base64?: string; mediaId?: number; keyFrameMediaId?: number; faceBbox?: BoundingBoxSchema })[]Shapes: BoundingBoxSchema
faceGallery.auditIdentitySamples
- Kind: query —
GET /trpc/faceGallery.auditIdentitySamples - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
face-assignmentfeature - Try it: open
/system/api-explorer?method=faceGallery.auditIdentitySampleson your hub
Input
{ identityId: string }Output
{ identityId: string; name: string; modelId: string; totalSamples: number; comparableSamples: number; flagged: number; flagThreshold: number; rows: ({ sampleId: string; enrolledAt: number; deviceId?: number; source: "detected" | "photo"; mediaId?: number; comparable: boolean; selfMean: number | null; bestForeign?: { identityId: string; name: string; score: number }; suspicion: number })[] }faceGallery.removeSample
- Kind: mutation —
POST /trpc/faceGallery.removeSample - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
face-assignmentfeature - Try it: open
/system/api-explorer?method=faceGallery.removeSampleon your hub
Input
{ identityId: string; sampleId: string }Output
voidfaceGallery.moveIdentitySample
- Kind: mutation —
POST /trpc/faceGallery.moveIdentitySample - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
face-assignmentfeature - Try it: open
/system/api-explorer?method=faceGallery.moveIdentitySampleon your hub
Input
{ sampleId: string; toIdentityId: string }Output
voidfaceGallery.listRecentFaces
- Kind: query —
GET /trpc/faceGallery.listRecentFaces - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityface-gallery, or categorysystem - Viewer: with the
face-assignmentfeature - Try it: open
/system/api-explorer?method=faceGallery.listRecentFaceson your hub
Input
{ deviceId?: number; deviceIds?: number[]; limit?: number; filter?: "unassigned" | "recognized" | "identified" | "all"; since?: number; until?: number; sortBy?: "timestamp" | "suggestionConfidence"; sortDirection?: "asc" | "desc"; includeCrops?: boolean }?Output
({ faceId: string; deviceId: number; trackId: string; timestamp: number; recognizedIdentityId?: string; identityName?: string; assigned: boolean; base64?: string; cropUrl?: string; faceBbox?: BoundingBoxSchema; keyFrameMediaId?: number; bestMatchScore?: number; nativeFaceShortSidePx?: number; suggestedIdentityId?: string; suggestedMatchScore?: number })[]Shapes: BoundingBoxSchema
faceGallery.getFaceByTrack
- Kind: query —
GET /trpc/faceGallery.getFaceByTrack - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityface-gallery, or categorysystem - Viewer: yes
- Try it: open
/system/api-explorer?method=faceGallery.getFaceByTrackon your hub
Input
{ deviceId: number; trackId: string }Output
{ faceId: string; deviceId: number; trackId: string; timestamp: number; recognizedIdentityId?: string; identityName?: string; assigned: boolean; base64?: string; cropUrl?: string; faceBbox?: BoundingBoxSchema; keyFrameMediaId?: number; bestMatchScore?: number; nativeFaceShortSidePx?: number; suggestedIdentityId?: string; suggestedMatchScore?: number } | nullShapes: BoundingBoxSchema
faceGallery.getFaceMedia
- Kind: query —
GET /trpc/faceGallery.getFaceMedia - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityface-gallery, or categorysystem - Viewer: with the
face-assignmentfeature - Try it: open
/system/api-explorer?method=faceGallery.getFaceMediaon your hub
Input
{ faceId: string }Output
({ mediaId: number; kind: string; url: string; sizeBytes: number; timestamp: number })[]faceGallery.assignFace
- Kind: mutation —
POST /trpc/faceGallery.assignFace - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
face-assignmentfeature - Try it: open
/system/api-explorer?method=faceGallery.assignFaceon your hub
Input
{ faceId: string; identityId: string }Output
voidfaceGallery.unassignFace
- Kind: mutation —
POST /trpc/faceGallery.unassignFace - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
face-assignmentfeature - Try it: open
/system/api-explorer?method=faceGallery.unassignFaceon your hub
Input
{ faceId: string }Output
voidfaceGallery.deleteFace
- Kind: mutation —
POST /trpc/faceGallery.deleteFace - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
face-assignmentfeature - Try it: open
/system/api-explorer?method=faceGallery.deleteFaceon your hub
Input
{ faceId: string }Output
voidfaceGallery.assignFaces
- Kind: mutation —
POST /trpc/faceGallery.assignFaces - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
face-assignmentfeature - Try it: open
/system/api-explorer?method=faceGallery.assignFaceson your hub
Input
{ faceIds: string[]; identityId: string }Output
{ assigned: number; failed: string[] }faceGallery.unassignFaces
- Kind: mutation —
POST /trpc/faceGallery.unassignFaces - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
face-assignmentfeature - Try it: open
/system/api-explorer?method=faceGallery.unassignFaceson your hub
Input
{ faceIds: string[] }Output
{ unassigned: number; failed: string[] }faceGallery.suggestFaceClusters
- Kind: query —
GET /trpc/faceGallery.suggestFaceClusters - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityface-gallery, or categorysystem - Viewer: with the
face-assignmentfeature - Try it: open
/system/api-explorer?method=faceGallery.suggestFaceClusterson your hub
Input
{ threshold?: number; minClusterSize?: number; maxClusters?: number; limit?: number; maxFacesScanned?: number }?Output
({ faceIds: string[]; representativeFaceId: string; size: number; cohesion: number })[]