curl --request GET \
--url https://api.tryfuse.ai/api/v1/business/conversations/counts \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.tryfuse.ai/api/v1/business/conversations/counts"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.tryfuse.ai/api/v1/business/conversations/counts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"channel": "email",
"counts": {
"inbox": 128,
"sent": 342,
"unread": 7,
"favorite": 3,
"archived": 56,
"spam": 2,
"trash": 14
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}Count conversations by folder
How many email conversations each folder holds, as the app’s inbox tab badges show them: each count is the pagination.total GET /business/conversations?channel=email answers for that folder and the same mailbox, with no other filter, so unread is the number of conversations with an email not yet read. folders picks the folders to count (default every one); mailbox adds up the counts of some of your mailboxes instead of every connected mailbox you own or that is shared with you with inbox access. When Contact Visibility in the app’s email inbox settings is Show only campaign contacts, only those conversations are counted, as in the app. Mailbox warmup conversations are not counted while the app’s email inbox settings hide them, which is the default. Email only: on LinkedIn, the unread count is the pagination.total of GET /business/conversations?channel=linkedin&folder=unread&limit=1. Rate limit: 60 requests per minute, 5000 per day, shared with the other conversation reads.
Errors:
422VALIDATION_FAILED—channelis missing or notemail,foldersnames a folder the list does not offer,mailboxis not one address or up to 20 separated by commas, or a query parameter the route does not take was sent.404MAILBOX_NOT_FOUND— Amailboxis not yours, or not shared with you with inbox access.429RATE_LIMITED— Too many conversation reads or changes: their shared quota (60 per minute, 5000 per day) or, on LinkedIn, the LinkedIn service’s own per-user limit was exceeded. Retry after the Retry-After / RateLimit-Reset seconds when present, else after a minute.
Requires one of the following token scopes: inbox.
curl --request GET \
--url https://api.tryfuse.ai/api/v1/business/conversations/counts \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.tryfuse.ai/api/v1/business/conversations/counts"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.tryfuse.ai/api/v1/business/conversations/counts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"channel": "email",
"counts": {
"inbox": 128,
"sent": 342,
"unread": 7,
"favorite": 3,
"archived": 56,
"spam": 2,
"trash": 14
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}