List tenant usage
curl --request GET \
--url https://api.embedreach.com/partner/tenant-usageimport requests
url = "https://api.embedreach.com/partner/tenant-usage"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.embedreach.com/partner/tenant-usage', 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/tenant-usage",
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/tenant-usage"
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/tenant-usage")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.embedreach.com/partner/tenant-usage")
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": [
{
"tenantId": "<string>",
"externalId": "<string>",
"name": "<string>",
"deletedAt": "2023-11-07T05:31:56Z",
"resources": {
"phoneNumbers": {
"total": 1,
"tollFree": 1,
"local": 1
},
"locations": 123
},
"features": [
{
"feature": "assist",
"active": true,
"usage": {
"callCount": 1,
"callDurationSeconds": 1
}
}
]
}
],
"pagination": {
"hasNextPage": true,
"cursor": "<string>",
"total": 123
}
}
}{
"message": "<string>",
"success": false,
"errors": [
"<string>"
]
}Tenant Usage
List tenant usage
Returns every tenant billable over the requested window, paginated. A tenant soft-deleted partway through the window is still listed, with deletedAt set, because they were billable for the earlier part of it. startDate and endDate are both required and must be YYYY-MM-DD calendar days; any other format is rejected. Both days are included in full, so September is startDate=2026-09-01 and endDate=2026-09-30. A tenant deleted at the very start of startDate is not listed, having been billable for none of it.
GET
/
partner
/
tenant-usage
List tenant usage
curl --request GET \
--url https://api.embedreach.com/partner/tenant-usageimport requests
url = "https://api.embedreach.com/partner/tenant-usage"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.embedreach.com/partner/tenant-usage', 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/tenant-usage",
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/tenant-usage"
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/tenant-usage")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.embedreach.com/partner/tenant-usage")
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": [
{
"tenantId": "<string>",
"externalId": "<string>",
"name": "<string>",
"deletedAt": "2023-11-07T05:31:56Z",
"resources": {
"phoneNumbers": {
"total": 1,
"tollFree": 1,
"local": 1
},
"locations": 123
},
"features": [
{
"feature": "assist",
"active": true,
"usage": {
"callCount": 1,
"callDurationSeconds": 1
}
}
]
}
],
"pagination": {
"hasNextPage": true,
"cursor": "<string>",
"total": 123
}
}
}{
"message": "<string>",
"success": false,
"errors": [
"<string>"
]
}