Workouts
Raw
GET

/v2/summary/workouts/{user_id}/raw

x-vital-api-key*
curl --request GET \
  --url https://api.tryvital.io/v2/summary/workouts/{user_id}/raw \
  --header 'x-vital-api-key: <x-vital-api-key>'
curl --request GET \
     --url {{BASE_URL}}/v2/summary/workouts/{user_id}/raw \
     --header 'Accept: application/json' \
     --header 'x-vital-api-key: <API_KEY>'
{
  "workouts": [
    {
      "timestamp": "2022-08-04T12:42:44.857707+00:00",
      "data": {
        "provider_specific": "..._data"
      },
      "provider_id": "61709202-ab4d-480a-8cc0-254e64d7c33e",
      "user_id": "ba6a785a-b3c3-4bda-ad8c-4571b67f6089",
      "source_id": 1,
      "priority_id": 1,
      "sport_id": 3
    }
  ]
}

​
Path Parameters

user_idrequired
string

User id returned by vital create user id request. This id should be stored in your database against the user and used for all interactions with the vital api.

​
Query Parameters

providerDefault: ""
string

Provider oura/strava etc

start_daterequired
string

Date from in YYYY-MM-DD or ISO formatted date time. If a date is provided without a time, the time will be set to 00:00:00

end_date
string

Date to YYYY-MM-DD or ISO formatted date time. If a date is provided without a time, the time will be set to 23:59:59

​
Response

workoutsrequired
array