Skip to content

Get Cardio History for a user

Request

This endpoint retrieves cardio measurements history for the user with pagination support

Security
user
Query
lastIdinteger, (int64)

Cursor for keyset pagination. When provided, only measurements with an ID strictly less than this value are returned, allowing the client to page backwards through the history. Omit on the first request.

measurementLimitinteger, (int32)

Maximum number of measurements to return. Must be a positive integer. When omitted, the server applies its default limit.

curl -i -X GET \
  'https://developer.egym.com/_mock/equipment/partner-api/api/v1/measurements/cardio/history?lastId=0&measurementLimit=0' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Ok

Bodyapplication/json
Array [
idinteger, (int64)

The ID of the measurement

Example:123
timestampinteger, (int64)

The timestamp when the measurement was created (epoch milliseconds)

Example:1647685800000
metricsArray of objects(CardioMetricDTO)

List of cardio metrics for this measurement

]
Response
[ { "id": 123, "timestamp": 1647685800000, "metrics": [ … ] } ]