Skip to main content
GET
/
components
/
v1
/
asset
cURL
curl --request GET \
  --url https://api-sandbox.appcharge.com/components/v1/asset \
  --header 'x-publisher-token: <api-key>'
[
  {
    "id": "507f1f77bcf86cd799439011",
    "name": "gold_coins_icon",
    "type": "product",
    "imageUrl": "https://media.appcharge.com/media/691d8c9f127412f153c2267",
    "contentType": "image/png",
    "externalImageUrl": "https://example.com/assets/gold_coins_icon.png"
  },
  {
    "id": "507f1f77bcf86cd799439012",
    "name": "summer_sale_badge",
    "type": "badge",
    "imageUrl": "https://media.appcharge.com/media/691d8c97d-4b55c292b2cg6",
    "contentType": "image/jpeg"
  }
]
[
  {
    "id": "507f1f77bcf86cd799439011",
    "name": "gold_coins_icon",
    "type": "product",
    "imageUrl": "https://media.appcharge.com/media/691d8c9f127412f153c2267",
    "contentType": "image/png",
    "externalImageUrl": "https://example.com/assets/gold_coins_icon.png"
  },
  {
    "id": "507f1f77bcf86cd799439012",
    "name": "summer_sale_badge",
    "type": "badge",
    "imageUrl": "https://media.appcharge.com/media/691d8c97d-4b55c292b2cg6",
    "contentType": "image/jpeg"
  }
]

Authorizations

x-publisher-token
string
header
required

Publisher token, as displayed in the Publisher Dashboard.

Response

200 - application/json

Assets retrieved successfully.

getAllAssetsResponse
object[]