List GI History
curl --request GET \
--url https://api.attention.tech/v2/gi/history \
--header 'Authorization: <api-key>'import requests
url = "https://api.attention.tech/v2/gi/history"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.attention.tech/v2/gi/history', 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.attention.tech/v2/gi/history",
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: <api-key>"
],
]);
$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.attention.tech/v2/gi/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
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.attention.tech/v2/gi/history")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.attention.tech/v2/gi/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"uuid": "hist_123",
"title": "Sales Team Analysis",
"results": [
{
"uuid": "res_456",
"synthesis": "Team performance analysis for Q1",
"prompt": "Analyze sales team performance",
"status": "FINISHED",
"items": [],
"conversationsUsed": [
"conv_789"
],
"emailsUsed": [
"email_123"
],
"type": "TEXT_WITH_SOURCES",
"result": {}
}
]
}
],
"links": {
"self": "https://api.attention.tech/v2/gi/history",
"related": "https://api.attention.tech/v2/gi/history/related"
},
"meta": {
"pageCount": 1,
"totalRecords": 1,
"pageNumber": 1,
"pageSize": 10
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}General Insights
List GI History
Retrieves the history of generalized insights for a specific user. This endpoint allows you to track and analyze the evolution of insights over time, with options to control the response format and pagination.
GET
/
gi
/
history
List GI History
curl --request GET \
--url https://api.attention.tech/v2/gi/history \
--header 'Authorization: <api-key>'import requests
url = "https://api.attention.tech/v2/gi/history"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.attention.tech/v2/gi/history', 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.attention.tech/v2/gi/history",
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: <api-key>"
],
]);
$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.attention.tech/v2/gi/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
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.attention.tech/v2/gi/history")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.attention.tech/v2/gi/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"uuid": "hist_123",
"title": "Sales Team Analysis",
"results": [
{
"uuid": "res_456",
"synthesis": "Team performance analysis for Q1",
"prompt": "Analyze sales team performance",
"status": "FINISHED",
"items": [],
"conversationsUsed": [
"conv_789"
],
"emailsUsed": [
"email_123"
],
"type": "TEXT_WITH_SOURCES",
"result": {}
}
]
}
],
"links": {
"self": "https://api.attention.tech/v2/gi/history",
"related": "https://api.attention.tech/v2/gi/history/related"
},
"meta": {
"pageCount": 1,
"totalRecords": 1,
"pageNumber": 1,
"pageSize": 10
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}Authorizations
Query Parameters
Unique identifier of the user whose insight history is being requested
When set to true, returns raw insight data without additional processing or enhancement
Maximum number of history entries to return
Number of entries to skip before starting to collect the result set
Response
Successfully retrieved the insight history
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Example:
{
"self": "https://api.attention.tech/v2/conversations/123",
"related": "https://api.attention.tech/v2/conversations/123/participants"
}
Show child attributes
Show child attributes
Example:
{
"pageCount": 5,
"totalRecords": 100,
"pageNumber": 1,
"pageSize": 20
}
Was this page helpful?
⌘I