Get current user achievements with badge definitions
GET
/v1/referral/me/achievementsAuthorization
bearerAuthbearerAuthrequiredor
apiKeyAuthapiKeyAuthrequiredResponses
200OK
itemsUserAchievementView[] | nullrequiredShow propertiesHide properties
Array of
UserAchievementViewachievementReferralAchievementShow propertiesHide properties
badge_levelinteger<int32>requiredbadge_typestringrequiredcreated_atstring<date-time>requiredearned_atstring<date-time>requiredidstringrequiredmetadatastringrequiredorganization_idstringrequiredupdated_atstring<date-time>requireduser_idstringrequireddefinitionBadgeDefinitionrequiredShow propertiesHide properties
descriptionstringrequirediconstringrequiredmax_levelinteger<int64>requirednamestringrequiredrequirementinteger<int64>requiredtypestringrequiredearnedbooleanrequired401Unauthorized
errorErrorBodyrequiredShow propertiesHide properties
codestringrequireddetailsErrorDetail[] | nullShow propertiesHide properties
Array of
ErrorDetailcodestringfieldstringlocationstringmessagestringrequiredmessagestringrequiredrequest_idstring403Forbidden
errorErrorBodyrequiredShow propertiesHide properties
codestringrequireddetailsErrorDetail[] | nullShow propertiesHide properties
Array of
ErrorDetailcodestringfieldstringlocationstringmessagestringrequiredmessagestringrequiredrequest_idstring500Internal Server Error
errorErrorBodyrequiredShow propertiesHide properties
codestringrequireddetailsErrorDetail[] | nullShow propertiesHide properties
Array of
ErrorDetailcodestringfieldstringlocationstringmessagestringrequiredmessagestringrequiredrequest_idstringRequest
curl -X GET "/v1/referral/me/achievements"const response = await fetch("/v1/referral/me/achievements", {
method: "GET"
});import requests
response = requests.get(
"/v1/referral/me/achievements",
)Response
{
"items": [
{
"achievement": {
"badge_level": 0,
"badge_type": "string",
"created_at": "2024-01-01T00:00:00Z",
"earned_at": "2024-01-01T00:00:00Z",
"id": "string",
"metadata": "string",
"organization_id": "string",
"updated_at": "2024-01-01T00:00:00Z",
"user_id": "string"
},
"definition": {
"description": "string",
"icon": "string",
"max_level": 0,
"name": "string",
"requirement": 0,
"type": "string"
},
"earned": true
}
]
}{
"error": {
"code": "string",
"details": [
{
"code": "string",
"field": "string",
"location": "string",
"message": "string"
}
],
"message": "string",
"request_id": "string"
}
}{
"error": {
"code": "string",
"details": [
{
"code": "string",
"field": "string",
"location": "string",
"message": "string"
}
],
"message": "string",
"request_id": "string"
}
}{
"error": {
"code": "string",
"details": [
{
"code": "string",
"field": "string",
"location": "string",
"message": "string"
}
],
"message": "string",
"request_id": "string"
}
}