Skip to Content
Heuristic documentation

One topic: the feature (or New opportunity) it reads under now, and its feedback values

GET
/v1/products/{productId}/topics/{topicId}

A merged topic answers the topic it was merged into. Its counts follow get_feedback_counts' rule for this topic alone, narrowed by customerStatus and period when given; trend and change keep their windows. unit, periods, window, trend and change as in get_feedback_counts. 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. Read its insights with list_topic_insights. 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
topicId*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 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.

Value in"customer""prospect"
period?string

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

Value in"30d""90d""12m"

Response Body

The topic

application/json
  1. response
data*
meta*
Example Request
curl -X GET 'https://staging.heuristic.app/v1/products/497f6eca-6276-4993-bfeb-53cbbbba6f08/topics/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Authorization: Bearer <access token>'
Example Response
{  "data": {    "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      }    },    "id": "string",    "name": "string",    "insights": 0,    "edited": true,    "insightsByType": {      "feature_request": 0,      "bug": 0,      "praise": 0,      "complaint": 0,      "question": 0    },    "latestAt": "string",    "scope": {      "feature": {        "id": "string",        "title": "string",        "description": "string",        "path": [          {            "id": "string",            "title": "string"          }        ]      }    },    "currency": "string",    "noArr": true,    "unit": "week",    "periods": [      "string"    ],    "window": {      "latest": {        "from": "string",        "to": "string"      },      "before": {        "from": "string",        "to": "string"      }    },    "withoutStatus": {      "total": 0,      "feature_request": 0,      "bug": 0,      "praise": 0,      "complaint": 0,      "question": 0    }  },  "meta": {    "counting": true,    "uncounted": true,    "hasRecords": true,    "countingRecords": 0,    "uncountedRecords": 0,    "feedbackVersion": "string"  }}