{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/metriport/main/json-schema/metriport-devices-data-schema.json",
  "title": "DevicesData",
  "description": "Normalized device data returned per connected provider, containing a metadata block describing the source plus the normalized samples.",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/metriport-devices-data-api-openapi.yml#/components/schemas/DevicesData",
  "type": "object",
  "properties": {
    "metadata": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string",
          "format": "date"
        },
        "source": {
          "type": "string",
          "description": "The provider the data was hydrated from (e.g. fitbit, oura, garmin)."
        }
      }
    },
    "biometrics": {
      "type": "object"
    },
    "activity": {
      "type": "object"
    },
    "body": {
      "type": "object"
    },
    "nutrition": {
      "type": "object"
    },
    "sleep": {
      "type": "object"
    }
  }
}