Get Statistics for Tenant Automation
curl --request GET \
--url https://api.embedreach.com/api/automations/{id}/statisticsimport requests
url = "https://api.embedreach.com/api/automations/{id}/statistics"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.embedreach.com/api/automations/{id}/statistics', 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/api/automations/{id}/statistics",
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/api/automations/{id}/statistics"
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/api/automations/{id}/statistics")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.embedreach.com/api/automations/{id}/statistics")
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": {
"sms": {
"numberSent": 123,
"linksClicked": 123,
"openPercentage": 123,
"softBounceRate": 123,
"hardBounceRate": 123,
"spamComplaintRate": 123,
"unsubscribedRate": 123,
"errors": 123
},
"email": {
"sent": 1,
"delivered": 1,
"opens": 1,
"clicks": 1,
"bounces": 1,
"spamComplaints": 1,
"unsubscribes": 1,
"openRate": 0.5,
"clickRate": 0.5,
"bounceRate": 0.5,
"spamRate": 0.5,
"unsubscribeRate": 0.5,
"numberSent": 1,
"linksClicked": 1,
"openPercentage": 0.5,
"softBounceRate": 0.5,
"hardBounceRate": 0.5,
"spamComplaintRate": 0.5,
"unsubscribedRate": 0.5,
"errors": 1
},
"sales": {
"totalRevenue": 123,
"totalOrders": 123
}
}
}{
"message": "<string>",
"success": false,
"errors": [
"<string>"
]
}Tenant Automation
Get Statistics for Tenant Automation
Get statistics for a tenant automation by id
GET
/
api
/
automations
/
{id}
/
statistics
Get Statistics for Tenant Automation
curl --request GET \
--url https://api.embedreach.com/api/automations/{id}/statisticsimport requests
url = "https://api.embedreach.com/api/automations/{id}/statistics"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.embedreach.com/api/automations/{id}/statistics', 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/api/automations/{id}/statistics",
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/api/automations/{id}/statistics"
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/api/automations/{id}/statistics")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.embedreach.com/api/automations/{id}/statistics")
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": {
"sms": {
"numberSent": 123,
"linksClicked": 123,
"openPercentage": 123,
"softBounceRate": 123,
"hardBounceRate": 123,
"spamComplaintRate": 123,
"unsubscribedRate": 123,
"errors": 123
},
"email": {
"sent": 1,
"delivered": 1,
"opens": 1,
"clicks": 1,
"bounces": 1,
"spamComplaints": 1,
"unsubscribes": 1,
"openRate": 0.5,
"clickRate": 0.5,
"bounceRate": 0.5,
"spamRate": 0.5,
"unsubscribeRate": 0.5,
"numberSent": 1,
"linksClicked": 1,
"openPercentage": 0.5,
"softBounceRate": 0.5,
"hardBounceRate": 0.5,
"spamComplaintRate": 0.5,
"unsubscribedRate": 0.5,
"errors": 1
},
"sales": {
"totalRevenue": 123,
"totalOrders": 123
}
}
}{
"message": "<string>",
"success": false,
"errors": [
"<string>"
]
}