Call it
curl https://api.peume.com/v1/call/update-post-metadata \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"postId": "your postId",
"platform": "youtube"
}
}'const res = await fetch("https://api.peume.com/v1/call/update-post-metadata", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"postId": "your postId",
"platform": "youtube"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/update-post-metadata",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"postId": "your postId",
"platform": "youtube"
}
},
)
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: update-post-metadata.
Parameters
postIdRequiredstringpost ID, or "_" when using direct video ID mode
platformRequiredstringThe platform to update metadata on. Facebook accepts only thumbnailUrl.
youtube · facebook
videoIdstringYouTube video ID (required for direct mode, ignored for post-based mode). Not supported for Facebook.
accountIdstringaccount ID. Required for direct mode. In post-based mode, picks which account's copy to update when the post was published to several accounts on this platform (required in that case).
titlestringNew video title (max 100 characters for YouTube)
descriptionstringNew video description
tagsarrayArray of keyword tags (max 500 characters combined for YouTube)
categoryIdstringYouTube video category ID
privacyStatusstringVideo privacy setting
public · private · unlisted
thumbnailUrlstringPublic URL of a custom thumbnail image. - YouTube: JPEG, PNG, or GIF, max 50 MB, recommended 1280x720. Works on any video you own, including videos not published through. The channel must be verified (phone verification) to set custom thumbnails. - Facebook: JPEG or PNG, max 5 MB, served directly (no redirects). Replaces the cover of a feed video or Reel published through. Stories are not supported. **Errors:** - 400 with the reason, no field updated: the platform refuses the thumbnail (e.g. YouTube channel without the custom-thumbnail permission, video not owned by the connec
madeForKidsbooleanCOPPA compliance flag. Set true for child-directed content (restricts comments, notifications, ad targeting).
containsSyntheticMediabooleanAI-generated content disclosure. Set true if the video contains synthetic content that could be mistaken for real. YouTube may add a label.
playlistIdstringYouTube playlist ID to add the video to (e.g. 'PLxxxxxxxxxxxxx'). Use GET /v1/accounts/{id}/youtube-playlists to list available playlists. Only playlists owned by the channel are supported.
defaultLanguagestringLanguage of the title and description (BCP-47, e.g. ko).
defaultAudioLanguagestringSpoken language of the video (BCP-47, e.g. ko). When a video has no audio language, YouTube may set en-US once its metadata is updated.
