curl --request GET \
--url https://app.trophy.so/api/points/triggers \
--header 'X-API-KEY: <api-key>'
[
{
"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"
}
]
Get all points triggers.
curl --request GET \
--url https://app.trophy.so/api/points/triggers \
--header 'X-API-KEY: <api-key>'
[
{
"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"
}
]
Successful operation
The response is of type PointsTriggerResponse · object[]
.
Was this page helpful?