Skip to main content
POST
/
partner
/
automation-templates
Create automation template
curl --request POST \
  --url https://api.embedreach.com/partner/automation-templates \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "version": "<string>",
  "contents": {
    "name": "<string>",
    "description": "<string>",
    "triggerType": "one_time",
    "triggerMetadata": {
      "triggerType": "one_time",
      "scheduledAt": "<string>",
      "timezone": "<string>",
      "shouldOverrideActiveAutomations": true
    },
    "actionData": [
      {
        "index": 123,
        "type": "send_communication",
        "html": "<string>",
        "css": "<string>",
        "compiledHtml": "<string>",
        "text": "<string>",
        "subject": "<string>",
        "previewText": "<string>",
        "templateActionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "extraMergeFields": [
          {
            "id": "<string>",
            "type": "static",
            "templateName": "<string>",
            "displayName": "<string>",
            "staticValue": "<string>"
          }
        ],
        "formTemplateKeys": [
          "<string>"
        ],
        "channelConfigId": "<string>",
        "customBlockText": "<string>",
        "reputationTemplateType": "feedback-request"
      }
    ],
    "includeSegmentDefaults": [
      "all_users"
    ],
    "feature": "engage",
    "excludeSegmentDefaults": [
      "all_users"
    ],
    "additionalSegments": [
      "all_users"
    ],
    "priority": 123,
    "channelConfigs": [
      {
        "id": "<string>",
        "channelType": "email",
        "account": {
          "name": "<string>",
          "baseDomain": "<string>"
        },
        "sender": {
          "userPart": "<string>",
          "emailFromName": "<string>",
          "emailReplyTo": "<string>"
        }
      }
    ]
  }
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "template": "<unknown>"
  }
}

Body

application/json
name
string
required
version
string
required
contents
object
required

Response

Status 200 response

success
boolean
required
message
string
data
object