Get conversations report
Conversation report, with one row per protocol. For large volumes, use the system’s export, which runs in the background.
curl --request GET \
--url https://api.connectadesk.com/api/v1/reports/conversations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.connectadesk.com/api/v1/reports/conversations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.connectadesk.com/api/v1/reports/conversations', 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.connectadesk.com/api/v1/reports/conversations",
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.connectadesk.com/api/v1/reports/conversations"
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.connectadesk.com/api/v1/reports/conversations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.connectadesk.com/api/v1/reports/conversations")
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": [
{
"protocol": 448120,
"channelid": 11,
"channelname": "Instagram Loja",
"channeltype": "instagram",
"channelaccount": "@lojaexemplo",
"ticketid": 90211,
"ticketnps": true,
"updateat": "2023-11-07T05:31:56Z",
"userid": 3,
"username": "Marina Alves",
"userprofileurl": "<string>",
"contactid": 842,
"contactcreatedat": "2023-11-07T05:31:56Z",
"contactname": "Maria Silva",
"contactnumber": "5511987654321",
"contactemail": "maria.silva@exemplo.com.br",
"contactcode": "CLI-00842",
"contactorigin": "site",
"contactcpfcnpj": "12345678909",
"queueid": 2,
"queuename": "Suporte",
"createdat": "2023-11-07T05:31:56Z",
"finishedat": "2023-11-07T05:31:56Z",
"nps": true,
"wrapupid": 123,
"wrapupchatbot": true,
"wrapuptypeid": 12,
"wrapuptypename": "Dúvida resolvida",
"wrapupnotes": "<string>",
"status": "closed",
"chattype": "Receptivo",
"campaignslug": "black-friday-2026",
"tags": [
{
"id": 3,
"name": "Cliente VIP",
"color": "#6941C6"
}
]
}
],
"meta": {
"page": 1,
"perPage": 20,
"hasMore": true
}
}{
"error": {
"code": "ERR_API_VALIDATION",
"message": "`campaignSlug` aceita um texto só, de até 80 caracteres."
}
}Query Parameters
updated considers the protocol's closing and last update dates; the creation date does not count (a protocol created in the period that only had activity after it is left out). created considers only the creation date. active brings the protocols active in the period: opened in it, closed in it or still open from before, the same basis as the dashboard. With active, queue and agent also follow the dashboard (see queues and users).
updated, created, active Protocol status. A value outside the list does not filter.
| value | meaning |
|---|---|
open_noservice | Open, with the conversation already closed (send without a reply). |
inservice_automation | In automation: no agent and an open automation segment (active flow or AI), even while waiting in a queue; with no segment at all, by the conversation's automation flags. |
inservice_waiting | Waiting in the queue, outside automation. |
inservice_attending | Being handled by an agent. |
closed | Closed. |
inservice_any | In progress right now, in any status: waiting, being handled or in automation. Sends without a reply are left out. |
open_any | Open at the end of the period: still open, or closed only after the end (the dashboard's "In service" tab). |
closed_bot | Closed by the end of the period, with a wrap-up from automation. |
closed_api | Closed by the API by the end of the period, without a wrap-up from automation. |
closed_human | Closed by the end of the period, with a response from some user, without a wrap-up from automation and not by the API. |
closed_system | The other ones closed by the end of the period: without a wrap-up from automation, not by the API and without a user response. |
open_noservice, inservice_automation, inservice_waiting, inservice_attending, inservice_any, closed, open_any, closed_bot, closed_api, closed_human, closed_system Conversation type: where the protocol was created from (inbound, outbound, campaign, API, automation or scheduled). How the conversation started:
| value | meaning |
|---|---|
incoming | Inbound (the contact spoke first). |
outcoming | Outbound (an agent started it from the panel). |
campaign | Campaign send. |
outcoming_api | Started by this API. |
outcoming_automation | Started by a Flow automation. |
outcoming_schedule | Scheduled send. |
incoming, outcoming, campaign, outcoming_api, outcoming_automation, outcoming_schedule Part of the campaign slug: returns the protocols whose campaignslug contains the text, ignoring upper and lower case. _ and % match the character itself. Up to 80 characters; longer text, or the parameter sent more than once, returns 422 (ERR_API_VALIDATION).
80curl --request GET \
--url https://api.connectadesk.com/api/v1/reports/conversations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.connectadesk.com/api/v1/reports/conversations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.connectadesk.com/api/v1/reports/conversations', 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.connectadesk.com/api/v1/reports/conversations",
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.connectadesk.com/api/v1/reports/conversations"
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.connectadesk.com/api/v1/reports/conversations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.connectadesk.com/api/v1/reports/conversations")
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": [
{
"protocol": 448120,
"channelid": 11,
"channelname": "Instagram Loja",
"channeltype": "instagram",
"channelaccount": "@lojaexemplo",
"ticketid": 90211,
"ticketnps": true,
"updateat": "2023-11-07T05:31:56Z",
"userid": 3,
"username": "Marina Alves",
"userprofileurl": "<string>",
"contactid": 842,
"contactcreatedat": "2023-11-07T05:31:56Z",
"contactname": "Maria Silva",
"contactnumber": "5511987654321",
"contactemail": "maria.silva@exemplo.com.br",
"contactcode": "CLI-00842",
"contactorigin": "site",
"contactcpfcnpj": "12345678909",
"queueid": 2,
"queuename": "Suporte",
"createdat": "2023-11-07T05:31:56Z",
"finishedat": "2023-11-07T05:31:56Z",
"nps": true,
"wrapupid": 123,
"wrapupchatbot": true,
"wrapuptypeid": 12,
"wrapuptypename": "Dúvida resolvida",
"wrapupnotes": "<string>",
"status": "closed",
"chattype": "Receptivo",
"campaignslug": "black-friday-2026",
"tags": [
{
"id": 3,
"name": "Cliente VIP",
"color": "#6941C6"
}
]
}
],
"meta": {
"page": 1,
"perPage": 20,
"hasMore": true
}
}{
"error": {
"code": "ERR_API_VALIDATION",
"message": "`campaignSlug` aceita um texto só, de até 80 caracteres."
}
}
