curl --request GET \
--url https://{organization}.rescueconsole.com/api/communications/threads/facets \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/communications/threads/facets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/communications/threads/facets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"total": 123,
"unread": 123,
"facets": {
"inbox_id": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"status": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"assigned_person_id": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
]
}
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Count conversations
How many conversations there are in each inbox, each status (archived counted as its own) and for each person handling them, for the same filters the list takes. Each group is counted with its own filter left out. Every inbox this key may read is listed, at zero when it is empty, and no other inbox is. The people are at most 20, those handling the most conversations, followed by none, labelled Nobody yet. A key sees the inboxes that the person who made the key may read, as that person’s access stands at the moment of the request; a conversation in any other inbox answers 404, the same as one that does not exist. Needs read on Communications.
curl --request GET \
--url https://{organization}.rescueconsole.com/api/communications/threads/facets \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/communications/threads/facets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/communications/threads/facets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"total": 123,
"unread": 123,
"facets": {
"inbox_id": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"status": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"assigned_person_id": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
]
}
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Authorizations
An API key from Settings, API keys. It starts with rc_live_.
Query Parameters
One inbox. An inbox this key may not read gives nothing, not an error.
Without it, every conversation that is not archived. With open, closed or spam, those that are not archived. With archived, only the archived ones.
open, closed, spam, archived true for unread conversations only.
true One person's conversations, or none for those nobody is handling.