Skip to main content
GET
/
user-profile
/
{userId}
/
score
/
{scoreId}
/
components
List user score components
curl --request GET \
  --url https://api.dontdie.com/user-profile/{userId}/score/{scoreId}/components \
  --header 'Authorization: Bearer <token>' \
  --header 'x-dd-client-id: <api-key>'
[
  {
    "id": "1234567890",
    "componentId": "258ccc8b-e1df-4a01-abfd-08f0f9a7f7bc",
    "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 components for

scoreId
string
required

The ID of the score to get the components for

Response

200 - application/json

OK

id
string

The ID of the score component

Example:

"1234567890"

componentId
string

The ID of the score component. StepCount: 258ccc8b-e1df-4a01-abfd-08f0f9a7f7bc, SleepDuration: e3b39903-644c-430f-9b56-a84992207f4e, CaloriesBurned: 757098c3-facb-4c18-aebb-a9df4a4ba0c5

Example:

"258ccc8b-e1df-4a01-abfd-08f0f9a7f7bc"

wearableProvider
string

The name of the wearable provider

Example:

"GARMIN"

points
number

The points of the score component

Example:

100

value
number

The value of the score component

Example:

100

updatedAt
string

The date the score component was updated

Example:

"2021-01-01"

createdAt
string

The date the score component was created

Example:

"2021-01-01"