Read the support dashboard
curl --request GET \
--url https://api.statisfy.com/v1/conversations/dashboard \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.statisfy.com/v1/conversations/dashboard"
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/dashboard', 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/dashboard",
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/dashboard"
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/dashboard")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/conversations/dashboard")
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{
"closed_by_reason": {},
"days": 123,
"first_reply_median_seconds": 123,
"needs_response": 123,
"needs_response_status_id": 123,
"open_gaps": 123,
"outcomes": {},
"overdue": 123,
"per_day": [
{
"day": "2023-12-25",
"questions": 123
}
],
"questions": 123,
"reopened": 123,
"resolved_without_person": 123,
"since": "2023-12-25",
"with_engineering": 123
}conversations
Read the support dashboard
The support dashboard, as the app shows it: what needs a response, is with engineering and is overdue now, then over the last days (7 or 30, today included, in the time zone tz) the volume of questions, day by day, how many the workers resolved without a person and how they closed, the first reply’s median, reopens and outcomes, and the open knowledge gaps. It counts support workers’ conversations. An unknown time zone is a 422; a role that sees only its own book gets a 403, since every count is the whole workspace’s.
GET
/
v1
/
conversations
/
dashboard
Read the support dashboard
curl --request GET \
--url https://api.statisfy.com/v1/conversations/dashboard \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.statisfy.com/v1/conversations/dashboard"
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/dashboard', 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/dashboard",
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/dashboard"
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/dashboard")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/conversations/dashboard")
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{
"closed_by_reason": {},
"days": 123,
"first_reply_median_seconds": 123,
"needs_response": 123,
"needs_response_status_id": 123,
"open_gaps": 123,
"outcomes": {},
"overdue": 123,
"per_day": [
{
"day": "2023-12-25",
"questions": 123
}
],
"questions": 123,
"reopened": 123,
"resolved_without_person": 123,
"since": "2023-12-25",
"with_engineering": 123
}Authorizations
An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.
Query Parameters
Response
200 - application/json
Successful Response
Was this page helpful?