Skip to main content
POST
Regenerate draft with AI

Authorizations

x-api-key
string
header
required

API key (sk-proj-…) from Settings → API Keys. Required for sold API calls outside the Mermail console.

Path Parameters

mailboxId
string
required

Mailbox public_id (UUID), hosted alias id, or current email

Body

application/json
draftId
string
required
Example:

"dft_01"

prompt
string
required
Example:

"Make this shorter and more formal"

body
string
required

Current draft HTML/body to revise

Response

Success

The response is of type object.