Call it
curl https://api.peume.com/v1/call/reply-to-comment \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"postId": "your postId",
"accountId": "your accountId",
"message": "your message"
}
}'const res = await fetch("https://api.peume.com/v1/call/reply-to-comment", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"postId": "your postId",
"accountId": "your accountId",
"message": "your message"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/reply-to-comment",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"postId": "your postId",
"accountId": "your accountId",
"message": "your message"
}
},
)
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: reply-to-comment.
Parameters
postIdRequiredstringpost ID or platform-specific post ID. On LinkedIn, pass the post id exactly as the feed returns it (urn:li:share:<id> or urn:li:ugcPost:<id>); a bare number is read as an activity id (urn:li:activity:<n>).
accountIdRequiredstringmessageRequiredstringReply text. On LinkedIn, mention with @[https://www.linkedin.com/in/vanity] (resolved to LinkedIn's live name, same rules and errors as post content) or @[Name](urn:li:person|organization:ID); a hand-written name must match LinkedIn's exactly or it renders as plain text.
attachmentUrlstring(Facebook, Bluesky, LinkedIn, Threads and X) URL of an image to attach to the comment or reply. The URL must be publicly fetchable. Returns 400 for other platforms.
attachmentTypestring(Facebook, Threads and X, optional) How `attachmentUrl` is published. Requires `attachmentUrl`; returns 400 on other platforms. - Omitted: a GIF is detected and posted animated. Detection uses GIPHY links (page, media, embed, sticker; `gph.is` on Threads and X), `.gif` paths, and an `image/gif` response on Threads and X. - `image`: forces a still photo. Threads converts a GIF or WebP to JPEG or PNG. - `gif`: forces an animated GIF. - Threads GIFs must come from GIPHY, otherwise the request returns 400 `invalid_field_value`. - Facebook and X get a GIPHY link as their direct GIF. - X takes one
image · gif
commentIdstringReply to specific comment (optional)
mentionAuthorboolean(LinkedIn only) When true, the reply starts with an @mention of the author of `commentId` (a member or a page), tagged with their URN and the name LinkedIn returns for them. Requires `commentId`. - Returns 400 `platform_not_supported` on other platforms. - Returns 400 `linkedin_mention_name_unavailable` with `details.authorUrn` when LinkedIn does not return the author's name (for example a page the account does not administer); mention them in `message` as @[Name](urn) instead. - If LinkedIn rejects any mention in the reply, it is posted once more with every mention as plain text.
parentCidstring(Bluesky only) Parent content identifier
rootUristring(Bluesky only) Root post URI
rootCidstring(Bluesky only) Root post CID
