Users
- POSTIdentify a new user
- GETGet a single user
- PATCHUpdate a user
- GETGet all metrics for a user
- GETGet a single metric for a user
- GETGet a summary of metric events over time
- GETGet a user's completed achievements
- GETGet a user's streak status
- GETGet a user's points data
- GETGet a summary of points events over time
Points
Get all points triggers
Get all points triggers.
GET
/
points
/
triggers
Copy
curl --request GET \
--url https://app.trophy.so/api/points/triggers \
--header 'X-API-KEY: <api-key>'
Copy
[
{
"id": "0040fe51-6bce-4b44-b0ad-bddc4e123534",
"type": "metric",
"points": 10,
"status": "active",
"metricId": "0040fe51-6bce-4b44-b0ad-bddc4e123534",
"metricName": "words written",
"metricThreshold": 1000,
"created": "2021-01-01T00:00:00Z",
"updated": "2021-01-01T00:00:00Z"
},
{
"id": "0040fe51-6bce-4b44-b0ad-bddc4e123536",
"type": "streak",
"points": 10,
"status": "active",
"streakLengthThreshold": 7,
"created": "2021-01-01T00:00:00Z",
"updated": "2021-01-01T00:00:00Z"
},
{
"id": "0040fe51-6bce-4b44-b0ad-bddc4e123535",
"type": "achievement",
"points": 50,
"status": "active",
"achievementId": "0040fe51-6bce-4b44-b0ad-bddc4e123535",
"achievementName": "finish onboarding",
"created": "2021-01-01T00:00:00Z",
"updated": "2021-01-01T00:00:00Z"
}
]
Authorizations
Response
200
application/json
Successful operation
The response is of type PointsTriggerResponse · object[]
.
Was this page helpful?
Copy
curl --request GET \
--url https://app.trophy.so/api/points/triggers \
--header 'X-API-KEY: <api-key>'
Copy
[
{
"id": "0040fe51-6bce-4b44-b0ad-bddc4e123534",
"type": "metric",
"points": 10,
"status": "active",
"metricId": "0040fe51-6bce-4b44-b0ad-bddc4e123534",
"metricName": "words written",
"metricThreshold": 1000,
"created": "2021-01-01T00:00:00Z",
"updated": "2021-01-01T00:00:00Z"
},
{
"id": "0040fe51-6bce-4b44-b0ad-bddc4e123536",
"type": "streak",
"points": 10,
"status": "active",
"streakLengthThreshold": 7,
"created": "2021-01-01T00:00:00Z",
"updated": "2021-01-01T00:00:00Z"
},
{
"id": "0040fe51-6bce-4b44-b0ad-bddc4e123535",
"type": "achievement",
"points": 50,
"status": "active",
"achievementId": "0040fe51-6bce-4b44-b0ad-bddc4e123535",
"achievementName": "finish onboarding",
"created": "2021-01-01T00:00:00Z",
"updated": "2021-01-01T00:00:00Z"
}
]
Assistant
Responses are generated using AI and may contain mistakes.