Create an automation
Saves a comment or DM automation, as a draft unless status is active. An active automation starts replying to comments and sending DMs in the workspace's name right away. Keywords, the contact rule, and the limits are fields of their own. Needs the admin role.
AuthorizationBearer <token>Send your key as Authorization: Bearer eksis_sk_....
application/json- body
name*stringThe name in the automation list.
1 <= length <= 80status?stringdraft saves it without running it. active starts replying and sending DMs in the workspace's name right away. paused keeps it off.
"active""paused""draft"trigger*stringWhat starts it: any comment or a comment with a keyword on a watched post, any DM or a DM with a keyword, or a reply to a Story.
"comment_created""comment_keyword""dm_received""dm_keyword""story_reply"channelIds*array<string>Channel ids from GET /v1/channels the automation runs on.
1 <= items <= 50postLinks?array<>Links to posts already live on those channels, as the address bar shows them. Comment triggers only. Sending it replaces the posts watched. A workspace can look up 10 post links a minute.
items <= 5keywords?array<>Words that start the automation. An empty list removes the keyword rule.
items <= 30keywordMode?stringHow a keyword matches the comment or message. contains when left out.
"contains""exact""starts_with"excludeKeywords?array<>Words that stop it even when a keyword matches. An empty list removes the rule.
items <= 30contactKind?stringnew acts only on people eksis has not seen before, returning only on people it has.
"any""new""returning"actions*array<||||||||>What happens, in order. Sending it replaces the whole list.
1 <= items <= 10guardrails?The automation.
application/json- response
data?curl -X POST 'https://api.eksis.io/v1/automations' \ -H 'Authorization: Bearer eksis_sk_...' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "trigger": "comment_created", "channelIds": [ "string" ], "actions": [ { "type": "reply_comment", "variants": [ "string" ] } ]}'{ "data": { "id": "string", "name": "string", "status": "active", "trigger": "comment_created", "channelIds": [ "string" ], "posts": [ { "channelId": "string", "label": "string", "permalink": "string", "waitingForScheduledPostId": "string" } ], "keywords": [ "string" ], "keywordMode": "contains", "excludeKeywords": [ "string" ], "contactKind": "any", "actions": [ { "type": "reply_comment", "variants": [ "string" ] } ], "guardrails": { "maxDmPerContactPerDay": 1, "maxActionsPerHour": 1, "quietHours": { "enabled": true, "from": "22:00", "to": "22:00" } }, "summary": "string", "canSwitchOn": true, "blocker": "string", "updatedAt": "2019-08-24T14:15:22Z" }}