Skip to content
GET
/api/v1/mail/badges
curl --request GET \
--url https://deck.example.com/api/v1/mail/badges \
--cookie qd_auth=<qd_auth>

The counts on the Inbox page’s tabs.

Media typeapplication/json

The counts on the Inbox page’s tabs.

object
drafts
required

How many drafts there are now.

integer format: uint32
inbox
required

Emails waiting for the person’s approval: the distinct threads across the open cards.

integer format: uint32
sent
required

Sent messages new since the person last opened the Sent tab.

integer format: uint32

Example generated

{
"drafts": 1,
"inbox": 1,
"sent": 1
}

An error, with its message.

Media typeapplication/json

Every error the REST API returns, with an HTTP status.

object
error
required
string

Example generated

{
"error": "example"
}