Returns the number of unread mails for the sending user.
GET
/api/mailbox/unread-countAuthorizations
api_key
Type: API Key (header: X-CSRF-Token)
Responses
Success.
Authorization
api_key
cURL
curl -X GET \
'http://localhost/api/mailbox/unread-count'
Samples
cURL
curl -X GET http://localhost/api/mailbox/unread-count
JavaScript
fetch("http://localhost/api/mailbox/unread-count")
.then(response => response.json())
.then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/mailbox/unread-count");
Python
import requests
response = requests.get("http://localhost/api/mailbox/unread-count")
print(response.json())