Get Resource Counts for All Tenants
curl --request GET \
--url https://api.embedreach.com/partner/resources/countsimport requests
url = "https://api.embedreach.com/partner/resources/counts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.embedreach.com/partner/resources/counts', 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/resources/counts",
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/resources/counts"
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/resources/counts")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.embedreach.com/partner/resources/counts")
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": {
"results": [
{
"tenantExternalId": "<string>",
"schemaDefinitionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"schemaDefinitionName": "<string>",
"count": 123
}
],
"pagination": {
"hasNextPage": true,
"cursor": "<string>",
"total": 123
}
}
}{
"message": "<string>",
"success": false,
"errors": [
"<string>"
]
}Partner Resources
Get Resource Counts for All Tenants
Returns the count of each resource type (schema definition) for all tenants of the authenticated partner. Counts are grouped by tenant external ID and schema definition. Useful for monitoring data syncing across all tenants and comparing numbers with partner databases. Supports pagination with cursor and limit parameters.
GET
/
partner
/
resources
/
counts
Get Resource Counts for All Tenants
curl --request GET \
--url https://api.embedreach.com/partner/resources/countsimport requests
url = "https://api.embedreach.com/partner/resources/counts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.embedreach.com/partner/resources/counts', 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/resources/counts",
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/resources/counts"
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/resources/counts")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.embedreach.com/partner/resources/counts")
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": {
"results": [
{
"tenantExternalId": "<string>",
"schemaDefinitionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"schemaDefinitionName": "<string>",
"count": 123
}
],
"pagination": {
"hasNextPage": true,
"cursor": "<string>",
"total": 123
}
}
}{
"message": "<string>",
"success": false,
"errors": [
"<string>"
]
}Query Parameters
Cursor for pagination. Use the cursor from the previous response to get the next page.
Number of tenant groups to return per page. Default is 50, maximum is 200.
Filter by tenant external ID. Use "(No External ID)" to filter for tenants without an external ID.