GET /v2/metrics returns financial figures one row per concept per period, each with where it came from. A company’s figures arrive when it publishes a report from QuickBooks or NetSuite, or through POST /v2/metrics, which writes a period of self-reported figures for a company you administer. These routes aren’t in the generated API reference yet, so this page is their reference.
Where the data comes from
provenance.source |
What it is | Who can read it |
|---|---|---|
sec-edgar |
Figures from public SEC filings | Any authenticated caller |
quickbooks |
Figures from a published report pulled from the company’s QuickBooks | Limited |
netsuite |
Figures from a published report pulled from the company’s NetSuite | Limited |
manual |
Figures written through POST /v2/metrics |
Limited |
provenance.sourceName is the name to show a reader: SEC EDGAR, QuickBooks, NetSuite or Entered directly.
Sureshake records and shows where a figure came from. It does not vouch that a reported figure is true. provenance.selfReported is true for any figure that is the company’s own word, which means a manual row and a quickbooks or netsuite row. Figures pulled from an accounting system are still the company’s own books: nobody has audited or reviewed them, and assurance stays unaudited. A caller can’t set either field.
List metrics
curl -sS --get https://api.sureshake.com/v2/metrics \
-H "Authorization: Bearer $SURESHAKE_TOKEN" \
--data-urlencode "entityId=$SURESHAKE_COMPANY_ID" \
--data-urlencode "statement=income_statement" \
--data-urlencode "from=2025-01-01"Auth: an API key with Read permission, a firm token with metrics:read, or a session.
| Parameter | Notes |
|---|---|
entityId |
A company’s ID. Repeat it for up to 50 companies. Without it, you page through everything you can read |
concept |
A concept name, such as revenue. Repeat it for up to 50 |
statement |
income_statement, balance_sheet, cash_flow_statement or financial_supplement |
fiscalPeriod |
A period label, such as FY, Q3 or CY. See how periods are labelled |
from, to |
Inclusive bounds on the period’s end date, as YYYY-MM-DD |
updatedSince |
Only periods updated at or after this time, as an ISO 8601 date and time. See incremental sync |
cursor |
meta.nextCursor from the previous page |
limit |
1 to 500, default 100 |
Any other parameter returns 400.
{
"data": [
{
"entityId": "e04d5b8b-1ee3-47f9-b8bf-3e6318115d3a",
"statement": "income_statement",
"concept": "revenue",
"value": "1250000000",
"currency": "USD",
"fiscalYear": 2025,
"fiscalPeriod": "FY",
"periodStart": "2025-01-01",
"periodEnd": "2025-12-31",
"updatedAt": "2026-11-07T02:22:22.158Z",
"provenance": {
"source": "sec-edgar",
"sourceName": "SEC EDGAR",
"periodBasis": "fiscal",
"assurance": "unaudited",
"sourceRank": 80,
"contentSha256": "5f2c1a...",
"adapter": "sec-edgar-canonical",
"sourceUrl": "https://www.sec.gov/Archives/...",
"accessionNumber": "0000000000-26-000001",
"selfReported": false,
"otherSources": [],
"calculated": false,
"derivation": null
}
}
],
"meta": {
"limit": 100,
"hasMore": true,
"nextCursor": "WyJlMDRkNWI4Yi0xZWUzLTQ3Zjk..."
}
}value is always a decimal string, so nothing is rounded on the way to you. Parse it with a decimal type rather than a float.
concept is an ID from GET /v2/sfrs/concepts, which needs no credential and lists each concept’s definition. A line the standard has no concept for keeps its statement line name, for example ebitda, totalDebt or costOfGoodsSold.
periodStart and periodEnd give the time that figure covers, and figures in one period can differ. In an SEC 10-Q, income statement figures cover the quarter, while cash flow figures run from the start of the fiscal year. So a Q3 cash flow figure covers nine months, and adding Q1, Q2 and Q3 double counts. A balance sheet figure is a point in time, so its periodStart is null.
Figures Sureshake calculated
A sec-edgar row normally holds a figure the company filed. Three lines aren’t filed, so Sureshake works them out from lines that are. Those rows have provenance.calculated set to true, and provenance.derivation lists the concepts the figure came from. Every other row has calculated set to false and derivation set to null.
concept |
How it’s calculated |
|---|---|
ebitda |
operatingIncome plus depreciationAmortization, taken as a positive amount. Only when both cover the same period. |
totalDebt |
shortTermDebt plus longTermDebt. If the company filed only one, it’s that one, and derivation lists only that one. |
netCashChange |
netCashFromOperating plus netCashFromInvesting plus netCashFromFinancing. Exchange rate effects aren’t included, so this can differ from the change in cash the company filed. |
"provenance": {
"source": "sec-edgar",
"calculated": true,
"derivation": [
{ "concept": "operatingIncome", "weight": 1 },
{ "concept": "depreciationAmortization", "weight": 1 }
]
}provenance.accessionNumber and sourceUrl on a calculated row point at the filing that holds the lines it came from, not at a filed ebitda.
A manual row is never marked. It holds the writer’s own figure, so selfReported is the field to read. These three lines aren’t concepts, so POST /v2/metrics doesn’t accept them.
Figures from a connected accounting system
A quickbooks or netsuite row comes from a report the company published, and a figure holds exactly what the system states. Nothing is converted through a float or rounded. QuickBooks states each total, and the row keeps its digits. NetSuite states account balances, so a total is those balances added up exactly. Two NetSuite lines are worked out from other lines and are marked calculated: operatingIncome (revenue less costOfRevenue less operatingExpenses) and netCashChange.
A line the system doesn’t state has no row, and is never a zero. Neither system states ebitda or totalDebt, for example, and a NetSuite company’s equity accounts count as totalEquity only when the balance sheet ties out to them. A total QuickBooks prints with an empty amount has no row either.
A NetSuite report reaches GET /v2/metrics only from an account with one subsidiary. NetSuite’s reports here don’t consolidate, and a period has one row, so an account with several subsidiaries publishes its report but writes no figures.
How a connected system’s period is labelled
A report covers a range of dates, and a figure is only labelled with a fiscal period that something states. That’s QuickBooks’ fiscal year setting, NetSuite’s accounting periods, the fiscal year the company gave Sureshake, or its SEC record. provenance.periodBasis says what a label rests on.
periodBasis |
fiscalPeriod |
fiscalYear |
When |
|---|---|---|---|
fiscal |
FY, Q1 to Q4 |
The year the fiscal year ends | The range matches the company’s known fiscal calendar |
calendar |
CY, CQ1 to CQ4 |
null |
A calendar year or quarter, when no fiscal calendar is known or the range doesn’t match it |
dates |
P9M, P45D |
null |
Any other range, named by its length |
Always use periodStart and periodEnd for the dates. A CY row and an FY row are separate periods, even when they end on the same day.
A company’s later report of the same period replaces the row. If it’s withdrawn, deleted or archived, its figures leave GET /v2/metrics, and the newest earlier report of that period holds it again if there is one. A metric.updated event fires when a period’s figures change this way, including when they’re removed. Publishing the same figures again changes nothing and sends nothing.
When two sources cover the same period
You get one source per period: the readable one with the highest sourceRank. Other readable sources for that period appear in provenance.otherSources. A source you can’t read neither wins a period nor shows there. sec-edgar has rank 80, quickbooks and netsuite have rank 60, and manual has rank 40. So a filing wins over a connected system, which wins over a manual write for the same period. The losing row stays stored, and shows again if the winner is ever removed.
Who can read what
Rows you can’t read are left out of the response, not refused, so an empty data can mean there are no figures or that you can’t see them.
| Caller | sec-edgar |
Other sources |
|---|---|---|
| API key or session | Any company | Companies you own or are a current team member of, and companies whose follow access for you is All reports, directly, through a company you belong to or through your organization |
| Firm token | Any company | Its own firm, and companies whose follow access for that firm is All reports. Never what its owner could read personally |
Follow access limited to selected reports does not open metrics.
Sync what changed
Pass the newest updatedAt you have seen as updatedSince, and follow meta.nextCursor while meta.hasMore is true. Rows arrive ordered by company and period, not by time, so track the newest updatedAt across all pages.
updatedSince is inclusive, and a change to any line in a period returns the whole period. Store rows with an upsert, keyed on entityId, statement, concept, fiscalPeriod and periodEnd. The cookbook has a working loop.
Write a self-reported period
curl -sS "https://api.sureshake.com/v2/metrics?on_conflict=skip" \
-H "Authorization: Bearer $SURESHAKE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"entityId": "'"$SURESHAKE_ENTITY_ID"'",
"fiscalYear": 2026,
"fiscalPeriod": "Q3",
"periodStart": "2026-07-01",
"periodEnd": "2026-09-30",
"currency": "USD",
"values": [
{ "statement": "income_statement", "concept": "revenue", "value": "1250000.00" },
{ "statement": "income_statement", "concept": "netIncome", "value": "85000.00" }
]
}'Auth: an API key with Write permission or a session, for a company you own or are an admin of; or a firm token with metrics:write, for its own firm only.
| Field | Notes |
|---|---|
entityId |
Required |
fiscalPeriod |
Required. FY, Q1, Q2, Q3 or Q4 |
periodEnd |
Required, as YYYY-MM-DD. Identifies the period, with fiscalPeriod |
fiscalYear, periodStart |
Optional |
currency |
ISO 4217 code. Default USD |
values |
1 to 200 lines. value is a decimal string, and concept must be a numeric concept from GET /v2/sfrs/concepts that belongs to that statement. A line with no concept, such as costOfGoodsSold, can’t be written |
on_conflict is a query parameter:
overwrite, the default, replaces all of the manual values for that period. A line you leave out is gone.skipleaves an existing manual period untouched. It compares only whether one exists, not its values.
{
"data": {
"entityId": "f8300536-84d0-4f41-9aa7-e3c38a15ae1a",
"source": "manual",
"fiscalPeriod": "Q3",
"periodEnd": "2026-09-30",
"contentSha256": "f7e5a0ced7783423fbb10cb8478128224d3bf405160b8061bfc38ede53ae72d3",
"outcome": "created"
}
}outcome |
Status | Meaning |
|---|---|---|
created |
201 |
A new manual period |
updated |
200 |
The manual period’s values changed |
unchanged |
200 |
The values were already the same |
skipped |
200 |
on_conflict=skip, and a manual period already existed |
Errors
| Status | error.code |
When |
|---|---|---|
| 400 | FST_ERR_VALIDATION |
A parameter or field is unknown or malformed. error.details.issues lists each problem |
| 400 | BAD_REQUEST |
Invalid cursor, an unknown concept, a concept that isn’t a line of that statement, or the same concept twice |
| 401 | UNAUTHORIZED |
No valid credential |
| 403 | FORBIDDEN |
The key or token lacks the permission or scope, you don’t administer that company, or a firm token named another firm |
| 429 | TOO_MANY_REQUESTS |
Over the limit: 120 per minute for GET, 60 per minute for POST, for each credential |
| 500 | INTERNAL_SERVER_ERROR |
An unexpected failure. Report it with the x-trace-id |