Call it
curl https://api.peume.com/v1/call/reply-to-an-ad-comment \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"adId": "your adId",
"commentId": "your commentId",
"text": "your text"
}
}'const res = await fetch("https://api.peume.com/v1/call/reply-to-an-ad-comment", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"adId": "your adId",
"commentId": "your commentId",
"text": "your text"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/reply-to-an-ad-comment",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"adId": "your adId",
"commentId": "your commentId",
"text": "your text"
}
},
)
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-an-ad-comment.
Parameters
sincestringStart date of the comment lookup window. Defaults to 30 days before until.
untilstringEnd date of the comment lookup window. Defaults to today in UTC.
adIdRequiredstringInternal ad ID or indexed platform ad ID.
commentIdRequiredstringTikTok comment ID from the ad comment listing. A Meta comment ID (post_comment) answers 501 with the inbox comment endpoints to use.
textRequiredstringNon-empty reply text.
