Huemn home
Menu

Data lifecycle

Control enrollment, retrieval, withdrawal and erasure inside the authorized collection boundary.

Create a collection

Set name (1–128 characters) and retentionDays (1–365, subject to tenant policy). Creation stores metadata. Avoid personal information in a collection name. Listing takes an optional UUID after and a limit of 1–100, default 20. Continue with nextCursor until it is null.

Enroll and search

Generate and retain a non-nil UUID faceId. Supply one authorized face, a future RFC 3339 expiresAt within collection retention, and opaque subjectRef and consentRef values. Each reference must contain 1–256 characters, be nonblank and contain no control characters. Keep evidence of authorization in your system.

HTTP 202 with indexingState: pending acknowledges durable acceptance. Search visibility follows indexing. For an explicit retry of an uncertain submission, retain the same face ID, exact image bytes and metadata. A changed request or deleted identity conflicts; never generate a new face ID automatically after a timeout.

Search one collection using one query face and a compatible operating point. The default result limit is 20, with a range of 1–100. Approximate search filters expired, deleted and withdrawn candidates. Zero matches or fewer than the requested limit are valid. Results include model and operating-point versions, a threshold and matches with face ID, subject reference and score.

Enrollment admission and privacy access

When credit admission is enabled, enrollment accepts the optional admission Idempotency-Key. Its durable effect also binds the tenant, purpose, collection and face ID: changing or omitting that header does not make identical enrollment a new charged execution. A committed identical face returns current metadata after authorization and identity checks. A failed or unknown admitted effect returns safe accounting status and cannot rerun with the same face ID. A deliberate new attempt requires a new face ID; do not create it automatically after an uncertain response.

Search accepts the same optional admission key. Without it, each search is a fresh attempt; an identical admitted retry returns 409 accounting status rather than cached matches. See admission identity rules.

Face and collection deletion, consent withdrawal, tracked erasure and operation status do not require inference credits. Zero balance does not block these privacy paths, but authentication, scope, purpose and service dependencies still apply. The required non-nil UUID on tracked erasure remains distinct from optional inference admission identity.

Read visible face metadata

Face listing returns records containing id, subjectRef, and expiresAt, plus a nextCursor. Pass that UUID as after to continue. This is live pagination with the same limit as collection listing. It excludes expired, withdrawn and erased records.

Choose the erasure operation

Delete a collection
HTTP 202 hides it from ordinary access and returns an operation ID. A repeat submission for the same collection can recover that operation after a timeout.
Delete one face
HTTP 202 returns deletion_pending. Visibility is suppressed and index erasure is scheduled. Repeat submission is accepted. There is no operation ID. Ask your operator for reconciliation evidence.
Withdraw a consent reference
Across collections in this tenant and purpose, withdrawal hides affected faces and prevents future enrollment with that reference. The response is withdrawn with erasureState: pending. There is no operation ID.
Submit a tracked erasure request
Supply exactly one selector. subjectId matches subjectRef and requires subjects:erase. Alternatively, consentReference matches consentRef and requires faces:delete. Use a non-nil UUID as Idempotency-Key. Store the key and selector together before sending. A retry must reuse both.

Subject erasure covers the enrollment generation at acceptance. Subsequent authorized re-enrollment is a separate generation. Consent erasure permanently withdraws the reference. Both selectors apply across collections within the authenticated tenant and purpose.

Track completion

Collection deletion and tracked erasure return an operation ID. Poll GET /v1/operations/{operationId} at a bounded interval. States are pending, running, completed and failed. Only completed reports finished processing. A 202 acknowledgment cannot prove physical erasure. An operation lookup requires the returned operation ID.

Continue readingErrors and limits