cURL
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" } }
Create a new tenant automation in the draft state
If using a platform scoped JWT, you can pass in a header to impersonate a specific tenant to impersonate the request as.
Status 200 response
The response is of type object.
object