Skip to Content
GrowSocmedDocsSocial media command center

Create an automation

Create an automation (answers only what arrives after it is switched on)

POST
/automations

Create an automation (answers only what arrives after it is switched on)

Authorization

apiKey
headerAuthorizationBearer <token>

API key from Developer → API keys (gs_…). An unbound key takes the workspace from the X-Workspace header.

Request Body

application/json
  1. body
account_id*string
Formatuuid
name*string
Length1 <= length <= 80
kind*string
Value in"comment_to_dm""comment_reply""dm_keyword""default_reply""comment_hide""comment_like""story_reply""story_mention""ice_breaker"
trigger*
actions*
delay?string
Default"natural"
Value in"fast""natural""relaxed"
once_per_person?boolean
Defaulttrue
enabled?boolean
Defaultfalse

Response Body

Created

application/json
  1. response
automation*
Example Request
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    }  }}