The customers behind a category's customers and ARR, from every feature below it
Who is behind the scope's number: each customer it counts once, with status, ARR, insights, topicCount, up to 5 topics and latestFeedbackAt (when given). kind: company; contact (no company, such as a free-mail address); or record (no company or contact; open it with get_source_record). meta.total and meta.arrTotal are the scope's customers and ARR under customerStatus, period and type, as in get_feedback_counts. arr null: no ARR, or its unconvertedCurrency can't be converted (say so, not zero); meta.noArr: report "no ARR yet", not zero revenue. Rankings can move between pages as feedback arrives. Use query to check one customer; there is no read of a customer across features. Every live feature at any depth below the category counts, each customer once (meta.featureId is null); a deleted category is not found. Send meta.feedbackVersion as expectedVersion with a feedback change planned from this read.
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.
uuidcategoryId*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: customer or prospect, taken as for get_feedback_counts. Left out: everyone, customers with no status too.
"customer""prospect"period?stringOnly feedback given in this period counts (30d, 90d, or 12m: the last 12 calendar months, UTC), as for get_feedback_counts; the customers, their insights, topics and latest date and meta.total and meta.arrTotal all follow it. Left out: all time.
"30d""90d""12m"type?stringOnly customers who gave this insight type here, with only those insights and topics. Left out: every type.
"feature_request""bug""praise""complaint""question"sentiment?stringOnly customers who gave feedback with this sentiment here, with only those insights and topics.
"positive""neutral""negative"source?stringOnly customers whose feedback came through this source (an id from list_topics' meta.sources), with only those insights and topics. A Heuristic id: a uuid, in any case (it is read in lower case). Anything else answers 400 validation_error.
uuidfrom?stringWith to: only feedback given from this UTC day (YYYY-MM-DD, inclusive) counts, as period narrows (not with period); copy a series entry's from and to to read that period.
to?stringWith from: the last UTC day (YYYY-MM-DD, inclusive) whose feedback counts; later feedback does not.
query?stringOnly customers whose name (a contact's also its email) contains this text, ignoring case, 1 to 200 characters; meta.total is unchanged.
1 <= length <= 200sort?stringinsights (default) or arr: most first; without ARR last.
"insights""insights""arr"limit?integerHow many customers a page holds, 1 to 50 (50 when left out).
1 <= value <= 50cursor?stringThe previous page's meta.nextCursor, with the same other inputs; left out: the first page.
One page of customers
application/json- response
data*array<>meta*curl -X GET 'https://staging.heuristic.app/v1/products/497f6eca-6276-4993-bfeb-53cbbbba6f08/categories/497f6eca-6276-4993-bfeb-53cbbbba6f08/customers' \ -H 'Authorization: Bearer <access token>'{ "data": [ { "kind": "company", "id": "string", "name": "string", "email": "string", "status": "customer", "arr": "string", "unconvertedCurrency": "string", "insights": 0, "topicCount": 0, "topics": [ { "id": "string", "name": "string" } ], "latestFeedbackAt": "string" } ], "meta": { "counting": true, "uncounted": true, "hasRecords": true, "countingRecords": 0, "uncountedRecords": 0, "featureId": "string", "total": 0, "arrTotal": "string", "currency": "string", "ratesAsOf": "string", "unconverted": [ "string" ], "noArr": true, "nextCursor": "string", "feedbackVersion": "string" }}