REST API · Session Physiology

Session Physiology API

Post-session heart-rate and vocal signals in. FHIR R4 session data out — for behavioral-health platforms and EHRs.

This is the partner API behind Session Physiology. Not a scribe. Does not diagnose. Clinician decides.

What this API does

Session physiology data, delivered as an API

the SeroState API accepts post-session wearable and vocal inputs, time-aligns them to the encounter, and returns structured session data your product can write into the chart. Primary signal is continuous heart rate; vocal patterns when available; EDA when present.

Platforms use it to surface say/body-gap flags, confidence, and signal quality beside the clinical note — without changing how the clinician runs the session.

Primary Endpoint

POST /v1/session

POST /v1/session
{
  "physiological_timeline": [ { "t": "41:12", "hr_bpm": null } ],
  "risk_flags": [
    { "type": "say_body_gap", "confidence": null, "segment_ref": "seg_01" }
  ],
  "signal_quality": { "overall": null },
  "coding_support": [
    { "code": "…", "confidence": null }
  ],
  "fhir": { "resourceType": "Bundle", "type": "collection" },
  "disposition": "documentation_support_only"
}

Example response — illustrative field shape only. Not live execution. Documentation support, not diagnosis. The clinician retains authority.

curl -X POST https://api.serostate.com/v1/session \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"session_id":"…","audio_ref":"…","wearable_ref":"…"}'

How to read these fields

  • confidence: how strongly the moment stands out; partners set review thresholds. Computed by SeroState; not a sensor readout.
  • signal_quality: computed over the session; not reported by the watch.

Your clinical team sets the thresholds. We deliver the session data.

Response includes

  • Physiological timeline Continuous heart rate and voice (HRV where sampling permits; EDA when present), time-aligned to transcript.
  • Risk flags Patterns + confidence + session data refs.
  • Signal quality Flags thin or noisy data before the record.
  • Coding support Alignment suggestions with confidence tiers.
  • FHIR R4 artifacts Structured bundle for EHR ingestion.

Auth shape: OAuth 2.0 client credentials → Bearer access token.

Error shape: {"error":{"code":"…","message":"…","request_id":"…"}} with HTTP 4xx/5xx.

Idempotency / retry: send Idempotency-Key on POST; retry safe on network timeouts with the same key. Back off on 429/503.

Minimal FHIR mapping: Session Physiology → Bundle of Observation (physiology/flags) + DocumentReference (report pointer) for partner EHR write-back. Exact profiles on request.

Before & After

What changes for your platform

Before

Transcript and notes only. Documentation that fails payer audit when physiology contradicts self-report.

After integration

Time-aligned physiology plus transcript. Confidence-scored session data surfaced inside your existing product.

Authentication

Partner Access

OpenAPI spec, sandbox, and webhooks: on request for qualified engineering teams.

Production

OAuth 2.0 client credentials for authorized platform partners. Scoped to your integration environment with audit logging on all session data requests.

Sandbox

Sandbox with sample payloads and synthetic streams, on request.

Go Deeper

Sample report, fusion protocol, and session data scoring on Platform. Method and citations on Science.

Full Reference

Request the complete API reference.