curl --request GET \
--url https://api.statisfy.com/v1/conversations/{conversation_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.statisfy.com/v1/conversations/{conversation_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/conversations/{conversation_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/conversations/{conversation_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/conversations/{conversation_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/conversations/{conversation_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/conversations/{conversation_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{
"activity_id": "<string>",
"ai": {
"participated": true,
"closed_by": "ai_judged",
"resolution": "resolved"
},
"created_at": "<string>",
"id": "<string>",
"updated_at": "<string>",
"account_id": "<string>",
"agent": {
"id": "<string>",
"name": "<string>"
},
"assignee": {
"id": "<string>",
"name": "<string>",
"type": "user"
},
"channel": "portal",
"close_reason": "answered",
"closed_at": "<string>",
"customer_told_at": "<string>",
"engineering_issue": {
"key": "<string>",
"state": "open",
"synced_at": "<string>",
"title": "<string>",
"tracker": "linear",
"url": "<string>"
},
"first_reply_at": "<string>",
"kind": "customer_success",
"last_message_at": "<string>",
"outcome": "knowledge",
"priority": "normal",
"reopen_count": 0,
"started_by": "customer",
"status": "<string>",
"status_group": "not_started",
"subject": "<string>",
"tags": [
{
"id": 123,
"name": "<string>"
}
]
}Get one conversation
Returns one conversation. Its thread’s messages are GET /v1/conversations//messages, its internal notes GET /v1/conversations//notes. A conversation is a thread an AI in the workspace handles, or could: an email, Slack or Teams thread, or a chat in the portal or the in-app widget. kind is support (a support AI’s) or customer_success (any other AI’s), null when no AI covers the thread. Which conversations a workspace reads follows its plan: with digital workers, every conversation (threads no AI covers included); with the support assistant alone, the support ones. status is the workspace’s own status and status_group its group. ai says whether an AI wrote in it and, once closed, how it was resolved and why it closed; nothing records a customer confirming a resolution. engineering_issue is the issue it was handed to.
curl --request GET \
--url https://api.statisfy.com/v1/conversations/{conversation_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.statisfy.com/v1/conversations/{conversation_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/conversations/{conversation_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/conversations/{conversation_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/conversations/{conversation_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/conversations/{conversation_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/conversations/{conversation_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{
"activity_id": "<string>",
"ai": {
"participated": true,
"closed_by": "ai_judged",
"resolution": "resolved"
},
"created_at": "<string>",
"id": "<string>",
"updated_at": "<string>",
"account_id": "<string>",
"agent": {
"id": "<string>",
"name": "<string>"
},
"assignee": {
"id": "<string>",
"name": "<string>",
"type": "user"
},
"channel": "portal",
"close_reason": "answered",
"closed_at": "<string>",
"customer_told_at": "<string>",
"engineering_issue": {
"key": "<string>",
"state": "open",
"synced_at": "<string>",
"title": "<string>",
"tracker": "linear",
"url": "<string>"
},
"first_reply_at": "<string>",
"kind": "customer_success",
"last_message_at": "<string>",
"outcome": "knowledge",
"priority": "normal",
"reopen_count": 0,
"started_by": "customer",
"status": "<string>",
"status_group": "not_started",
"subject": "<string>",
"tags": [
{
"id": 123,
"name": "<string>"
}
]
}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
Was this page helpful?