Documentation
Reports
reports.dashboard
REST
ShippingPOST /api/v1/reports/dashboardMCP tool
Livereports.dashboardExposed on: REST API · Shop MCP server · Claude connector · Dash (in-app copilot) · Zapier. Part of the Reports domain.
Operating contract
THE MORNING READ. What arrived today, what is outstanding, and — the half that actually needs somebody — which customers are waiting on a reply right now.
today.collected is money that ARRIVED today on the shop's own wall clock, not the server's. A shop in Calgary opening at eight is hours into UTC's tomorrow for part of the year, and a naive 24-hour window shows them yesterday afternoon's takings as today's.
today.unanswered_threads IS THE ONLY ACTIONABLE THING ON THIS RESPONSE. Each one is a customer who messaged more than two hours ago and has had no reply, with how long they have waited. Everything else here is a fact about the business; this is a list of people. Lead with it.
outstanding and open_quotes are LIFETIME figures, not today's. They are useful context and they read identically whether today went well or badly — do not present them as news.
imported_open_quotes is estimates carried in by a data import. They are real and searchable and they are NOT this week's pipeline: a file with no expiry column lands thousands of long-dead estimates, and folding them into the open-quote figure greets a shop with a pipeline nobody is chasing.
collected_trend is fourteen days of daily net collections, oldest first. A single number says where the shop is; this says which way it is going.
This mirrors /dashboard, which guards requireManager() — so unlike the rest of this domain it declares the admin key rather than reports.access.
One snapshot, measured at one instant (as_of), so nothing is truncated.
Who may call it
- Permission
shop.manageThe caller must hold shop.manage at the ACT level. A read-only dashboard grant on the same section is refused.- Plan
- Every planNo plan gate. Available on every Service VIN plan.
- Retries
naturalNaturally idempotent — running it twice leaves the same world as running it once. A retrying integration needs no key.- Rate class
expensiveCounted against the expensive budget — a model call, a document render or a fan-out scan.
Input
This capability takes no arguments.
Output
| Field | Type | Description |
|---|---|---|
| as_of | string | — |
| today_key | string | — |
| currency | string | — |
| today | object | — |
| today.collected | number | — |
| today.payment_count | number | — |
| today.unread_threads | number | — |
| today.unanswered_threads | object[] | — |
| today.unanswered_threads[].conversation_id | string | — |
| today.unanswered_threads[].contact | string | — |
| today.unanswered_threads[].waiting_minutes | number | — |
| open_quotes | object | — |
| open_quotes.count | number | — |
| open_quotes.value | number | — |
| imported_open_quotes | object | — |
| imported_open_quotes.count | number | — |
| imported_open_quotes.value | number | — |
| outstanding | object | — |
| outstanding.count | number | — |
| outstanding.amount | number | — |
| accepted_margin | object | — |
| accepted_margin.amount | number | — |
| accepted_margin.avg_pct | number | null | — |
| accepted_margin.count | number | — |
| collected_trend | number[] | — |
Examples
Built from this capability's own schema — required fields and the ones carrying a default, and nothing invented. Paste one and it validates.
export SERVICEVIN_API_KEY=svk_live_…
curl -X POST https://www.servicevin.com/api/v1/reports/dashboard \
-H "Authorization: Bearer $SERVICEVIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'const res = await fetch("https://www.servicevin.com/api/v1/reports/dashboard", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SERVICEVIN_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({}),
});
// Success and failure are both envelopes. Switch on error.code, never
// on error.message — the codes are stable, the messages are for people.
const payload = await res.json();
if (!res.ok) throw new Error(payload.error.code);
const data = payload.data;import os, requests
res = requests.post(
"https://www.servicevin.com/api/v1/reports/dashboard",
headers={"Authorization": f"Bearer {os.environ['SERVICEVIN_API_KEY']}"},
json={},
timeout=30,
)
payload = res.json()
if not res.ok:
raise RuntimeError(payload["error"]["code"])
data = payload["data"]{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "reports.dashboard",
"arguments": {}
}
}Refusals
The four gates run in this order on every surface, and the order is not arbitrary — see Authentication.
| Status | Code | When |
|---|---|---|
| 404 | not_found | The id is unknown, or the feature is not enabled for this account. Deliberately the same answer for both. |
| 403 | forbidden | This login does not hold shop.manage. |
| 422 | validation_error | An argument was wrong. The message names the field. |
| 429 | rate_limited | Too many expensive calls. Back off and retry. |
| 500 | internal_error | Something failed on our side. Nothing was changed. |