Call it
curl https://api.peume.com/v1/call/update-automation-settings \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"automationId": "your automationId"
}
}'const res = await fetch("https://api.peume.com/v1/call/update-automation-settings", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"automationId": "your automationId"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/update-automation-settings",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"automationId": "your automationId"
}
},
)
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-automation-settings.
Parameters
automationIdRequiredstringnamestringtriggerstringWhat fires the automation. Changing it detaches the automation from its bound post or story (a post id and a story id are different objects), unless this same request sets a new binding. Every trigger but 'comment' is Instagram only; 'story_mention' also requires no keywords and no binding.
comment · live_comment · story_reply · story_mention
keywordsarraymatchModestringHow a keyword is compared with the comment. 'contains' (default) matches anywhere, even inside another word (keyword 'app' fires on 'happy'). 'word' matches the keyword only as a standalone word. 'exact' requires the whole comment to be exactly the keyword.
exact · contains · word
excludeKeywordsarrayComments containing one of these never trigger the automation, even when a trigger keyword also matches. Compared using the same matchMode.
typoTolerancebooleanOnly with matchMode=word: also fire on close misspellings of a keyword (one edit for 4-7 character keywords, two from 8 up). Keywords shorter than 4 characters are never fuzzy-matched.
platformPostIdstringRe-binds the automation to another post: the platform media/post ID (or story media id when trigger=story_reply). 409 when another active automation already owns the new post. postId, platformPostId and postTitle move as a unit: - Sending any of them replaces all three; an omitted one is cleared. - All three null (or empty): account-wide (any post / any story). - All three omitted: keeps the current binding.
postIdstringpost ID (24 hexadecimal characters); platform IDs return 400. Use it INSTEAD of platformPostId to bind to a not-yet-published post: the automation stays pending and arms itself when that post publishes. Moves as a unit with platformPostId and postTitle (see platformPostId).
postTitlestringPost content snippet for display. Moves as a unit with platformPostId and postId (see platformPostId).
dmMessagestringbuttonsarrayInline DM buttons (1-3). Pass [] to clear all buttons.
templatestringProduct card sent instead of the plain dmMessage bubble. Pass null to clear it and fall back to dmMessage. Mutually exclusive with buttons, including with the buttons already stored on the automation.
commentReplystringOn LinkedIn, mention with `@[Name](urn:li:person:ID)` or `@[Name](urn:li:organization:ID)`, getting the URN from `GET /v1/accounts/{accountId}/linkedin-mentions`. The name must match the person's or Page's LinkedIn name exactly, or the mention renders as plain text. Profile or company URL mentions are not resolved here and are sent as plain text.
dmMessageVariationsarrayAlternate DM texts for random rotation (see create). Pass [] to clear.
commentReplyVariationsarrayAlternate public replies for random rotation. Pass [] to clear. LinkedIn mentions follow the commentReply rules.
linkTrackingbooleanWrap link buttons in a tracked redirect to count clicks. Pass false to send links untouched.
clickTagstringTag applied to a contact when they click a tracked link (requires linkTracking). Empty string clears it.
alsoMatchInDmsbooleanAlso fire these keywords on a plain inbound DM. Enabling it requires the automation to end up with at least one keyword (this request's keywords if you send them, otherwise the stored ones) and is rejected on story_reply automations.
dmDelaySecondsintegerSeconds to wait after the trigger before sending the DM. Send 0 to clear the delay and reply immediately.
commentReplyDelaySecondsintegerSeconds to wait before posting the public comment reply. Send 0 to clear it. The reply never goes out before the DM.
audienceobjectaudience
followGateobjectfollowGate
isActivebooleanfalse pauses the automation. true on a paused automation resumes it for comments posted from that moment: comments left while it was paused get no DM.
repeatPolicyobjectrepeatPolicy
dedupeSameTextHoursintegerSkip the DM when this recipient already received identical DM text (after personalisation) from this account, from any automation, within this many hours. The skip is logged with status skipped. Send null to clear.
publicReplyPolicystring'after_dm' posts commentReply only after a successful DM. 'always' posts it whatever the audience rule, dedupe or DM outcome: the moment a comment matches, or after commentReplyDelaySeconds when set (raised to dmDelaySeconds, so it never precedes the DM attempt).
after_dm · always
actionsobjectactions
quickRepliesarrayOpt-in quick-reply chips on the DM (up to 13). Chips do not render in Message Requests, where a first DM to a cold commenter lands, so prefer buttons for first contact. Mutually exclusive with buttons and template (400). Send null to clear.
dmMediastring