post

POST /v2/campaigns/actions/uploadImage — Upload campaign image

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Uploads a base64-encoded image for use in campaign placement assets.

Request body

FieldTypeRequiredDescription
fileDatastringYesBase64-encoded image data
fileNamestringYesOriginal filename including extension (used to determine content type)

Response

{
  "success": true,
  "message": "Campaign image uploaded successfully",
  "result": {
    "imageUrl": "http://<bucket>.s3.amazonaws.com/campaign-image-<id>/<file-name>",
    "fileName": "<uploaded-file-name>"
  }
}

The image URL is result.imageUrl — it is not returned as a bare string. Use result.imageUrl when storing a placementAssets entry.

Errors

StatusCodeDescription
400invalid_file_inputfileData or fileName missing
500file_upload_failedUpload to S3 failed

Required role

Affiliate token required

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here!