One source record with all its insights
The feedback text, who gave it, its status (received, processed or needs_attention, with failedStage) and each insight with its quote, type, sentiment, feature or New opportunity, and topic. meta.topics and meta.rechecking as in list_source_records; meta.customerCompany is the record's company, else its contact's current company. A record too long for one answer (about 15,000 tokens) comes in parts: part null is the whole record; else it says which characters of the text and which insights this answer holds (insights once the text is done), and part.next the textFrom and insightsFrom of the next part, null on the last. If meta.feedbackVersion changed between parts, read the record again from the start. whole answers it all at once. 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.
uuidrecordId*stringA Heuristic id: a uuid, in any case (it is read in lower case). Anything else answers 400 validation_error.
uuidtextFrom?integerWhere the part starts in the text, in characters as quoteStart counts; 0 when left out. At part.textLength or past it: insights only.
0 <= valueinsightsFrom?integerThe part's first insight, by its place among the record's insights (from 0); 0 when left out.
0 <= valuewhole?stringtrue: all of the record (from textFrom and insightsFrom) in one answer, however long; it can go over what fits.
"true""false"The record
application/json- response
data*meta*curl -X GET 'https://staging.heuristic.app/v1/products/497f6eca-6276-4993-bfeb-53cbbbba6f08/source-records/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Authorization: Bearer <access token>'{ "data": { "id": "string", "text": "string", "sourceUrl": "string", "saidAt": "string", "receivedAt": "string", "status": "received", "externalId": "string", "source": "string", "sentBy": { "app": { "clientId": "string", "name": "string" }, "person": { "id": "string", "name": "string" } }, "company": { "id": "string", "name": "string", "domain": "string", "customerStatus": "customer", "arr": { "amount": 0, "currency": "string" } }, "contact": { "id": "string", "name": "string", "email": "string" }, "customerStatus": "customer", "arr": { "amount": 0, "currency": "string" }, "customFields": { "property1": "string", "property2": "string" }, "insightsCapped": true, "waitingFor": "knowledge_base", "failedStage": "split", "failureReason": "too_long", "insights": [ { "id": "string", "statement": "string", "quote": "string", "quoteStart": 0, "type": "feature_request", "sentiment": "positive", "linked": true, "feature": { "id": "string", "title": "string" }, "topic": { "id": "string", "name": "string" }, "edited": true } ], "part": { "textFrom": 0, "textTo": 0, "textLength": 0, "insightsFrom": 0, "insightsTo": 0, "insightsTotal": 0, "next": { "textFrom": 0, "insightsFrom": 0 } } }, "meta": { "topics": "idle", "rechecking": "idle", "customerCompany": { "id": "string", "name": "string" }, "feedbackVersion": "string" }}