Validic Inform

Validic Inform Developer Hub

Welcome to the Validic Inform developer hub. You'll find comprehensive guides and documentation to help you start working with Validic Inform as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started

Fitbit Alta

The following examples are generated by the Fitbit Alta.

{
    "data": [
        {
            "category": "daily",
            "checksum": "82628e38f7d09cfb3f109234406be8df",
            "created_at": "2017-10-06T14:37:21.319Z",
            "deleted_at": null,
            "end_time": "2017-10-07T03:59:59Z",
            "id": "f4b66299c96d3SAMPLEf8a9aaf5bcb9",
            "log_id": "2017-10-06",
            "metrics": [
                {
                    "type": "active_energy_burned",
                    "origin": "device",
                    "unit": "kcal",
                    "value": 262
                },
                {
                    "type": "basal_energy_burned",
                    "origin": "device",
                    "unit": "kcal",
                    "value": 747
                },
                {
                    "type": "distance",
                    "origin": "device",
                    "unit": "m",
                    "value": 1180
                },
                {
                    "type": "energy_burned",
                    "origin": "device",
                    "unit": "kcal",
                    "value": 941
                },
                {
                    "type": "steps",
                    "origin": "device",
                    "unit": "count",
                    "value": 1649
                }
            ],
            "offset_origin": "profile",
            "segments": [],
            "source": {
                "type": "fitbit",
                "device": null
            },
            "start_time": "2017-10-06T04:00:00Z",
            "type": "summary",
            "user": {
                "organization_id": "59b969SAMPLE8800001c29206",
                "user_id": "59b973f8f758800001c29211",
                "uid": "dsaddda"
            },
            "user_notes": [],
            "utc_offset": -14400,
            "version": "1.0"
        }
    ]
}
{
    "data": [
        {
            "checksum": "cf376c8dccf3540f34891e831294d8e6",
            "created_at": "2017-10-06T11:03:19.443Z",
            "deleted_at": null,
            "end_time": "2017-10-06T10:47:30Z",
            "id": "8e5fa1e84a9d858728a912a75d028d80",
            "log_id": "15981630179",
            "metrics": [
                {
                    "type": "awake_count",
                    "origin": "unknown",
                    "unit": "count",
                    "value": 2
                },
                {
                    "type": "awake_duration",
                    "origin": "unknown",
                    "unit": "s",
                    "value": 900
                },
                {
                    "type": "sleep_score",
                    "origin": "unknown",
                    "unit": "percent",
                    "value": 97
                },
                {
                    "type": "time_to_fall_asleep",
                    "origin": "unknown",
                    "unit": "s",
                    "value": 0
                },
                {
                    "type": "restless_count",
                    "origin": "unknown",
                    "unit": "count",
                    "value": 10
                },
                {
                    "type": "in_bed_duration",
                    "origin": "unknown",
                    "unit": "s",
                    "value": 27240
                },
                {
                    "type": "sleep_duration",
                    "origin": "unknown",
                    "unit": "s",
                    "value": 26340
                }
            ],
            "offset_origin": "profile",
            "source": {
                "type": "fitbit",
                "device": null
            },
            "start_time": "2017-10-06T03:13:30Z",
            "type": "sleep",
            "user": {
                "organization_id": "59b969SAMPLE8800001c29206",
                "user_id": "59b973f8f758800001c29211",
                "uid": "dsaddda"
            },
            "user_notes": [],
            "utc_offset": -14400,
            "version": "1.0"
        }
    ]
}
{
    "data": [
        {
            "category": "walking",
            "checksum": "323958485aea353262694428fddd1ab7",
            "created_at": "2017-09-13T18:09:24.050Z",
            "deleted_at": null,
            "end_time": "2017-09-03T16:11:36Z",
            "id": "6bde20b226687c03a504d0edb4504d50",
            "log_id": "9704066137",
            "metrics": [
                {
                    "type": "active_duration",
                    "origin": "device",
                    "unit": "s",
                    "value": 2509
                },
                {
                    "type": "steps",
                    "origin": "device",
                    "unit": "count",
                    "value": 2364
                },
                {
                    "type": "energy_burned",
                    "origin": "device",
                    "unit": "kcal",
                    "value": 209
                }
            ],
            "name": "Walk",
            "offset_origin": "profile",
            "segments": [],
            "source": {
                "type": "fitbit",
                "device": null
            },
            "start_time": "2017-09-03T15:29:47Z",
            "type": "workout",
            "user": {
                "organization_id": "59b969SAMPLE8800001c29206",
                "user_id": "59b973f8f758800001c29211",
                "uid": "dsaddda"
            },
            "user_notes": [],
            "utc_offset": -14400,
            "version": "1.0"
        },
        {
            "category": "walking",
            "checksum": "7cc5825e13fe13f8b2a38e6c83b8f2f4",
            "created_at": "2017-09-13T18:09:24.079Z",
            "deleted_at": null,
            "end_time": "2017-09-03T18:55:27Z",
            "id": "81ea4d4a9c4011ecfb357276cd6d140e",
            "log_id": "9706106166",
            "metrics": [
                {
                    "type": "active_duration",
                    "origin": "device",
                    "unit": "s",
                    "value": 1025
                },
                {
                    "type": "steps",
                    "origin": "device",
                    "unit": "count",
                    "value": 1351
                },
                {
                    "type": "energy_burned",
                    "origin": "device",
                    "unit": "kcal",
                    "value": 111
                }
            ],
            "name": "Walk",
            "offset_origin": "profile",
            "segments": [],
            "source": {
                "type": "fitbit",
                "device": null
            },
            "start_time": "2017-09-03T18:38:22Z",
            "type": "workout",
            "user": {
                "organization_id": "59b969SAMPLE8800001c29206",
                "user_id": "59b973f8f758800001c29211",
                "uid": "dsaddda"
            },
            "user_notes": [],
            "utc_offset": -14400,
            "version": "1.0"
        }
    ]
}

