Call it
curl https://api.peume.com/v1/call/create-a-standalone-creative \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"accountId": "your accountId",
"adAccountId": "your adAccountId",
"headline": "your headline",
"body": "your body",
"callToAction": "LEARN_MORE",
"linkUrl": "your linkUrl"
}
}'const res = await fetch("https://api.peume.com/v1/call/create-a-standalone-creative", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"accountId": "your accountId",
"adAccountId": "your adAccountId",
"headline": "your headline",
"body": "your body",
"callToAction": "LEARN_MORE",
"linkUrl": "your linkUrl"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/create-a-standalone-creative",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"accountId": "your accountId",
"adAccountId": "your adAccountId",
"headline": "your headline",
"body": "your body",
"callToAction": "LEARN_MORE",
"linkUrl": "your linkUrl"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: create-a-standalone-creative.
Parameters
stagebooleanSend true to store this write as a staged change instead of applying it. The response is `202` with the change, and POST /v1/ads/changes/{changeId}/confirm applies it later. Cannot be combined with `validateOnly`.
validateOnlybooleanSends the creative to Meta with `execution_options: ["validate_only"]`. Meta checks it and creates nothing. - No image is uploaded: `imageUrl` and the card images are sent by URL. - Answers `200` with `{ validateOnly: true, results, message }`, the shape of a validateOnly POST /v1/ads/create. - `false` is ignored. Cannot be combined with `stage`. Counts toward the Meta ad account write guard.
accountIdRequiredstringSocialAccount id (posting or ads variant) used to resolve the Meta token and Page.
adAccountIdRequiredstringPlatform ad account id (Meta act_<n>, Google customer id, LinkedIn account id,...).
headlineRequiredstringbodyRequiredstringPrimary text
descriptionstringLink description below the headline; omitted = Meta scrapes the destination's OG description.
callToActionstringCTA type (same whitelist as POST /v1/ads/create).
Example: LEARN_MORE
linkUrlRequiredstringcallToActionLinkobjectcallToActionLink
imageUrlstringPublicly reachable image; uploaded to the account's library server-side.
imageHashstringExisting library image hash (POST /v1/ads/images or GET /v1/ads/images).
carouselCardsarrayinstagramAccountIdstringMeta only. The Instagram account the creative runs as, mapped to `instagram_user_id`: an id from `GET /v1/ads/instagram-accounts`, including a Page-backed one. - Given, it is never swapped. One the ad account cannot use returns 400 `insufficient_permissions` on `instagramAccountId`. - Omitted, it uses the account linked to the Page. When the ad account has no access to that one, it retries once with an authorized Instagram account, or returns 422 on `instagramAccountId` when there is none.
optimizeCardOrderbooleanOnly with `carouselCards` (a 400 without them). Sets `link_data.multi_share_optimized`: - `false`: keeps the cards in the order given (up to 10). - `true`: lets Meta reorder them for performance. - Omitted: nothing is sent and Meta's default (`true`) applies.
urlTagsstringAppended to every outbound URL (e.g. utm_source=fb).
promotionobjectpromotion
creativeFeaturesobjectcreativeFeatures
multiAdvertiserstringMeta only. Multi-advertiser ads: whether Meta may show this ad alongside other advertisers' in one unit. Meta auto-enrols since Aug 2024, so send OPT_OUT to leave. It is a top-level creative field, NOT a `creativeFeatures` key, and Meta rejects it there.
OPT_IN · OPT_OUT
aiDisclosurestringMeta only. Meta's "Ad includes media created or edited with AI" disclosure (the Ads Manager checkbox), stored on the creative as `generative_asset_spec.transparency_metadata.self_disclosure`. - OPT_IN: checks it. - OPT_OUT: explicitly declares no AI media. - Omitted: leaves Meta's default. Applied to each new creative (standalone, creatives[] and attach shapes) and preserved when a creative is rebuilt. This sets the disclosure on the ad; whether and when the viewer-facing label renders is Meta's decision.
OPT_IN · OPT_OUT
