Skip to main content
GET
/
user-profile
/
{userId}
/
scores
List user scores
curl --request GET \
  --url https://api.dontdie.com/user-profile/{userId}/scores \
  --header 'Authorization: Bearer <token>' \
  --header 'x-dd-client-id: <api-key>'
[
  {
    "id": "1234567890",
    "points": 100,
    "scoreDate": "2021-01-01",
    "updatedAt": "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 scores for

Query Parameters

limit
number

The limit of the scores to return

Response

200 - application/json

OK

id
string

The ID of the score

Example:

"1234567890"

points
number

The points of the score

Example:

100

scoreDate
string

The date of the score

Example:

"2021-01-01"

updatedAt
string

The date the score was updated

Example:

"2021-01-01"