What customers ask for: customers and ARR per feature, category, New opportunity and the whole product
The main read for prioritising. Only grouped insights count. A customer is a company, else the contact's company, else the contact, else the record. Each customer counts once in each topic, and once on each feature, category, unplaced and New opportunity (a category covers its live features below), and once in product, the whole product's total (every page carries it); types likewise, ARR once per customer. ARR amounts are exact decimal strings in currency, the organization's reporting currency, converted with the stored rates of ratesAsOf; ARR in the currencies in unconverted is left out. noArr is true when none of the customers counted here has ARR in any currency: report "no ARR yet" and where ARR comes from (a CRM connection's ARR field, set_arr_field; or arr or mrr on send_feedback), not zero revenue. Trends and changes follow the product's reporting unit, unit (week, month or quarter: its Report by, or on auto the unit its volume calls for). periods are each trend unit's first day (weeks from Monday, UTC), the current, unfinished one last; trend counts customers per unit by the date feedback was given, a customer once a unit. window.latest is the last complete window (4 weeks, 3 months or 2 quarters) and window.before the one before (to is the day after). change holds their customers, each customer once a window however many of its units they gave feedback in; when both are under 5, people see the two numbers instead of a percent, so report them that way. trendByType and changeByType are the same for each insight type alone. meta.counting: feedback is still on its way into topics; meta.uncounted: some feedback is left out because it needs attention; meta.hasRecords: any record exists; meta.countingRecords and meta.uncountedRecords: how many records are still on their way, and how many are left out (a record counts in one of them at most, left out first). withoutStatus: how many distinct counted customers have no customer status, in all and per type. Each total's changeState is its change state for type. With change, minCustomers or minArr, only matching features are listed (categories while they hold one, with full totals); product, unplaced and newOpportunity keep theirs and newOpportunityMatches says if New opportunity matches. Drill into a feature with list_feature_topics.
AuthorizationBearer <token>An OAuth access token for the person who allowed your tool: register a client, then the authorization code flow with PKCE (S256). Send it as Authorization: Bearer <token> on every route that needs a signed-in person. Calls with a token are limited per person, across all their apps, to 120 calls a minute and 10,000 a UTC day; calls that start AI runs or knowledge base reads (creating an organization, starting a knowledge base read, rebuilding categories, retrying topics or rechecking) also to 10 a minute and 200 a UTC day. Over a limit a call answers 429 rate_limited with Retry-After and details.retryAfter in seconds, and changes nothing.
productId*stringA Heuristic id: a uuid, in any case (it is read in lower case). Anything else answers 400 validation_error.
uuidcustomerStatus?stringOnly customers with this status count: customer or prospect. Left out: customers and prospects, and customers with no status. A customer's status is taken the way its ARR is: a company's own (the record's, else its contact's company); a contact counted alone, the status of their most recent record that carried one; a record counted alone, its own. withoutStatus says how many counted customers have no status, whatever this is.
"customer""prospect"period?stringOnly feedback given in this period counts, by the date it was given: 30d and 90d are the last 30 or 90 days, 12m the last 12 calendar months (UTC), all measured back from the moment of the request; feedback dated later counts too. Left out: all time. Counts, ARR, insights, which topics are listed and withoutStatus follow it; trend, trendByType, change, changeByType and meta do not (they keep the reporting unit's own windows).
"30d""90d""12m"sort?stringtree (the default): categories and features in the hierarchy's order, as get_hierarchy pages them. customers or arr: the features only, ranked most first by counts or arr (total, or type's) under the filters given, ties by title. change: the features only, fastest growing first: by the rise in change (or type's), then the percent (new ones first), then title. A ranking moves as feedback arrives, so later pages can repeat or skip a feature.
"tree""tree""customers""arr""change"categoryId?stringA Heuristic id: a uuid, in any case (it is read in lower case). Anything else answers 400 validation_error.
uuidtype?stringThe insight type whose numbers changeState, the filters and sort read. Left out: all types.
"feature_request""bug""praise""complaint""question"change?stringOnly features in any of these changeStates, lower case and comma separated: growing, new, shrinking, flat (growing,new).
minCustomers?|Only features with at least this many customers. 0 or left out: off.
0 <= value <= 9007199254740991minArr?|Only features with at least this ARR, in whole units of currency. 0 or left out: off.
0 <= value <= 9007199254740991limit?integerHow many items a page holds, 1 to 1000 (50 when left out). A larger page may be cut off by your client.
1 <= value <= 1000cursor?stringThe previous page's meta.nextCursor, with the same sort, categoryId and filters; left out: the first page. In tree order with filters, a changed match refuses it (409): start again.
The counts
application/json- response
data*meta*curl -X GET 'https://staging.heuristic.app/v1/products/497f6eca-6276-4993-bfeb-53cbbbba6f08/feedback-counts' \ -H 'Authorization: Bearer <access token>'{ "data": { "currency": "string", "ratesAsOf": "string", "unconverted": [ "string" ], "noArr": true, "unit": "week", "periods": [ "string" ], "window": { "latest": { "from": "string", "to": "string" }, "before": { "from": "string", "to": "string" } }, "features": [ { "counts": { "total": 0, "feature_request": 0, "bug": 0, "praise": 0, "complaint": 0, "question": 0 }, "arr": { "total": "string", "feature_request": "string", "bug": "string", "praise": "string", "complaint": "string", "question": "string" }, "trend": [ 0 ], "trendByType": { "feature_request": [ 0 ], "bug": [ 0 ], "praise": [ 0 ], "complaint": [ 0 ], "question": [ 0 ] }, "change": { "before": 0, "latest": 0 }, "changeByType": { "feature_request": { "before": 0, "latest": 0 }, "bug": { "before": 0, "latest": 0 }, "praise": { "before": 0, "latest": 0 }, "complaint": { "before": 0, "latest": 0 }, "question": { "before": 0, "latest": 0 } }, "topics": 0, "changeState": "growing", "id": "string", "title": "string" } ], "categories": [ { "counts": { "total": 0, "feature_request": 0, "bug": 0, "praise": 0, "complaint": 0, "question": 0 }, "arr": { "total": "string", "feature_request": "string", "bug": "string", "praise": "string", "complaint": "string", "question": "string" }, "trend": [ 0 ], "trendByType": { "feature_request": [ 0 ], "bug": [ 0 ], "praise": [ 0 ], "complaint": [ 0 ], "question": [ 0 ] }, "change": { "before": 0, "latest": 0 }, "changeByType": { "feature_request": { "before": 0, "latest": 0 }, "bug": { "before": 0, "latest": 0 }, "praise": { "before": 0, "latest": 0 }, "complaint": { "before": 0, "latest": 0 }, "question": { "before": 0, "latest": 0 } }, "topics": 0, "changeState": "growing", "id": "string", "title": "string" } ], "unplaced": { "counts": { "total": 0, "feature_request": 0, "bug": 0, "praise": 0, "complaint": 0, "question": 0 }, "arr": { "total": "string", "feature_request": "string", "bug": "string", "praise": "string", "complaint": "string", "question": "string" }, "trend": [ 0 ], "trendByType": { "feature_request": [ 0 ], "bug": [ 0 ], "praise": [ 0 ], "complaint": [ 0 ], "question": [ 0 ] }, "change": { "before": 0, "latest": 0 }, "changeByType": { "feature_request": { "before": 0, "latest": 0 }, "bug": { "before": 0, "latest": 0 }, "praise": { "before": 0, "latest": 0 }, "complaint": { "before": 0, "latest": 0 }, "question": { "before": 0, "latest": 0 } }, "topics": 0, "changeState": "growing" }, "newOpportunity": { "counts": { "total": 0, "feature_request": 0, "bug": 0, "praise": 0, "complaint": 0, "question": 0 }, "arr": { "total": "string", "feature_request": "string", "bug": "string", "praise": "string", "complaint": "string", "question": "string" }, "trend": [ 0 ], "trendByType": { "feature_request": [ 0 ], "bug": [ 0 ], "praise": [ 0 ], "complaint": [ 0 ], "question": [ 0 ] }, "change": { "before": 0, "latest": 0 }, "changeByType": { "feature_request": { "before": 0, "latest": 0 }, "bug": { "before": 0, "latest": 0 }, "praise": { "before": 0, "latest": 0 }, "complaint": { "before": 0, "latest": 0 }, "question": { "before": 0, "latest": 0 } }, "topics": 0, "changeState": "growing" }, "product": { "counts": { "total": 0, "feature_request": 0, "bug": 0, "praise": 0, "complaint": 0, "question": 0 }, "arr": { "total": "string", "feature_request": "string", "bug": "string", "praise": "string", "complaint": "string", "question": "string" }, "trend": [ 0 ], "trendByType": { "feature_request": [ 0 ], "bug": [ 0 ], "praise": [ 0 ], "complaint": [ 0 ], "question": [ 0 ] }, "change": { "before": 0, "latest": 0 }, "changeByType": { "feature_request": { "before": 0, "latest": 0 }, "bug": { "before": 0, "latest": 0 }, "praise": { "before": 0, "latest": 0 }, "complaint": { "before": 0, "latest": 0 }, "question": { "before": 0, "latest": 0 } }, "topics": 0, "changeState": "growing" }, "withoutStatus": { "total": 0, "feature_request": 0, "bug": 0, "praise": 0, "complaint": 0, "question": 0 }, "version": "string", "newOpportunityMatches": true }, "meta": { "counting": true, "uncounted": true, "hasRecords": true, "countingRecords": 0, "uncountedRecords": 0, "nextCursor": "string" }}