Create an automation
Create an automation (answers only what arrives after it is switched on)
POST
Create an automation (answers only what arrives after it is switched on)
apiKeyheader
AuthorizationBearer <token>API key from Developer → API keys (gs_…). An unbound key takes the workspace from the X-Workspace header.
application/json- body
account_id*stringFormat
uuidname*stringLength
1 <= length <= 80kind*stringValue in
"comment_to_dm""comment_reply""dm_keyword""default_reply""comment_hide""comment_like""story_reply""story_mention""ice_breaker"trigger*actions*delay?stringDefault
"natural"Value in
"fast""natural""relaxed"once_per_person?booleanDefault
trueenabled?booleanDefault
falseCreated
application/json- response
automation*curl -X POST 'https://socmed.growpaces.com/api/v1/automations' \ -H 'Content-Type: application/json' \ -d '{ "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65", "name": "string", "kind": "comment_to_dm", "trigger": {}, "actions": {}}'Example Response201
{ "automation": { "id": "string", "account_id": "string", "platform": "string", "account_username": "string", "name": "string", "kind": "string", "trigger": { "posts": "all", "match": "any", "keywords": [], "includeReplies": false, "frequency": "hour" }, "actions": { "dmText": "string", "replyVariants": [ "string" ], "agentId": "bc309ecf-5f66-4057-93c5-6611cc9cb7b2", "buttons": [ { "title": "string", "url": "http://example.com" } ], "trackClicks": true, "requireFollow": { "askText": "string", "buttonTitle": "string" }, "heart": true, "markAutomated": true, "iceBreakers": [ { "question": "string", "reply": "string" } ] }, "delay": "string", "once_per_person": true, "enabled": true, "enabled_at": "string", "paused_until": "string", "stats": { "sent": 0, "skipped": 0, "failed": 0, "queued": 0, "clicks": 0, "follows": 0, "ctr": 0 } }}