POST
/
api
/
automations
Create or Duplicate Tenant Automation
curl --request POST \
  --url https://api.embedreach.com/api/automations \
  --header 'Content-Type: application/json' \
  --data '{
  "duplicate": true,
  "source_id": "<string>",
  "name": "<string>",
  "description": "<string>"
}'
{
  "success": true,
  "message": "<string>",
  "data": {
    "id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "triggerMetadata": {
      "triggerType": "one_time",
      "scheduledAt": "<string>",
      "timezone": "<string>"
    },
    "triggerType": "one_time",
    "actionData": [
      {
        "actionType": "send_communication",
        "actionMetadata": {
          "currentActionId": "<string>",
          "nextActionId": "<string>",
          "actionType": "send_communication",
          "communicationGroupId": "<string>"
        }
      }
    ],
    "businessId": "<string>",
    "status": "draft"
  }
}

Headers

reach-tenant-id
string

If using a platform scoped JWT, you can pass in a header to impersonate a specific tenant to impersonate the request as.

Body

application/json

Response

200
application/json

Status 200 response

The response is of type object.