NeccessoryNeccessory

Measurement result

The JSON object every SDK delivers and the API stores and returns — field by field.

Every measurement produces one result object with the same shape everywhere: the SDKs deliver it on completion, the REST API stores and returns it, webhooks carry it, and the console shows it.

Example

{
  "id": "meas_9c1f4b7ae2d05138b6a37f42",
  "keyId": "nk_live_sRwG9z2hK2hdV4Il83J7Cw",
  "source": "web",
  "origin": "cloud",
  "attested": true,
  "createdAt": 1767225600000,
  "durationSec": 60,
  "isComplete": true,
  "userRef": "u_42",

  "quality": { "level": "good", "score": 0.82, "usable": true },

  "cardiac": { "heartRate": { "value": 72, "unit": "bpm", "confidence": 0.88 } },
  "hrv": {
    "sdnnMs": 48, "rmssdMs": 41, "pnn50Pct": 12.5,
    "sd1Ms": 29.1, "sd2Ms": 61.4, "sd1Sd2Ratio": 0.47, "csi": 2.11, "cvi": 3.25,
    "lfhf": 1.4, "lfPower": 812, "hfPower": 580, "vlfPower": 210, "totalPower": 1602
  },
  "respiratory": { "breathingRate": { "value": 15, "unit": "brpm" } },
  "stress": { "index": 34, "level": "moderate", "unit": "index" },

  "bloodPressure": {
    "systolicMmHg": 118, "diastolicMmHg": 77, "mapMmHg": 91, "ppMmHg": 41,
    "unit": "mmHg", "confidence": 0.51,
    "tier": "beta", "disclaimer": "Estimate for wellness use only. Not a medical device."
  },
  "spo2": {
    "value": 97, "unit": "%", "confidence": 0.6,
    "tier": "beta", "disclaimer": "Estimate for wellness use only. Not a medical device."
  },
  "emotion": {
    "dominant": "Neutral", "dominantConfidence": 0.64,
    "probabilities": { "Neutral": 0.64, "Happiness": 0.21 },
    "tier": "beta", "disclaimer": "Estimate for wellness use only. Not a medical device."
  },
  "behavior": {
    "attentionPercent": 82, "fatiguePercent": 24, "blinkRate": 17, "cardiacOutput": 1.1,
    "gaze": { "yawDeg": -2.4, "pitchDeg": 1.1 },
    "headPose": { "yawDeg": -3.0, "pitchDeg": 2.2, "rollDeg": 0.4 },
    "tier": "beta", "disclaimer": "Estimate for wellness use only. Not a medical device."
  }
}

Top-level fields

FieldTypeDescription
idstringMeasurement ID, meas_…. Assigned when the measurement is stored
keyIdstringKey the measurement belongs to
source"web" | "ios" | "playground"Where it was taken
origin"cloud" | "on_device"Where the metrics were computed
attestedbooleantrue when Neccessory computed the metrics in cloud mode and the measurement is complete with usable quality. See Attested results
createdAtnumberEpoch milliseconds
durationSecnumberMeasurement length, seconds
isCompletebooleanfalse when the measurement ended before enough signal was collected
sdkVersionstringSDK version that produced the result, when reported
modelsVersionstringModel version that produced the result, when reported
userRefstringYour end-user identifier, when you sent one. See End users
requestIdstringID of the API call that stored the result, when there was one
cloudJobIdstringCloud session or video job that produced the result. Cloud mode only
testtruePresent only on results produced by a test key

Metric sections

SectionContentsReference
qualitylevel, score, usable. Always present, never nullSignal quality
cardiacheartRateHeart rate
hrvSDNN, RMSSD, pNN50 and moreHRV
respiratorybreathingRateBreathing rate
stressindex, levelStress
bloodPressureSystolic, diastolic, MAP, pulse pressure. BetaBlood pressure
spo2Saturation. BetaSpO2
emotionExpression probabilities. BetaFace analysis
behaviorGaze, head pose, attention, fatigue, blink rate, cardiac output. BetaFace analysis

Rules

  • Handle null everywhere. Section keys are present; individual values may be null. Hide or dim them.
  • poor quality means no values. When quality.level is "poor", every metric is null.
  • Beta sections carry their label. bloodPressure, spo2, emotion and behavior include tier: "beta" and a disclaimer. Show the disclaimer next to the values.
  • Server-owned fields are ignored on input. id, keyId, createdAt, origin, attested, requestId and cloudJobId are set by Neccessory. If you send them with a result, they are ignored.
  • New fields may appear. Parse leniently and ignore fields you do not know.

Raw signal

The raw section holds beat-to-beat intervals and the pulse waveform. It is returned only when you ask for it: ?advanced=true on the query string, or "includeAdvanced": true in the body when you submit a result.

"raw": {
  "rrIntervalsMs": [812, 799, 834],
  "ppgSignal": [0.12, 0.14, 0.11],
  "sampleRateHz": 30
}

Assessment

Add ?include=assessment to a read request to get a ready-made interpretation: a wellness score, per-metric reference badges and disclaimers you can display.

"assessment": {
  "wellnessScore": 74,
  "badges": [
    { "metric": "hr", "state": "in_range", "value": 72, "range": { "low": 55, "high": 100 } },
    { "metric": "bp", "state": "above",
      "value": { "systolic": 132, "diastolic": 78 },
      "range": { "systolic": { "low": 90, "high": 129 }, "diastolic": { "low": 60, "high": 84 } } },
    { "metric": "spo2", "state": "unknown", "value": null, "range": { "low": 95, "high": 100 } }
  ],
  "disclaimers": [
    { "code": "not_medical_device", "text": "Estimate for wellness use only. Not a medical device." },
    { "code": "bp_estimate", "text": "Blood pressure is a beta estimate with a typical error around ±10 mmHg. Ranges are informational, not diagnostic." }
  ]
}
FieldDescription
wellnessScore0–100, or null when quality is poor
badges[].statein_range, above, below or unknown. A null value is always unknown
badges[].rangeWellness reference range used for the badge
disclaimers[]code and display text. low_quality is added when quality is fair or poor

Badges use these reference ranges:

metricRange
hr55–100 bpm
bpSystolic 90–129 mmHg, diastolic 60–84 mmHg
spo295–100 %
breathing10–20 brpm
stress0–60

Badges are wellness reference ranges, not a diagnosis. Show each disclaimer next to the values it applies to.