cURL
curl --request GET \ --url https://app.trophy.so/api/users/{id}/points \ --header 'X-API-KEY: <api-key>'
{ "total": 100, "awards": [ { "id": "0040fe51-6bce-4b44-b0ad-bddc4e123534", "awarded": 10, "date": "2021-01-01T00:00:00Z", "total": 100, "trigger": { "id": "0040fe51-6bce-4b44-b0ad-bddc4e123534", "type": "metric", "points": 10, "metricName": "words written", "metricThreshold": 1000 } } ] }
Get a user’s points.
ID of the user.
The number of recent point awards to return.
1 <= x <= 100
Successful operation
The response is of type object.
object
Was this page helpful?