Call it
curl https://api.peume.com/v1/call/creative-details \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"accountId": "your accountId",
"fields": "id,name,status,object_story_spec{page_id,link_data{link,message}}",
"thumbnailWidth": 600,
"thumbnailHeight": 600,
"creativeId": "your creativeId"
}
}'const res = await fetch("https://api.peume.com/v1/call/creative-details", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"accountId": "your accountId",
"fields": "id,name,status,object_story_spec{page_id,link_data{link,message}}",
"thumbnailWidth": 600,
"thumbnailHeight": 600,
"creativeId": "your creativeId"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/creative-details",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"accountId": "your accountId",
"fields": "id,name,status,object_story_spec{page_id,link_data{link,message}}",
"thumbnailWidth": 600,
"thumbnailHeight": 600,
"creativeId": "your creativeId"
}
},
)
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: creative-details.
Parameters
accountIdRequiredstringSocialAccount id (posting or ads variant) used to resolve the Meta token.
fieldsstringComma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a.limit modifier the expansion runs at the Meta default page size and the tail is dropped silently.
Example: id,name,status,object_story_spec{page_id,link_data{link,message}}
thumbnailWidthintegerWidth in pixels of the `thumbnail_url` rendering, forwarded to Meta as `thumbnail_width`. Without it Meta returns a 64x64 thumbnail.
Example: 600
thumbnailHeightintegerHeight in pixels of the `thumbnail_url` rendering, forwarded to Meta as `thumbnail_height`. Without it Meta returns a 64x64 thumbnail.
Example: 600
creativeIdRequiredstringPlatform creative id
