Mark a mail tab seen, which clears its badge
POST
/api/v1/mail/seen
const url = 'https://deck.example.com/api/v1/mail/seen';const options = { method: 'POST', headers: {cookie: 'qd_auth=<qd_auth>', 'Content-Type': 'application/json'}, body: '{"kind":"draft"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://deck.example.com/api/v1/mail/seen \ --header 'Content-Type: application/json' \ --cookie qd_auth=<qd_auth> \ --data '{ "kind": "draft" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
kind
required
string
Responses
Section titled “Responses”Media typeapplication/json
Example generated
exampledefault
Section titled “default”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"}