Skip to main content
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>"
}

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
duplicate
enum<boolean>
required
Available options:
true
source_id
string
required

The ID of the automation to duplicate

name
string
required

The name of the automation

description
string

A description for the automation

Response

Status 200 response

success
boolean
required
message
string
data
object