List a CRM object's insights
curl --request GET \
--url https://app.triplesession.com/api/public/v2/crm-objects/{type}/{crmObjectId}/insights \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.triplesession.com/api/public/v2/crm-objects/{type}/{crmObjectId}/insights"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.triplesession.com/api/public/v2/crm-objects/{type}/{crmObjectId}/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://app.triplesession.com/api/public/v2/crm-objects/{type}/{crmObjectId}/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://app.triplesession.com/api/public/v2/crm-objects/{type}/{crmObjectId}/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://app.triplesession.com/api/public/v2/crm-objects/{type}/{crmObjectId}/insights")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.triplesession.com/api/public/v2/crm-objects/{type}/{crmObjectId}/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{
"data": [
{
"key": "<string>",
"title": "<string>",
"status": "ready",
"updated_at": "2023-11-07T05:31:56Z",
"summary": "<string>",
"items": [
{
"text": "<string>",
"owner": "<string>",
"due": "<string>"
}
],
"people": [
{
"name": "<string>",
"email": "<string>",
"title": "<string>",
"role": "champion"
}
],
"source_counts": {
"calls": 123,
"emails": 123,
"notes": 123,
"crm_records": 123
}
}
]
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}CRM
List a CRM object's insights
Lists the AI insights stored for a CRM object: for a deal or company its summary, stakeholders, risks and next steps; for a contact its summary and projects. This never starts generation: status says whether an insight is ready, pending (being generated), stale (older than a day) or missing (never generated). Insights refresh when someone opens the object in Pulse. Leads have none. Counts against the lower CRM rate limit (20 requests a minute per API key, 40 per company). Only API keys with access to all workspaces can read CRM records, and the company needs Pulse turned on. Requires crm.read.
GET
/
crm-objects
/
{type}
/
{crmObjectId}
/
insights
List a CRM object's insights
curl --request GET \
--url https://app.triplesession.com/api/public/v2/crm-objects/{type}/{crmObjectId}/insights \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.triplesession.com/api/public/v2/crm-objects/{type}/{crmObjectId}/insights"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.triplesession.com/api/public/v2/crm-objects/{type}/{crmObjectId}/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://app.triplesession.com/api/public/v2/crm-objects/{type}/{crmObjectId}/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://app.triplesession.com/api/public/v2/crm-objects/{type}/{crmObjectId}/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://app.triplesession.com/api/public/v2/crm-objects/{type}/{crmObjectId}/insights")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.triplesession.com/api/public/v2/crm-objects/{type}/{crmObjectId}/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{
"data": [
{
"key": "<string>",
"title": "<string>",
"status": "ready",
"updated_at": "2023-11-07T05:31:56Z",
"summary": "<string>",
"items": [
{
"text": "<string>",
"owner": "<string>",
"due": "<string>"
}
],
"people": [
{
"name": "<string>",
"email": "<string>",
"title": "<string>",
"role": "champion"
}
],
"source_counts": {
"calls": 123,
"emails": 123,
"notes": 123,
"crm_records": 123
}
}
]
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}Authorizations
Path Parameters
Was this page helpful?

