TagMangoTagMango Docs
Gamification

Get Badges

GET
/api/v1/external/gamification/badges

Get all created badges for creator

AuthorizationBearer <token>

In: header

Header Parameters

x-whitelabel-host*string

Host name of the dashboard, ex: mydomain.tagmango.com

Response Body

application/json

application/json

application/json

curl -X GET "https://api-prod-new.tagmango.com/api/v1/external/gamification/badges" \  -H "x-whitelabel-host: string"
[
  {
    "_id": "6659ca9e5f2acb7abfdcd8fd",
    "creator": "6149b1e5612c4e5fd96041d3",
    "name": "Hall Of Fame",
    "description": "Something about the badge",
    "imageUrl": "https://testing.tagmango.com/assets/badge-icon-922e7f499bc0045d7af8ac771eebe2fe.png",
    "enableAutomation": true,
    "pointsThreshold": 100,
    "pointCategoryForAutomation": "lifetime",
    "automationEnabledMangoes": [
      "6659ca9e5f2acb7abfdcd8fd",
      "6659ca9e5f2acb7abfdcd8fd"
    ],
    "createdAt": "2024-05-31T13:03:26.375Z",
    "updatedAt": "2024-07-19T12:32:51.071Z"
  }
]
{
  "code": 400,
  "type": "Bad request",
  "statusMessage": "BAD_REQUEST",
  "message": "Invalid request",
  "success": false
}
{
  "code": 401,
  "type": "Unauthorized",
  "statusMessage": "UNAUTHORIZED",
  "message": "Invalid token",
  "success": false
}