Returns a list of workouts for a given user.

GET /organizations/:org_id/users/:uid/workouts

Request Information

Request Parameters

NameRequired FieldTypeDescription
start_dateoptionalstringThe start date to retrieve user data for. Format: YYYY-MM-DD. Default is current UTC day. Max date range is 30 days.
end_dateoptionalstringThe end date to retrieve user data for. Format: YYYY-MM-DD. Default is current UTC day. Max date range is 30 days.
sourceoptionalstringUsed to filter records to source(s).
Example:
“...?source=fitbit,garmin”
or
“...?source=fitbit”

HTTP Response Status

Response CodeDescription
200 (Ok)Indicates the request was received and a result was returned.
400 (Bad Request)Indicates that there was an error with request

Field Description

versionstringIndicates the resource payload version. Validic will make future updates to the structure of the resource payload where breaking changes will receive a new version.
idstringUnique identifier for the record.
checksumstringA derived value useful when comparing records with the same id for data updates.
typestringThe Validic Resource type. For Workouts records the type will be workouts.
start_timestringThe start time of the event represented in UTC. Format: YYYY-MM-DDThh:mm:ssZ.
end_timestringThe end time of the event represented in UTC. Format: YYYY-MM-DDThh:mm:ssZ.
utc_offsetintegerThe offset in seconds from UTC.
offset_originstringThe source of the UTC offset. Valid values: source (UTC offset received from the original record), profile (UTC offset received from the source's user profile), user_defined (UTC offset provided by user's time zone selection upon authorization through the Validic Marketplace)
userobjectA User object that contains identifiers related to the user.
user>uidstringThe customer's user ID.
user>user_idstringValidic user ID.
user>organization_idstringValidic organization ID.
log_idstringThe unique identifier for the record provided by the source.
sourceA source object that contains source specific information.
source>typestringThe source Validic retrieved the data from.
source>deviceobjectA device object containing information about the device that generated the data if available.
source>device>namestringThe name of the device.
source>device>typestringThe type of the device.
namestringA free form field that defines the workout type for the record.
categorystringThe category of the workout. Valid values: biking, cardio, running, strength, swimming, walking, other.
metricsarrayAn array of Metrics. Refer to the Metrics documentation for further information.
segmentsarrayAn array of Segments. A more granular view of the items that compose the workout event.
segment>namestringA free form field that defines the workout type for the segment.
segment>metricsarrayMetrics for the given segment.
created_atstringThe record processed time represented in UTC. Format: YYYY-MM-DDThh:mm:ssZ.
Language
Click Try It! to start a request and see the response here!