Skip to content

Evidence and retention

By default nothing biometric is stored. Camera frames are processed and dropped, reference photos you send are kept only for a review (below), and no face templates are stored. A workflow can opt in to keep a few captured images, encrypted, for your own reviewers.

"output": {"evidence": {"return": ["live_face", "id_card"], "retention_days": 7, "when": "review"}}
  • return: which images to keep.

    • live_face: the best frontal frame from the gestures step (the one face matching uses), or else the live crop from the ID step.
    • id_portrait: the portrait cropped from the ID.
    • id_card: the full ID photo.

    id_portrait and id_card need an id_portrait step.

  • retention_days: 0 to 7. With 0, return must be empty.

  • when: always (the default) keeps images for every completed session. review keeps them only when the session ends in review, so people who are approved or declined leave no images behind. The consent page tells the person which applies.

Health card images are never kept, whatever the workflow says.

Reference photos, for a review only. When a workflow keeps live_face and a session ends in review, a copy of each reference photo its face_match compared is kept as reference_photo, with the same retain_until. Your reviewer then sees the live face next to the photo it was compared with. Approved and declined sessions keep no reference photo. The consent page says so.

The back of the ID, for a review only. When a workflow keeps id_card, reads the barcode (id_barcode) and a session ends in review, the clearest picture of the back of the card is kept as id_back, with the same retain_until. The barcode’s contents are never kept. The consent page says so.

Once, when the session’s final attempt ends (also when the person leaves after being offered a retry). Images from earlier attempts are never kept. retain_until is the completion time plus retention_days.

  • GET /v1/sessions/{id}/evidence lists them: [{id, kind, retain_until}]. kind is one of the return kinds, reference_photo or id_back. The session object carries the same list as evidence.
  • GET /v1/sessions/{id}/evidence/{evidence_id} returns the JPEG, with Cache-Control: no-store. Only the app that owns the session can read it, and each download is counted.
  • The review page shows them to whoever holds the review link.

Each image is encrypted with its own random AES-256-GCM key. That key is wrapped with AES-256-GCM under a key for your app, derived with HKDF-SHA256 from the service’s master key. The image’s id, session, app and kind are bound in as associated data, so a file or database row moved elsewhere does not decrypt. Ciphertext and keys sit on an encrypted volume on the server in Quebec. An object that fails its integrity check is reported as 500 EVIDENCE_UNREADABLE; its bytes are never returned.

At retain_until, a sweep that runs every minute overwrites the file, deletes it, and drops its wrapped key. An image past retain_until is refused at once, even before the sweep. Erasing the session or the subject does the same immediately.

Retained images are not included in backups, so restoring a backup cannot bring back an image that was erased or had expired.