Get an environment's analytics dashboard
/analytics/dashboard
Query Parameters
The environment to report on; the caller must be able to reach it. Required with a session. With an API token it defaults to the token's environment.
A named range ending today, inside the 90-day window. mtd is this month, last_month the whole of last month, 7d / 30d / 90d the last 7, 30 or 90 days. Send this or from / to, not both. Defaults to mtd.
mtdlast_month7d30d90d
A custom range's first UTC day (inclusive). Defaults to 30 days before to. Clamped to the 90-day window.
A custom range's last UTC day (inclusive). Defaults to today; a range that includes today runs up to now.
Page filters, filter[category]=<id> and filter[integration]=<name>. Each part takes the ones its metric accepts; the headline numbers take none.
{"integration":"hubspot"}A category id from GET /analytics/metrics, e.g. unified_api.
An integration name, as the logs record it (e.g. hubspot).
The accounts.next_cursor of the previous response, for the next page of accounts. The rest of the response is the same (served from the cache).
Only accounts whose id starts with this.
Response Body
Integrated account lifecycle events in the range, from the logs (for example created, updated, deleted).
One page of the integrated accounts with the most API calls in the range. Only accounts that still exist are listed.
Pass as accounts_cursor for the next page.
10 properties
The integrated account id.
The account's context.label, when it is text.
API calls.
API calls per day (as billing counts them), aligned with buckets. null when it could not be loaded.
3 properties
3 properties
3 properties
How long the parts of this response are cached.
21600The integrations with the most requests that returned HTTP 400 or above. An empty key is calls with no integration (Admin API calls, and requests that failed before an integration was known).
The page filters applied, as sent.
When the numbers were read. Responses are cached for 6 hours, so a range that includes today shows today as of this time.
API calls per hour (UTC) over the last 7 days of the range; an hour later today is null.
Every integration with API calls in the range or integrated accounts now, by API calls.
Accounts with status needs_reauth, validation_error or post_install_error now.
API calls as billing counts them (the billable_api_calls filter).
API requests, the denominator of the error rate.
The environment's integrations and integrated accounts as they are now (sandbox accounts excluded).
Each headline number for the range, the span of the same length before it, and a daily series. accounts, active_accounts and active_integrations describe the accounts as they are now, so they have no previous value or series.
3 properties
The same figure for the span of equal length just before the range (ending at the same time of day); null when that span is not inside the 90-day window, and for numbers that describe the accounts as they are now.
One value per day of the range (null for a rate or latency with no requests that day); empty for numbers that describe the accounts as they are now.
Null when there is nothing to measure, e.g. a rate with no requests behind it.
3 properties
The same figure for the span of equal length just before the range (ending at the same time of day); null when that span is not inside the 90-day window, and for numbers that describe the accounts as they are now.
One value per day of the range (null for a rate or latency with no requests that day); empty for numbers that describe the accounts as they are now.
Null when there is nothing to measure, e.g. a rate with no requests behind it.
3 properties
The same figure for the span of equal length just before the range (ending at the same time of day); null when that span is not inside the 90-day window, and for numbers that describe the accounts as they are now.
One value per day of the range (null for a rate or latency with no requests that day); empty for numbers that describe the accounts as they are now.
Null when there is nothing to measure, e.g. a rate with no requests behind it.
3 properties
The same figure for the span of equal length just before the range (ending at the same time of day); null when that span is not inside the 90-day window, and for numbers that describe the accounts as they are now.
One value per day of the range (null for a rate or latency with no requests that day); empty for numbers that describe the accounts as they are now.
Null when there is nothing to measure, e.g. a rate with no requests behind it.
3 properties
The same figure for the span of equal length just before the range (ending at the same time of day); null when that span is not inside the 90-day window, and for numbers that describe the accounts as they are now.
One value per day of the range (null for a rate or latency with no requests that day); empty for numbers that describe the accounts as they are now.
Null when there is nothing to measure, e.g. a rate with no requests behind it.
3 properties
The same figure for the span of equal length just before the range (ending at the same time of day); null when that span is not inside the 90-day window, and for numbers that describe the accounts as they are now.
One value per day of the range (null for a rate or latency with no requests that day); empty for numbers that describe the accounts as they are now.
Null when there is nothing to measure, e.g. a rate with no requests behind it.
3 properties
The same figure for the span of equal length just before the range (ending at the same time of day); null when that span is not inside the 90-day window, and for numbers that describe the accounts as they are now.
One value per day of the range (null for a rate or latency with no requests that day); empty for numbers that describe the accounts as they are now.
Null when there is nothing to measure, e.g. a rate with no requests behind it.
3 properties
The same figure for the span of equal length just before the range (ending at the same time of day); null when that span is not inside the 90-day window, and for numbers that describe the accounts as they are now.
One value per day of the range (null for a rate or latency with no requests that day); empty for numbers that describe the accounts as they are now.
Null when there is nothing to measure, e.g. a rate with no requests behind it.
3 properties
The same figure for the span of equal length just before the range (ending at the same time of day); null when that span is not inside the 90-day window, and for numbers that describe the accounts as they are now.
One value per day of the range (null for a rate or latency with no requests that day); empty for numbers that describe the accounts as they are now.
Null when there is nothing to measure, e.g. a rate with no requests behind it.
3 properties
The same figure for the span of equal length just before the range (ending at the same time of day); null when that span is not inside the 90-day window, and for numbers that describe the accounts as they are now.
One value per day of the range (null for a rate or latency with no requests that day); empty for numbers that describe the accounts as they are now.
Null when there is nothing to measure, e.g. a rate with no requests behind it.
3 properties
The same figure for the span of equal length just before the range (ending at the same time of day); null when that span is not inside the 90-day window, and for numbers that describe the accounts as they are now.
One value per day of the range (null for a rate or latency with no requests that day); empty for numbers that describe the accounts as they are now.
Null when there is nothing to measure, e.g. a rate with no requests behind it.
3 properties
The same figure for the span of equal length just before the range (ending at the same time of day); null when that span is not inside the 90-day window, and for numbers that describe the accounts as they are now.
One value per day of the range (null for a rate or latency with no requests that day); empty for numbers that describe the accounts as they are now.
Null when there is nothing to measure, e.g. a rate with no requests behind it.
3 properties
The same figure for the span of equal length just before the range (ending at the same time of day); null when that span is not inside the 90-day window, and for numbers that describe the accounts as they are now.
One value per day of the range (null for a rate or latency with no requests that day); empty for numbers that describe the accounts as they are now.
Null when there is nothing to measure, e.g. a rate with no requests behind it.
3 properties
The same figure for the span of equal length just before the range (ending at the same time of day); null when that span is not inside the 90-day window, and for numbers that describe the accounts as they are now.
One value per day of the range (null for a rate or latency with no requests that day); empty for numbers that describe the accounts as they are now.
Null when there is nothing to measure, e.g. a rate with no requests behind it.
3 properties
The same figure for the span of equal length just before the range (ending at the same time of day); null when that span is not inside the 90-day window, and for numbers that describe the accounts as they are now.
One value per day of the range (null for a rate or latency with no requests that day); empty for numbers that describe the accounts as they are now.
Null when there is nothing to measure, e.g. a rate with no requests behind it.
3 properties
The same figure for the span of equal length just before the range (ending at the same time of day); null when that span is not inside the 90-day window, and for numbers that describe the accounts as they are now.
One value per day of the range (null for a rate or latency with no requests that day); empty for numbers that describe the accounts as they are now.
Null when there is nothing to measure, e.g. a rate with no requests behind it.
p95 latency per day in ms, total and waiting on the provider; null on a day without requests.
The named range shown, or custom for from / to.
mtdlast_month7d30d90dcustom
API requests by HTTP status class (2, 4, 5, ...), largest first.
Parts that could not be loaded right now and are null (api_calls, latency, hourly_api_calls, status_codes, errors_by_integration, accounts).
The days analytics can show (the last 90 days, up to today).
curl -X GET 'https://api.truto.one/analytics/dashboard' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json'const response = await fetch('https://api.truto.one/analytics/dashboard', {
method: 'GET',
headers: {
'Authorization': 'Bearer <your_api_token>',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);import requests
url = "https://api.truto.one/analytics/dashboard"
headers = {
"Authorization": "Bearer <your_api_token>",
"Content-Type": "application/json",
}
params = {
}
response = requests.get(url, headers=headers, params=params)
print(response.json())