Skip to main content
GET
/
user-profile
/
{userId}
/
score-v2
User Score
curl --request GET \
  --url https://api.dontdie.com/user-profile/{userId}/score-v2 \
  --header 'Authorization: Bearer <token>' \
  --header 'x-dd-client-id: <api-key>'
{
  "score": {
    "id": "1234567890",
    "points": 100,
    "scoreDate": "2021-01-01",
    "updatedAt": "2021-01-01",
    "hoursSlept": 8,
    "steps": 10000,
    "caloriesBurned": 1000
  },
  "scoreComponents": [
    {
      "id": "1234567890",
      "componentId": "1234567890",
      "wearableProvider": "GARMIN",
      "points": 100,
      "value": 100,
      "updatedAt": "2021-01-01",
      "createdAt": "2021-01-01"
    }
  ]
}

Authorizations

Authorization
string
header
required

Enter your Bearer token in the format: Bearer

x-dd-client-id
string
header
required

Your API client ID for the request

Path Parameters

userId
string
required

The ID of the user to get the score for

Query Parameters

date
string<date>
required

The date to get the score for

Response

200 - application/json

OK

score
object

The score of the user

scoreComponents
object[]