Get a user's profile
Profile of yourself ("me") or one of your athletes. The workspaces field is only returned for your own profile. Responds with 404 if the user does not exist or is not accessible to you.
Authorization
bearer Vekta api key, e.g. Authorization: Bearer vk_...
In: header
Path Parameters
Id of a user you have access to (see GET /users), or the special value me for the user owning the api key
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/users/me"{ "id": "usr_01JGXW3KQ2B8C4D5E6F7G8H9J0", "firstName": "Alex", "lastName": "Rivera", "dateOfBirth": "1990-05-15", "gender": "male", "height": 180, "dataOnboardingStatus": "done", "userMetricReadiness": { "hasVektaCyclingCriticalPower": true, "hasVektaRunningCriticalPower": true, "hasVektaRunningCriticalSpeed": false }, "latestMetrics": [ { "sport": "cycling", "type": "critical power", "source": "vekta", "value": 280 } ], "workspaces": [ { "id": "wke_01JGXW3KQ2B8C4D5E6F7G8H9J0", "name": "Endurance Squad", "slug": "endurance-squad", "role": "coach" } ]}List your athletes GET
The users with the athlete role in at least one workspace where you are coach or admin. The returned ids can be used as the userId path parameter of the other endpoints. Your own data is available through the special value "me".
List a user's activities GET
Summaries of the user's activities, most recent first, optionally restricted to a local date range. Responds with 404 if the user does not exist or is not accessible to you.