Call it
curl https://api.peume.com/v1/call/pinterest-comments \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"thread_id": "your thread id",
"page_token": "your page token"
}
}'const res = await fetch("https://api.peume.com/v1/call/pinterest-comments", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"thread_id": "your thread id",
"page_token": "your page token"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/pinterest-comments",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"thread_id": "your thread id",
"page_token": "your page token"
}
},
)
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: pinterest-comments.
Parameters
thread_idstringThe `thread_id` from a Pin row (rows with an `e1_` ID carry it too). Pass either this or `url`; it saves a lookup, so it is faster.
page_tokenstringPage token. Leave it out for the first page, then pass back the previous response's `next_page_token` unchanged, with the other parameters the same as on the first page. Each page counts as one call.
urlstringThe Pin: a Pin link with a numeric ID (/pin/<number>/) or the numeric ID. Pass either this or `thread_id`; for a row with an `e1_` ID, pass its `thread_id`.
