Vekta API
Users

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.

GET
/users/{userId}
AuthorizationBearer <token>

Vekta api key, e.g. Authorization: Bearer vk_...

In: header

Path Parameters

userId*string

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"    }  ]}