Vital · Schema

VitalHeartRateTimeseries

A single heart-rate sample returned by GET /v2/timeseries/{user_id}/heartrate. The endpoint returns a paginated list of these samples ordered by timestamp.

Health DataWearablesLab TestingDigital HealthHealthtechHealthcareHIPAAHealthKitHealth ConnectEHREMRBiomarkersDiagnosticsContinuous Glucose MonitoringSleepActivityHeart RateWebhooksPhlebotomyLab Orders

Properties

Name Type Description
id string
timestamp string Sample timestamp (RFC3339).
value number Heart rate value.
unit string Beats per minute.
timezone_offset integer Offset from UTC in seconds.
type string Activity context, e.g. resting, workout.
source object
View JSON Schema on GitHub

JSON Schema

vital-heart-rate-timeseries-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/vital-io/main/json-schema/vital-heart-rate-timeseries-schema.json",
  "title": "VitalHeartRateTimeseries",
  "description": "A single heart-rate sample returned by GET /v2/timeseries/{user_id}/heartrate. The endpoint returns a paginated list of these samples ordered by timestamp.",
  "type": "object",
  "required": ["id", "timestamp", "value", "unit", "source"],
  "properties": {
    "id": {"type": "string", "format": "uuid"},
    "timestamp": {"type": "string", "format": "date-time", "description": "Sample timestamp (RFC3339)."},
    "value": {"type": "number", "description": "Heart rate value."},
    "unit": {"type": "string", "enum": ["bpm"], "description": "Beats per minute."},
    "timezone_offset": {"type": "integer", "description": "Offset from UTC in seconds."},
    "type": {"type": "string", "description": "Activity context, e.g. resting, workout."},
    "source": {
      "type": "object",
      "required": ["provider"],
      "properties": {
        "provider": {"type": "string", "examples": ["fitbit", "garmin", "oura", "whoop", "apple_health_kit"]},
        "type": {"type": "string"},
        "name": {"type": "string"}
      }
    }
  }
}