GET
/
users
/
{id}
/
points
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,
      "trigger": {
        "id": "0040fe51-6bce-4b44-b0ad-bddc4e123534",
        "type": "metric",
        "points": 10,
        "metricName": "words written",
        "metricThreshold": 1000
      }
    }
  ]
}

Authorizations

X-API-KEY
string
header
required

Path Parameters

id
string
required

ID of the user.

Query Parameters

awards
integer
default:10

The number of recent point awards to return.

Required range: 1 <= x <= 100

Response

200
application/json

Successful operation

The response is of type object.