Skip to content

Queue an email draft for sending

POST
/email-drafts/{id}/send

Applies an optional latest draft snapshot, then queues a reply draft for sending after a fixed 10-second abort window.

Authorizations

BearerAuth

JWT token from login

Type
HTTP (bearer)
or
AccessToken

Personal access token. Value: Token <your-token>

Type
API Key (header: Authorization)

Parameters

Path Parameters

id*
Type
string
Required

Request Body

application/json
JSON
{
  
"from": "string",
  
"to": [
  
  
"string"
  
],
  
"cc": [
  
  
"string"
  
],
  
"bcc": [
  
  
"string"
  
],
  
"subject": "string",
  
"body_text": "string",
  
"body_html": "string"
}

Responses

Queued

application/json
JSON
{
  
"outgoing_email": {
  
  
"_id": "string",
  
  
"draft": "string",
  
  
"source_email": "string",
  
  
"email_identity": "string",
  
  
"from": "string",
  
  
"to": [
  
  
  
"string"
  
  
],
  
  
"cc": [
  
  
  
"string"
  
  
],
  
  
"bcc": [
  
  
  
"string"
  
  
],
  
  
"subject": "string",
  
  
"body_text": "string",
  
  
"body_html": "string",
  
  
"message_id": "string",
  
  
"in_reply_to": "string",
  
  
"references": [
  
  
  
"string"
  
  
],
  
  
"status": "string",
  
  
"send_after": "string",
  
  
"sent_at": "string",
  
  
"error": "string",
  
  
"attempts": 0,
  
  
"project": "string",
  
  
"host_id": "string",
  
  
"createdAt": "string",
  
  
"updatedAt": "string"
  
},
  
"abort_until": "string"
}

Playground

Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI