Get workspace stats
GET
/partners/workspace-statsReturns an aggregated business snapshot for the workspace.
Computes cash, profitability, receivables, payables, tax obligations, and connection health. Omit include to return all blocks.
HMAC signature + Bearer access token
Try this requestQuery parameters
includestringoptionalComma-separated blocks to compute: workspace, cash, profitability, receivables, payables, taxObligations, connections. Omit for all blocks.
Responses
200Workspace stats retrieved successfully.400Workspace context missing or invalid.401Missing or invalid HMAC signature, expired timestamp, or invalid Bearer token. Troubleshoot403The credential does not have access to this workspace or resource. Troubleshoot429Rate limit exceeded (100 requests per minute per clientId). Retry after the Retry-After header. TroubleshootGET
https://api.getcount.com/partners/workspace-statsRequest
import crypto from 'node:crypto';
const BASE_URL = 'https://api.getcount.com';
const CLIENT_ID = process.env.COUNT_CLIENT_ID;
const CLIENT_SECRET = process.env.COUNT_CLIENT_SECRET;
const ACCESS_TOKEN = process.env.COUNT_ACCESS_TOKEN;
const method = 'GET';
const signingPath = '/workspace-stats';
const timestamp = Math.floor(Date.now() / 1000).toString();
const bodyString = '';
const bodyHash = '';
const baseString = `${method}:${signingPath}:${timestamp}:${bodyHash}`;
const signature = crypto.createHmac('sha256', CLIENT_SECRET).update(baseString).digest('hex');
const response = await fetch(`${BASE_URL}/partners/workspace-stats`, {
method,
headers: {
'x-client-id': CLIENT_ID,
'x-timestamp': timestamp,
'x-signature': signature,
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
});
console.log(await response.json());Response · 200
{
"status": "success",
"message": "Success on retrieving workspace stats",
"data": {
"workspaceStats": {
"workspace": {
"uuid": "ws-uuid-example-0000-4000-8000-000000000001",
"name": "Acme Workspace",
"currency": "USD",
"country": "US",
"industry": "Professional Services",
"fiscalYearMonth": 1,
"dateFormat": "MM/dd/yyyy",
"cutoverDate": "2025-01-01",
"reportType": "accrual",
"bookClosedThroughDate": null
},
"cash": {
"currentCash": 42500.75,
"currentCashAsOf": "2026-06-21T08:00:00.000Z",
"bankAndCashAssetsTotal": 45000,
"creditCardLiabilitiesTotal": 2499.25,
"accountSourceCounts": {
"provider": 2,
"reconciliation": 1,
"book": 0,
"missing": 0
},
"staleProviderBalanceAccountCount": 0
},
"profitability": {
"currentMonth": {
"startDate": "2026-06-01",
"endDate": "2026-06-21",
"revenue": 18500,
"expenses": 11200,
"netProfit": 7300
},
"rollingThreeMonths": {
"averageMonthlyRevenue": 16000,
"averageMonthlyExpenses": 10500,
"averageMonthlyNetProfit": 5500,
"netBurn": 5500,
"runwayMonths": 7.7
}
},
"receivables": {
"totalOutstanding": 1085,
"currentDueTotal": 1085,
"overdueTotal": 0,
"overdueCount": 0,
"agingBuckets": {
"notYetOverdue": 1085,
"lessThanOrEqualTo30": 0,
"between31And60": 0,
"between61And90": 0,
"moreThan90": 0
},
"topCustomersOutstanding": [
{
"uuid": "dfa3219e-6af8-4c53-997a-037534f63a35",
"name": "Acme Corporation",
"outstanding": 1085
}
],
"daysSalesOutstanding": 12
},
"payables": {
"totalOutstanding": 3200,
"outstandingBills": 3200,
"dueInNext7Days": 800,
"dueInNext30Days": 2400,
"daysPayableOutstanding": 18
},
"taxObligations": {
"isTaxRegistered": false,
"taxRegime": null,
"totalObligation": 0,
"hasOverdueOrUpcomingFiling": false,
"obligations": [],
"lastFiledPeriodEnd": null
},
"connections": {
"totalCount": 2,
"activeCount": 2,
"disconnectedCount": 0,
"revokedCount": 0,
"accountsAwaitingReauthCount": 0,
"staleConnectionCount24h": 0,
"oldestLastSyncAt": "2026-06-21T06:30:00.000Z",
"byProvider": {
"plaid": 1,
"akahu": 1
}
},
"asOf": {
"computedAt": "2026-06-21T12:00:00.000Z",
"cacheTtlSeconds": 300,
"cashAsOf": "2026-06-21T08:00:00.000Z",
"currency": "USD",
"fromCache": false
}
}
}
}