Call it
curl https://api.peume.com/v1/call/edit-published-post \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"postId": "your postId",
"platform": "twitter",
"content": "your content"
}
}'const res = await fetch("https://api.peume.com/v1/call/edit-published-post", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"postId": "your postId",
"platform": "twitter",
"content": "your content"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/edit-published-post",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"postId": "your postId",
"platform": "twitter",
"content": "your content"
}
},
)
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: edit-published-post.
Parameters
postIdRequiredstringplatformRequiredstringThe platform to edit the post on.
twitter · discord · facebook · reddit · linkedin · telegram · pinterest · googlebusiness · youtube · slack
contentRequiredstringThe new post text content
accountIdstringWhich account's copy of the post to edit when the post was published to several accounts on the same platform. Required in that case.
