Call it
curl https://api.peume.com/v1/call/create-a-blog-article \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"accountId": "your accountId",
"blogId": "your blogId",
"title": "your title"
}
}'const res = await fetch("https://api.peume.com/v1/call/create-a-blog-article", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"accountId": "your accountId",
"blogId": "your blogId",
"title": "your title"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/create-a-blog-article",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"accountId": "your accountId",
"blogId": "your blogId",
"title": "your title"
}
},
)
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-blog-article.
Parameters
accountIdRequiredstringConnected Shopify, WordPress, Wix or Webflow account id.
blogIdRequiredstringPlatform-native blog/site id returned by the list operation.
titleRequiredstringbodyHtmlstringArticle body as HTML.
handlestringURL slug. Generated from the title when omitted.
tagsarrayTag names. WordPress and Wix resolve existing names case-insensitively and create missing tags (Wix allows up to 30).
authorstringShopify author display name, numeric WordPress user id serialized as a string, or Wix site member id. Assigning another WordPress user may require elevated capability. Wix posts without one go to the site's default author.
excerptstringShort summary shown in blog listings.
imageobjectFeatured image from a public URL. WordPress downloads it into the media library and Wix imports it into the Media Manager; JPEG, PNG, GIF and WebP are accepted up to 10 MB.
seoobjectShopify and Wix. Search-engine overrides: Shopify global title_tag and description_tag metafields, Wix post SEO title and meta description. WordPress rejects this field.
isPublishedbooleanSet false for a draft or true to publish. On WordPress and Wix false takes priority over a future publishDate; omission with no date defaults to draft.
publishDatestringISO 8601 datetime with offset (or Z). A future date schedules publication natively on the platform.
fieldDataobjectWebflow only (other platforms answer 400). The collection's own fields that the Blogs API does not map, keyed by field slug, in Webflow's value format (a Reference is an item id, an Image is { url, alt }). Required by collections with required fields of their own: a create that leaves one empty answers 400 listing them. A slug the API already fills (name, slug, body, summary, image, tags, author, date) or one the collection lacks answers 400.