Data Origin

Data returned in Measurements and Nutrition often originate from the mobile application. The exception is when the device supports measurement of heart rate. The following samples depict manual entries using the mobile application.

{
    "data": [
        {
            "category": "other",
            "checksum": "98e1aae062b75917a5ff682bdca6fcbf",
            "created_at": "2017-09-20T18:54:06.769Z",
            "deleted_at": null,
            "end_time": "2017-09-21T03:59:59Z",
            "id": "17c3dbe5fa5b75d8791e6d71722960c2",
            "log_id": "2017-09-20",
            "metrics": [
                {
                    "type": "energy_consumed",
                    "origin": "unknown",
                    "unit": "kcal",
                    "value": 180
                },
                {
                    "type": "dietary_fiber",
                    "origin": "unknown",
                    "unit": "g",
                    "value": 0.25
                },
                {
                    "type": "water",
                    "origin": "unknown",
                    "unit": "mL",
                    "value": 0
                },
                {
                    "type": "carbohydrate",
                    "origin": "unknown",
                    "unit": "g",
                    "value": 13
                },
                {
                    "type": "fat",
                    "origin": "unknown",
                    "unit": "g",
                    "value": 4.5
                },
                {
                    "type": "protein",
                    "origin": "unknown",
                    "unit": "g",
                    "value": 1
                },
                {
                    "type": "sodium",
                    "origin": "unknown",
                    "unit": "mg",
                    "value": 67.5
                }
            ],
            "name": "Unknown",
            "offset_origin": "profile",
            "source": {
                "type": "fitbit",
                "device": null
            },
            "start_time": "2017-09-20T04:00:00Z",
            "type": "nutrition",
            "user": {
                "organization_id": "59b969SAMPLE8800001c29206",
                "user_id": "59b973f8f758800001c29211",
                "uid": "dsaddda"
            },
            "user_notes": [],
            "utc_offset": -14400,
            "version": "1.0"
        }
    ]
}
{
    "data": [
        {
            "checksum": "94b5ddf1379010ca69da2abdb3e28037",
            "created_at": "2017-09-13T18:09:21.670Z",
            "deleted_at": null,
            "end_time": "2017-09-08T03:59:59Z",
            "id": "75a05c2339f52702405dfc1270dae284",
            "log_id": "1504828799000",
            "metrics": [
                {
                    "type": "body_weight",
                    "origin": "unknown",
                    "unit": "kg",
                    "value": 81.3
                },
                {
                    "type": "bmi",
                    "origin": "unknown",
                    "unit": "kg/m2",
                    "value": 27.25
                }
            ],
            "offset_origin": "profile",
            "source": {
                "type": "fitbit",
                "device": null
            },
            "start_time": "2017-09-08T03:59:59Z",
            "type": "measurement",
            "user": {
                "organization_id": "59b969SAMPLE8800001c29206",
                "user_id": "59b973f8f758800001c29211",
                "uid": "dsaddda"
            },
            "user_notes": [],
            "utc_offset": -14400,
            "version": "1.0"
        },
        {
            "checksum": "66b2b46d82faa89679a65ff6b367fc5b",
            "created_at": "2017-09-13T18:09:21.128Z",
            "deleted_at": null,
            "end_time": "2017-09-11T03:59:59Z",
            "id": "1255eff1ca212347e27785e2deac26bd",
            "log_id": "1505087999000",
            "metrics": [
                {
                    "type": "body_weight",
                    "origin": "unknown",
                    "unit": "kg",
                    "value": 80.8
                },
                {
                    "type": "bmi",
                    "origin": "unknown",
                    "unit": "kg/m2",
                    "value": 27.07
                }
            ],
            "offset_origin": "profile",
            "source": {
                "type": "fitbit",
                "device": null
            },
            "start_time": "2017-09-11T03:59:59Z",
            "type": "measurement",
            "user": {
                "organization_id": "59b969SAMPLE8800001c29206",
                "user_id": "59b973f8f758800001c29211",
                "uid": "dsaddda"
            },
            "user_notes": [],
            "utc_offset": -14400,
            "version": "1.0"
        }
    ]
}

Fitbit Alta