v3
latestOpenAPI 3.1.02026-07-31121144224.9 KBExternal: Events
List Workouts
Returns workout sessions.
get/api/v1/users/{user_id}/events/workouts
Path parameters
user_idstring uuid required
Query parameters
start_datestring date-time required
ISO 8601 datetime (e.g. 2023-11-07T05:31:56Z) or Unix timestamp in seconds. Date-only strings (e.g. 2023-11-07) are also accepted and normalized to midnight UTC.
Example:2023-11-07T05:31:56Z
ISO 8601 datetime (e.g. 2023-11-07T05:31:56Z) or Unix timestamp in seconds. Date-only strings (e.g. 2023-11-07) are also accepted and normalized to midnight UTC.
end_datestring date-time required
ISO 8601 datetime (e.g. 2023-11-07T05:31:56Z) or Unix timestamp in seconds. Date-only strings (e.g. 2023-11-07) are also accepted and normalized to midnight UTC.
Example:2023-11-07T05:31:56Z
ISO 8601 datetime (e.g. 2023-11-07T05:31:56Z) or Unix timestamp in seconds. Date-only strings (e.g. 2023-11-07) are also accepted and normalized to midnight UTC.
record_typestring nullable
cursorstring nullable
limitinteger
Headers
X-Open-Wearables-API-Keystring nullable
Response
Successful Response
Example response
{
"data": [
{
"name": "Morning Run",
"source": {
"provider": "apple_health",
"device": "Apple Watch Series 9"
}
}
],
"pagination": {
"next_cursor": "eyJpZCI6IjEyMzQ1Njc4OTAiLCJ0cyI6MTcwNDA2NzIwMH0",
"total_count": 150
}
}