curl --request GET \
--url https://api.statisfy.com/v1/activities/{activity_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.statisfy.com/v1/activities/{activity_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.statisfy.com/v1/activities/{activity_id}', 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.statisfy.com/v1/activities/{activity_id}",
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.statisfy.com/v1/activities/{activity_id}"
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.statisfy.com/v1/activities/{activity_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/activities/{activity_id}")
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>",
"summary": {
"competitors": [
"<string>"
],
"detailed_summary": [
"<string>"
],
"issues": [
"<string>"
],
"key_takeaways": [
"<string>"
],
"one_liner": "<string>",
"outcomes": [
"<string>"
],
"product_adoption_usage": [
"<string>"
],
"recap": [
{
"text": "<string>",
"topic": "<string>"
}
],
"relationships": [
"<string>"
],
"renewal_status": [
"<string>"
],
"stage": "<string>"
},
"accounts": [
"<string>"
],
"campaign": {
"id": "<string>",
"kind": "email",
"name": "<string>",
"recipient_count": 123
},
"date": "<string>",
"edited": [
"<string>"
],
"meeting_id": "<string>",
"one_liner": "<string>",
"participants": [
{
"id": "<string>",
"email": "<string>",
"name": "<string>",
"type": "user"
}
],
"pushed": {
"channel": "email",
"outcome": {
"attended": true,
"clicked_at": "<string>",
"duration_seconds": 123,
"opened_at": "<string>",
"replied_at": "<string>"
},
"direction": "inbound",
"external_id": "<string>",
"linkedin_url": "<string>",
"sent_by": "<string>",
"system": "<string>",
"url": "<string>"
},
"sentiment": "negative",
"sentiment_reason": "<string>",
"source": "<string>",
"survey": {
"category": "promoter",
"kind": "nps",
"max_rating": 123,
"name": "<string>",
"rating": 123
},
"ticket": {
"case_id": "<string>",
"opened_at": "<string>",
"priority": "<string>",
"status": "<string>",
"updated_at": "<string>"
},
"title": "<string>",
"type": "email"
}Get one activity
Returns one activity with the AI’s summary of it (one-liner, key takeaways, recap, outcomes, issues and the rest), why its sentiment is what it is, which of those fields a person changed in the app, and the facts of its kind: ticket (case number, status, priority, when it was opened and last changed), survey (a response’s score: kind, rating, scale, NPS category), campaign (the campaign a campaign send came from), pushed (what the system that pushed it said: its name, the channel, direction, sender and outcome). Each is null where it doesn’t apply. What was written in it is GET /v1/activities//content. An activity is anything on an account’s timeline in the app: an email thread, a meeting (from any recorder), a Slack or Teams thread, a support ticket, a survey response, a Salesforce Chatter thread, a note logged in the app, a campaign’s send, a LinkedIn conversation, a marketing event, or one another system pushed. accounts are the accounts whose timeline shows it; participants the people linked to it, each with their type. sentiment and one_liner are the AI’s, or a person’s where they changed it in the app. meeting_id is set on a meeting Statisfy’s notetaker recorded.
curl --request GET \
--url https://api.statisfy.com/v1/activities/{activity_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.statisfy.com/v1/activities/{activity_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.statisfy.com/v1/activities/{activity_id}', 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.statisfy.com/v1/activities/{activity_id}",
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.statisfy.com/v1/activities/{activity_id}"
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.statisfy.com/v1/activities/{activity_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/activities/{activity_id}")
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>",
"summary": {
"competitors": [
"<string>"
],
"detailed_summary": [
"<string>"
],
"issues": [
"<string>"
],
"key_takeaways": [
"<string>"
],
"one_liner": "<string>",
"outcomes": [
"<string>"
],
"product_adoption_usage": [
"<string>"
],
"recap": [
{
"text": "<string>",
"topic": "<string>"
}
],
"relationships": [
"<string>"
],
"renewal_status": [
"<string>"
],
"stage": "<string>"
},
"accounts": [
"<string>"
],
"campaign": {
"id": "<string>",
"kind": "email",
"name": "<string>",
"recipient_count": 123
},
"date": "<string>",
"edited": [
"<string>"
],
"meeting_id": "<string>",
"one_liner": "<string>",
"participants": [
{
"id": "<string>",
"email": "<string>",
"name": "<string>",
"type": "user"
}
],
"pushed": {
"channel": "email",
"outcome": {
"attended": true,
"clicked_at": "<string>",
"duration_seconds": 123,
"opened_at": "<string>",
"replied_at": "<string>"
},
"direction": "inbound",
"external_id": "<string>",
"linkedin_url": "<string>",
"sent_by": "<string>",
"system": "<string>",
"url": "<string>"
},
"sentiment": "negative",
"sentiment_reason": "<string>",
"source": "<string>",
"survey": {
"category": "promoter",
"kind": "nps",
"max_rating": 123,
"name": "<string>",
"rating": 123
},
"ticket": {
"case_id": "<string>",
"opened_at": "<string>",
"priority": "<string>",
"status": "<string>",
"updated_at": "<string>"
},
"title": "<string>",
"type": "email"
}Authorizations
An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.
Response
Successful Response
email, meeting, slack, teams, ticket (a support ticket), survey, chatter (Salesforce Chatter), note (logged in the app), linkedin (a LinkedIn conversation) or marketing_event (a form fill, web visit, webinar or event)
email, meeting, slack, teams, ticket, survey, chatter, note, linkedin, marketing_event Was this page helpful?