PeumeAPI

Social publishing & inbox

Update automation settings

Update an automation's keywords, DM message, inline buttons, comment reply, post binding, or active status.

$0.002 per callRuns on an account you connect

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"
  }
}'

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

automationIdRequiredstring
namestring
triggerstring

What 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

keywordsarray
matchModestring

How 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

excludeKeywordsarray

Comments containing one of these never trigger the automation, even when a trigger keyword also matches. Compared using the same matchMode.

typoToleranceboolean

Only 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.

platformPostIdstring

Re-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.

postIdstring

post 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).

postTitlestring

Post content snippet for display. Moves as a unit with platformPostId and postId (see platformPostId).

dmMessagestring
buttonsarray

Inline DM buttons (1-3). Pass [] to clear all buttons.

templatestring

Product 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.

commentReplystring

On 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.

dmMessageVariationsarray

Alternate DM texts for random rotation (see create). Pass [] to clear.

commentReplyVariationsarray

Alternate public replies for random rotation. Pass [] to clear. LinkedIn mentions follow the commentReply rules.

linkTrackingboolean

Wrap link buttons in a tracked redirect to count clicks. Pass false to send links untouched.

clickTagstring

Tag applied to a contact when they click a tracked link (requires linkTracking). Empty string clears it.

alsoMatchInDmsboolean

Also 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.

dmDelaySecondsinteger

Seconds to wait after the trigger before sending the DM. Send 0 to clear the delay and reply immediately.

commentReplyDelaySecondsinteger

Seconds to wait before posting the public comment reply. Send 0 to clear it. The reply never goes out before the DM.

audienceobject

audience

followGateobject

followGate

isActiveboolean

false 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.

repeatPolicyobject

repeatPolicy

dedupeSameTextHoursinteger

Skip 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

actionsobject

actions

quickRepliesarray

Opt-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

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.