Skip to content
GET
/api/v1/mail
curl --request GET \
--url 'https://deck.example.com/api/v1/mail?kind=draft' \
--cookie qd_auth=<qd_auth>
kind
required
string
Allowed values: draft sent
account
string
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
Allowed values: draft sent
message_id
required
string
new
required

New since the person last opened this tab.

boolean
posted_by

The session that posted that card.

Any of:

A session by its tab, on a node. session_id pins one conversation when the tab has been reused.

object
node
required
string
>= 1 characters <= 100 characters
session_id
string | null
tab
required
string
>= 1 characters <= 200 characters
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
}
]

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"
}