List automation templates
curl --request GET \
--url https://api.embedreach.com/partner/automation-templatesimport requests
url = "https://api.embedreach.com/partner/automation-templates"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.embedreach.com/partner/automation-templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.embedreach.com/partner/automation-templates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.embedreach.com/partner/automation-templates"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.embedreach.com/partner/automation-templates")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.embedreach.com/partner/automation-templates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"data": {
"templates": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"version": "<string>",
"visibility": "visible",
"feature": "engage",
"featureSubType": "internal-review",
"contents": {
"name": "<string>",
"description": "<string>",
"triggerType": "one_time",
"triggerMetadata": {
"triggerType": "one_time",
"scheduledAt": "2023-11-07T05:31:56Z",
"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>"
],
"customBlockText": "<string>",
"reputationTemplateType": "feedback-request"
}
],
"includeSegmentDefaults": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"conditions": [
{
"field": "userId",
"value": [
"<string>"
],
"operator": "equals",
"type": "property",
"description": "<string>"
}
]
}
],
"feature": "engage",
"excludeSegmentDefaults": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"conditions": [
{
"field": "userId",
"value": [
"<string>"
],
"operator": "equals",
"type": "property",
"description": "<string>"
}
]
}
],
"priority": 123,
"usePointOfContactSender": true,
"senderProfileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"tenants": {
"mode": "all",
"excludedTenantIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
},
"createdAt": "<string>",
"updatedAt": "<string>",
"activeBusinessIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"categories": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"color": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
]
}
]
}
}{
"message": "<string>",
"success": false,
"errors": [
"<string>"
]
}Automation Templates
List automation templates
List all automation templates for the authenticated partner
GET
/
partner
/
automation-templates
List automation templates
curl --request GET \
--url https://api.embedreach.com/partner/automation-templatesimport requests
url = "https://api.embedreach.com/partner/automation-templates"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.embedreach.com/partner/automation-templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.embedreach.com/partner/automation-templates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.embedreach.com/partner/automation-templates"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.embedreach.com/partner/automation-templates")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.embedreach.com/partner/automation-templates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"data": {
"templates": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"version": "<string>",
"visibility": "visible",
"feature": "engage",
"featureSubType": "internal-review",
"contents": {
"name": "<string>",
"description": "<string>",
"triggerType": "one_time",
"triggerMetadata": {
"triggerType": "one_time",
"scheduledAt": "2023-11-07T05:31:56Z",
"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>"
],
"customBlockText": "<string>",
"reputationTemplateType": "feedback-request"
}
],
"includeSegmentDefaults": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"conditions": [
{
"field": "userId",
"value": [
"<string>"
],
"operator": "equals",
"type": "property",
"description": "<string>"
}
]
}
],
"feature": "engage",
"excludeSegmentDefaults": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"conditions": [
{
"field": "userId",
"value": [
"<string>"
],
"operator": "equals",
"type": "property",
"description": "<string>"
}
]
}
],
"priority": 123,
"usePointOfContactSender": true,
"senderProfileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"tenants": {
"mode": "all",
"excludedTenantIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
},
"createdAt": "<string>",
"updatedAt": "<string>",
"activeBusinessIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"categories": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"color": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
]
}
]
}
}{
"message": "<string>",
"success": false,
"errors": [
"<string>"
]
}