NeccessoryNeccessory

How it works

The parts of an integration, the two processing modes and the life of a measurement.

Neccessory measures vital signs from a short face video taken with an ordinary front camera. The person sits still in front of the camera for 30–60 seconds; Neccessory returns heart rate, breathing rate, a stress index and, depending on the metric sets you enable, HRV, blood pressure, SpO2 and face analysis.

The parts of an integration

PartWhat it does
Your appRuns the Web SDK or the iOS SDK: opens the camera, guides the person, shows live values and the result
Your serverKeeps the key secret. Creates cloud sessions or model grants, stores results, receives webhooks
NeccessoryComputes metrics in cloud mode, stores measurements, delivers webhooks, bills tokens

Processing modes

Every measurement runs in one of two modes. Both return the same measurement result, and the SDK code differs by one option.

CloudOn-device
Where metrics are computedNeccessory serversThe person's device
AccessSelf-serve: create a key and startAfter your on-device access request is approved
SDKsWeb SDKWeb SDK, iOS SDK
Network during the measurementRequired: the face video is sent for processingNot required
Result storedAutomaticallyWhen your server submits it
Attested resultYes, for complete measurements with usable qualityNo
Recorded video processingYes—
Metric setsChosen per key and per sessionAll available metrics
BillingTokens per measurementNo token charges

Choose cloud to start today, to get results your server can trust, to process recorded video, or to keep the app light.

Choose on-device when face video must not leave the device, or when the app has to measure without a stable connection. Apply for access in the console — see API keys. You can build on cloud mode while the request is reviewed and switch later.

A cloud measurement, step by step

  1. The person opens the measurement screen in your app and agrees to the processing of their face video.
  2. Your server creates a session with POST /sdk/v1/cloud/sessions and returns it to the app. The session token is valid for 5 minutes and for one measurement.
  3. The app passes the session to the SDK and starts the measurement. The SDK opens the camera, streams the video for processing and reports live heart rate and hints.
  4. The measurement ends when the session duration is reached (20–180 seconds, 60 by default). The app receives the result; Neccessory stores it and sends a webhook to your server.

Details: Cloud sessions.

An on-device measurement, step by step

  1. In the browser, your server first creates a model grant with POST /sdk/v1/models/grant and passes it to the page. The iOS SDK needs no grant.
  2. The SDK computes everything on the device. In the Web SDK you end the measurement with stop(); the iOS SDK ends after the configured duration.
  3. The app sends the result to your server, and your server stores it with POST /sdk/v1/measurements.

Details: Web SDK, iOS SDK, Measurements API.

Security model

  • The secret stays on your server. Apps receive only short-lived credentials: a session token (cloud) or a model grant (on-device web).
  • Every server call is signed. Requests carry an HMAC signature over the method, path, time and body — see Authentication.
  • Cloud results cannot be altered by the client. Neccessory computes and stores them; your server reads them from the API. See Attested results.

Timing

MomentWhen
Live heart rateAbout 10 seconds after the start
First HRV estimateAbout 15 seconds of clean signal
Recommended duration30–60 seconds. HRV, stress and blood pressure are more stable with longer measurements
Final result, cloudShortly after the measurement ends