curl --request GET \
--url https://api.vistaly.com/v1/interviews/{interviewId}/insights \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vistaly.com/v1/interviews/{interviewId}/insights"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vistaly.com/v1/interviews/{interviewId}/insights', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vistaly.com/v1/interviews/{interviewId}/insights",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vistaly.com/v1/interviews/{interviewId}/insights"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vistaly.com/v1/interviews/{interviewId}/insights")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vistaly.com/v1/interviews/{interviewId}/insights")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"source": "<string>",
"cardIds": [
"<string>"
],
"customerUserIds": [
"<string>"
],
"interviewerUserIds": [
"<string>"
],
"insightCount": 123,
"processed": true,
"appUrl": "<string>",
"interviewees": [
{
"id": "<string>",
"name": "<string>",
"email": "<string>",
"company": {
"id": "<string>",
"name": "<string>",
"website": "<string>"
}
}
],
"interviewers": [
{
"id": "<string>",
"name": "<string>",
"email": "<string>"
}
],
"suggestedInsightCount": 123,
"insights": [
{
"id": "<string>",
"source": "notes",
"text": "<string>",
"cardIds": [
"<string>"
],
"quote": "<string>",
"note": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"transcriptRange": {
"startSegmentId": "<string>",
"endSegmentId": "<string>",
"startTime": 123,
"endTime": 123
},
"segments": [
{
"id": "<string>",
"speaker": "<string>",
"text": "<string>",
"speakerRole": "interviewer",
"startTime": 123,
"endTime": 123
}
],
"excerptUnavailable": true
}
],
"capturedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"sourceUrl": "<string>",
"textPreview": "<string>",
"transcriptType": "media"
}{
"message": "Bad request"
}{
"message": "Unauthorized"
}{
"message": "Forbidden"
}{
"message": "Internal server error"
}Get interview insights
Retrieve the insights captured on an interview, together with the interviewโs metadata. Each insight is a highlighted passage: source says whether it was taken from the notes or from the transcript, quote is the highlighted passage itself (the words to quote), text is the same content formatted (for a recorded interview, one timestamped, speaker-attributed line per segment), note is the annotation the author gave it, and cardIds are the cards it is linked to. Insights on a recorded interview also carry segments (each covered segment with its speaker and timings) and a transcriptRange; when such an insightโs excerpt can no longer be resolved it carries excerptUnavailable: true instead, with empty text and quote. AI suggestions the author has not accepted are not included.
curl --request GET \
--url https://api.vistaly.com/v1/interviews/{interviewId}/insights \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vistaly.com/v1/interviews/{interviewId}/insights"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vistaly.com/v1/interviews/{interviewId}/insights', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vistaly.com/v1/interviews/{interviewId}/insights",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vistaly.com/v1/interviews/{interviewId}/insights"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vistaly.com/v1/interviews/{interviewId}/insights")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vistaly.com/v1/interviews/{interviewId}/insights")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"source": "<string>",
"cardIds": [
"<string>"
],
"customerUserIds": [
"<string>"
],
"interviewerUserIds": [
"<string>"
],
"insightCount": 123,
"processed": true,
"appUrl": "<string>",
"interviewees": [
{
"id": "<string>",
"name": "<string>",
"email": "<string>",
"company": {
"id": "<string>",
"name": "<string>",
"website": "<string>"
}
}
],
"interviewers": [
{
"id": "<string>",
"name": "<string>",
"email": "<string>"
}
],
"suggestedInsightCount": 123,
"insights": [
{
"id": "<string>",
"source": "notes",
"text": "<string>",
"cardIds": [
"<string>"
],
"quote": "<string>",
"note": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"transcriptRange": {
"startSegmentId": "<string>",
"endSegmentId": "<string>",
"startTime": 123,
"endTime": 123
},
"segments": [
{
"id": "<string>",
"speaker": "<string>",
"text": "<string>",
"speakerRole": "interviewer",
"startTime": 123,
"endTime": 123
}
],
"excerptUnavailable": true
}
],
"capturedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"sourceUrl": "<string>",
"textPreview": "<string>",
"transcriptType": "media"
}{
"message": "Bad request"
}{
"message": "Unauthorized"
}{
"message": "Forbidden"
}{
"message": "Internal server error"
}Authorizations
Response
Interview insights retrieved successfully
An interview with its insights.
The number of accepted insights on the interview: what GET /v1/interviews/{interviewId}/insights returns. AI suggestions the author has not accepted are counted in suggestedInsightCount instead. Normally equal to the length of that endpoint's insights array, but it can exceed it in an edge case: the count is derived from every fragment of the interview document, while the endpoint reads highlights from the notes and transcript only. Do not assume the two are equal.