Create a standalone creative
Creates a creative in the library WITHOUT an ad, reusable on the create endpoints via
existingCreativeId. Provide exactly one of imageUrl (uploaded server-side),
imageHash (from POST /v1/ads/images or the library list), or carouselCards (2-10
hand-built cards). The Page (and linked Instagram account, when present) is resolved
from accountId as the story actor.
API key authentication - use your Zernio API key as a Bearer token
In: header
Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token and Page.
Meta ad account id (act_).
length <= 255Primary text
Link description below the headline; omitted = Meta scrapes the destination's OG description.
length <= 255CTA type (same whitelist as POST /v1/ads/create).
"LEARN_MORE"uriPublicly reachable image; uploaded to the account's library server-side.
uriExisting library image hash (POST /v1/ads/images or GET /v1/ads/images).
2 <= items <= 10Appended to every outbound URL (e.g. utm_source=fb).
Advantage+ creative enhancements: partial map of Meta creative feature keys (snake_case) to enroll status, forwarded as degrees_of_freedom_spec.creative_features_spec. Unspecified features default to OPT_OUT.
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.adcreatives.createAdCreative({ body: { accountId: 'account_abc123', adAccountId: 'adaccount_abc123', headline: 'string', body: 'Hello, world!', linkUrl: 'https://example.com', },});console.log(data);{
"adAccountId": "string",
"creativeId": "string"
}{
"error": "Unauthorized"
}Ad image library GET
Lists the ad account's image library (Meta's `/act_X/adimages`), rows returned verbatim. The default projection covers hash, url, name, dimensions and status; `fields` is a raw-passthrough override. Any `hash` here is reusable wherever Meta accepts `image_hash` (e.g. `imageHash` on POST /v1/ads/creatives).
Creative details GET
One creative's details, verbatim from Meta. `fields` is a raw-passthrough override of the default projection.