Get Tenant
curl --request GET \
--url https://api.embedreach.com/partner/tenants/{id}import requests
url = "https://api.embedreach.com/partner/tenants/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.embedreach.com/partner/tenants/{id}', 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/tenants/{id}",
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/tenants/{id}"
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/tenants/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.embedreach.com/partner/tenants/{id}")
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": {
"id": "<string>",
"name": "<string>",
"website": "<string>",
"externalId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"locations": [
{
"addressLine1": "<string>",
"locality": "<string>",
"district": "<string>",
"postalCode": "<string>",
"countryCode": "<string>",
"addressLine2": "<string>",
"addressLine3": "<string>"
}
],
"branding": {
"logoBase64": "<string>",
"logoURL": "<string>",
"primaryColor": "<string>",
"secondaryColors": [
"<string>"
],
"brandName": "<string>",
"primaryPhone": "<string>",
"primaryEmail": "jsmith@example.com",
"brandTagline": "<string>",
"brandPersonality": {
"tone": "<string>",
"voice": "<string>",
"values": [
"<string>"
]
},
"colorPalette": {
"primary": "<string>",
"secondary": [
"<string>"
],
"accent": [
"<string>"
],
"background": [
"<string>"
],
"text": [
"<string>"
]
}
},
"deletedAt": "<string>",
"dataIntegrationCompletedAt": "<string>",
"websiteTrackingCompletedAt": "<string>",
"acquireActivatedAt": "<string>",
"uiDefaults": {
"emailHelpDialogShow": false,
"engageOnboardingShow": true,
"acquireLearningPhaseDisabled": true
},
"smsOptInImageUrls": [
"<string>"
]
}
}{
"message": "<string>",
"success": false,
"errors": [
"<string>"
]
}Tenants
Get Tenant
Get a tenant by id or external id
GET
/
partner
/
tenants
/
{id}
Get Tenant
curl --request GET \
--url https://api.embedreach.com/partner/tenants/{id}import requests
url = "https://api.embedreach.com/partner/tenants/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.embedreach.com/partner/tenants/{id}', 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/tenants/{id}",
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/tenants/{id}"
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/tenants/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.embedreach.com/partner/tenants/{id}")
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": {
"id": "<string>",
"name": "<string>",
"website": "<string>",
"externalId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"locations": [
{
"addressLine1": "<string>",
"locality": "<string>",
"district": "<string>",
"postalCode": "<string>",
"countryCode": "<string>",
"addressLine2": "<string>",
"addressLine3": "<string>"
}
],
"branding": {
"logoBase64": "<string>",
"logoURL": "<string>",
"primaryColor": "<string>",
"secondaryColors": [
"<string>"
],
"brandName": "<string>",
"primaryPhone": "<string>",
"primaryEmail": "jsmith@example.com",
"brandTagline": "<string>",
"brandPersonality": {
"tone": "<string>",
"voice": "<string>",
"values": [
"<string>"
]
},
"colorPalette": {
"primary": "<string>",
"secondary": [
"<string>"
],
"accent": [
"<string>"
],
"background": [
"<string>"
],
"text": [
"<string>"
]
}
},
"deletedAt": "<string>",
"dataIntegrationCompletedAt": "<string>",
"websiteTrackingCompletedAt": "<string>",
"acquireActivatedAt": "<string>",
"uiDefaults": {
"emailHelpDialogShow": false,
"engageOnboardingShow": true,
"acquireLearningPhaseDisabled": true
},
"smsOptInImageUrls": [
"<string>"
]
}
}{
"message": "<string>",
"success": false,
"errors": [
"<string>"
]
}⌘I