One of the mail tabs' lists
GET
/api/v1/mail
const url = 'https://deck.example.com/api/v1/mail?kind=draft';const options = {method: 'GET', headers: {cookie: 'qd_auth=<qd_auth>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://deck.example.com/api/v1/mail?kind=draft' \ --cookie qd_auth=<qd_auth>Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”kind
required
string
account
string
Responses
Section titled “Responses”Media typeapplication/json
Array<object>
A row on the Drafts or Sent tab.
object
account
required
string
at
required
When it was written or sent (Gmail’s internal date).
string
card_id
The card whose draft or reply this is, when the deck made it.
integer | null format: int64
draft_id
Gmail’s draft ID, for a draft (its message ID changes with every save).
string | null
from
string | null
id
required
integer format: int64
kind
required
string
message_id
required
string
new
required
New since the person last opened this tab.
boolean
posted_by
snippet
string | null
subject
string | null
thread_id
string | null
to
string | null
Example
[ { "draft_id": null, "from": null, "kind": "draft", "snippet": null, "subject": null, "thread_id": null, "to": null }]default
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"}