Skip to main content
GET
/
components
/
v1
/
badge
cURL
curl --request GET \
  --url https://api-sandbox.appcharge.com/components/v1/badge \
  --header 'x-publisher-token: <api-key>'
[
  {
    "id": "507f1f77bcf86cd799439011",
    "name": "New Item",
    "publisherBadgeId": "new_item",
    "type": "emblem",
    "badgeImageUrl": "https://media.appcharge.com/media/65cb73338-5723cb43db5889"
  },
  {
    "id": "507f1f77bcf86cd799439012",
    "name": "New Year Celebration",
    "publisherBadgeId": "new_year_celebration",
    "type": "ribbon",
    "badgeImageUrl": "https://images.pexels.com/photos/new-years.png",
    "text": "New Year Sale",
    "backgroundColor": {
      "colorOne": "#00c6ff",
      "colorTwo": "#0072ff",
      "gradientDirection": "to right"
    },
    "textColor": {
      "colorOne": "#ffffff"
    }
  }
]
[
  {
    "id": "507f1f77bcf86cd799439011",
    "name": "New Item",
    "publisherBadgeId": "new_item",
    "type": "emblem",
    "badgeImageUrl": "https://media.appcharge.com/media/65cb73338-5723cb43db5889"
  },
  {
    "id": "507f1f77bcf86cd799439012",
    "name": "New Year Celebration",
    "publisherBadgeId": "new_year_celebration",
    "type": "ribbon",
    "badgeImageUrl": "https://images.pexels.com/photos/new-years.png",
    "text": "New Year Sale",
    "backgroundColor": {
      "colorOne": "#00c6ff",
      "colorTwo": "#0072ff",
      "gradientDirection": "to right"
    },
    "textColor": {
      "colorOne": "#ffffff"
    }
  }
]

Authorizations

x-publisher-token
string
header
required

Publisher token, as displayed in the Publisher Dashboard.

Response

200 - application/json

Badges retrieved successfully.

getAllBadgesResponse
object[]