Skip to main content
GET
/
achievements
/
badges
/
:userId
Get All Badges
curl --request GET \
  --url https://www.api.baselink.tech/achievements/badges/:userId \
  --header 'bearer: <api-key>'
{
  "badges": [
    {}
  ],
  "badges[].id": "<string>",
  "badges[].type": "<string>",
  "badges[].title": "<string>",
  "badges[].description": "<string>",
  "badges[].icon": "<string>",
  "badges[].isActive": true,
  "badges[].earnedAt": "<string>",
  "badges[].metadata": {}
}
Retrieve all badges (both active and inactive) for a specific user.
badges
array
Array of all badge objects for the user.
badges[].id
string
The unique identifier of the badge.
badges[].type
string
The type/category of the badge.
badges[].title
string
The title of the badge.
badges[].description
string
The description of the badge.
badges[].icon
string
The icon URL for the badge.
badges[].isActive
boolean
Whether the badge is currently active.
badges[].earnedAt
string
The timestamp when the badge was earned.
badges[].metadata
object
Additional metadata for the badge.