Quantity samples of one type
tenantKeyAuthorizationBearer <token>Tenant API key, ohs_sk_ + 43 base62 characters.
id*stringuuidtype*stringCanonical quantity type, for example heart_rate or step_count. A name outside the quantity type catalog is a 400 (unless this user has samples of it).
start?|Inclusive lower bound, RFC 3339 or YYYY-MM-DD.
end?|Exclusive upper bound, RFC 3339 or YYYY-MM-DD. Must not be before start.
view?stringmerged (the default): when several sources recorded the same thing (a ring and a
watch the same night, a phone and a watch the same steps, one sample directly and
through an aggregator), only the best ranked source's record is listed, so nothing
counts twice. The order of sources is the user's (see source-priorities). all:
every stored record of every source.
"merged""merged""all"cursor?stringThe next_cursor of the previous page.
limit?integer1 <= value <= 1000100One page, by start_date.
application/json- response
data*array<>next_cursor*|Null on the last page.
curl -X GET 'http://localhost:8080/v1/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/samples?type=heart_rate' \ -H 'Authorization: Bearer ohs_sk_...'{ "next_cursor": "string", "data": [ { "provider": "string", "source": "string", "device": "string", "ingested_at": "2019-08-24T14:15:22Z", "id": 0, "type": "heart_rate", "value": 0, "unit": "bpm", "start_date": "2019-08-24T14:15:22Z", "end_date": "2019-08-24T14:15:22Z", "source_name": "string", "source_bundle_id": "string", "device_model": "string", "product_type": "string", "external_id": "string", "is_primary_source": true, "was_user_entered": true, "metadata": {} } ]}