We want to check feasibility of invoking API and pass image from marketing cloud to that API in base 64 encoded format. The image need to be encoded into base 64 and then pass into API in apayload? Is this possible in SFMC ?

  • 1
    have you reviewed the api help docs for assets?
    – EazyE
    May 26 at 13:59

1 Answer 1


Yes you can. In particular, you could create the asset in Content builder by REST API.

Host: https://YOUR_SUBDOMAIN.rest.marketingcloudapis.com/asset/v1/content/assets
Method: POST
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN

An example body:

  "name": "1px transparent gif asset",
  "assetType": {
    "name": "gif",
    "id": 20
  "ModelVersion": 2,
  "FileProperties": {
    "fileName": "1px transparent gif asset.gif"

Where File attribute value is the Image encoded base64 string

Find more attributes here: Create asset
List of asset type here


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .