Skip to main content
POST
Create a Gmail draft with direct multipart workspace attachments

Authorizations

Authorization
string
header
required

MCP access token issued by the Den OAuth authorization server, passed as Authorization: Bearer <token>. Used by MCP transports and the direct-upload routes they call.

Response

Gmail draft created.

ok
boolean
required
draftId
string
required
messageId
string | null
required
draftUrl
string | null
required

Gmail URL for the ready-to-send draft. Always share draftUrl with the user so they can open the draft in Gmail for review and send.

threadUrl
string | null
required

Gmail URL for the conversation thread returned by Gmail for this draft.

to
string
required
subject
string
required
threadId
string | null
required
quotedHistoryIncluded
boolean
required

True when quoted conversation history was included by the server or already present in the request body.

attachments
object[]