Skip to Content
Heuristic documentation

The customers behind the customers and ARR of the features not in a category yet

GET
/v1/products/{productId}/unplaced/customers

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 feature not in a category yet counts, each customer once. Send meta.feedbackVersion as expectedVersion with a feedback change planned from this read.

Authorization

headerAuthorizationBearer <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.

Path Parameters

productId*string

A Heuristic id: a uuid, in any case (it is read in lower case). Anything else answers 400 validation_error.

Formatuuid

Query Parameters

customerStatus?string

Only customers with this status: customer or prospect, taken as for get_feedback_counts. Left out: everyone, customers with no status too.

Value in"customer""prospect"
period?string

Only 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.

Value in"30d""90d""12m"
type?string

Only customers who gave this insight type here, with only those insights and topics. Left out: every type.

Value in"feature_request""bug""praise""complaint""question"
sentiment?string

Only customers who gave feedback with this sentiment here, with only those insights and topics.

Value in"positive""neutral""negative"
source?string

Only 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.

Formatuuid
from?string

With 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?string

With from: the last UTC day (YYYY-MM-DD, inclusive) whose feedback counts; later feedback does not.

query?string

Only customers whose name (a contact's also its email) contains this text, ignoring case, 1 to 200 characters; meta.total is unchanged.

Length1 <= length <= 200
sort?string

insights (default) or arr: most first; without ARR last.

Default"insights"
Value in"insights""arr"
limit?integer

How many customers a page holds, 1 to 50 (50 when left out).

Range1 <= value <= 50
cursor?string

The previous page's meta.nextCursor, with the same other inputs; left out: the first page.

Response Body

One page of customers

application/json
  1. response
data*array<>
meta*
Example Request
curl -X GET 'https://staging.heuristic.app/v1/products/497f6eca-6276-4993-bfeb-53cbbbba6f08/unplaced/customers' \  -H 'Authorization: Bearer <access token>'
Example Response
{  "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"  }}