API reference
Workouts record by ID
Retrieve user specific record by workout ID
GET
Request
Response
Path Params
workout_id
String
required
Query Parameters
include_laps
Boolean
optional
include_route_points
Boolean
optional
include_samples
Boolean
optional
include_segments
Boolean
optional
include_sessions
Boolean
optional
include_splits
Boolean
optional
Header Parameters
Authorization
String
required
Provide your bearer token in the Authorization header when making requests to protected resources.
Curl
1curl --request GET \
2 --url https://app-api.spikeapi.com/v3/queries/workouts/{workout_id} \
3 --header 'Accept: application/json, application/problem+json' \
4 --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI5OTk5OSIsInN1YiI6ImE5ZjU3ODAzMGIxYThkYWUifQ.DJhTPUc7gAkK03rtFQxuFJzRBNpfWjgVJnFU7YUY4A4'
Responses
200
1{
2 "record_id": "0134fece-6679-83a0-bf53-b509a3a93a70",
3 "modified_at": "2025-03-18T06:03:38Z",
4 "start_at_timestamp": "2025-03-18T05:27:46Z",
5 "end_at_timestamp": "2025-03-18T06:03:38Z",
6 "duration": 2152000,
7 "user_time_offset_minutes": 120,
8 "input_method": "device",
9 "metrics": {
10 "heartrate_max": 170,
11 "heartrate_avg": 139,
12 "heartrate_min": 83,
13 "calories_burned_active": 357.0000,
14 "distance": 1625.0000,
15 "speed_max": 1.4080,
16 "speed_avg": 0.7550,
17 "duration_active": 2152,
18 "cadence_avg": 24.0000,
19 "pace_avg": 22.08
20 },
21 "provider_source": "garmin_wellness_activity_details",
22 "provider_source_type": "activity",
23 "provider_slug": "garmin",
24 "source": {
25 "device_manufacturer": "Garmin",
26 "device_product": "Venu Sq"
27 },
28 "workout_id": "49ba509e-2bef-55e1-9323-64835b6fd538",
29 "workout_type": "swimming",
30 "workout_tags": [
31 "swimming",
32 "workout"
33 ],
34 "laps": [
35 {
36 "start_at": "2025-03-18T05:27:46Z",
37 "end_at": "2025-03-18T05:38:09Z",
38 "duration": 623000,
39 "lap": 1,
40 "samples": {}
41 },
42 {
43 "start_at": "2025-03-18T05:38:09Z",
44 "end_at": "2025-03-18T05:45:53Z",
45 "duration": 464000,
46 "lap": 2,
47 "samples": {}
48 },
49 {
50 "start_at": "2025-03-18T05:45:53Z",
51 "end_at": "2025-03-18T05:53:34Z",
52 "duration": 461000,
53 "lap": 3,
54 "samples": {}
55 },
56 {
57 "start_at": "2025-03-18T05:53:34Z",
58 "end_at": "2025-03-18T06:01:11Z",
59 "duration": 457000,
60 "lap": 4,
61 "samples": {}
62 },
63 {
64 "start_at": "2025-03-18T06:01:11Z",
65 "end_at": "2025-03-18T06:03:38Z",
66 "duration": 147000,
67 "lap": 5,
68 "samples": {}
69 }
70 ],
71 "samples": [
72 {
73 "start_at": "2025-03-18T05:27:46Z",
74 "end_at": "2025-03-18T05:27:46Z",
75 "metrics": {
76 "heartrate_max": 170,
77 "heartrate_avg": 139,
78 "heartrate_min": 83
79 }
80 }
81 ]
82 },