Skip to main content
POST
Get Email Drafts

Authorizations

Authorization
string
header
required

Bearer API key for server-to-server access. Session auth is also supported in first-party UI flows.

Body

application/json
connectionId
string
required

Exact mailbox connection ID from email_list_accounts or the original draft result.

Required string length: 1 - 120
draftIds
string[]
required

One to 20 provider draft IDs. Use Gmail draft resource IDs or Outlook draft message IDs from the exact mailbox. Never use conversation IDs.

Required array length: 1 - 20 elements
Required string length: 1 - 500
Pattern: ^[A-Za-z0-9_+/=-]+$
organizationId
string

Required for session auth. Optional for API keys, which already belong to one organization.

Required string length: 1 - 120

Response

Ordered draft data and lookup outcomes.

ok
boolean
operationId
string
status
string
data
object