v2

latestOpenAPI 3.1.02026-08-075421692.0 MB
Ad Creatives

Upload an ad image from base64

Uploads raw image bytes to the Meta ad account's image library — for callers whose creatives aren't hosted at a public URL. Returns the image hash (Meta's identifier for the asset) and the Meta-hosted url, which can be used directly as imageUrl on the create endpoints. Max 30 MB decoded.

post/v1/ads/images

Request body

accountIdstring required

Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.

adAccountIdstring required

Meta ad account id (act_<n>).

imageBase64string required

Raw base64 image bytes, or a full data URL (the data:image/...;base64, prefix is stripped).

filenamestring

Optional filename shown in Meta's image library. Defaults to ad_image.jpg.

Response

Image uploaded

adAccountIdstring