Skip to main content
POST
/
email
curl --request POST \
  --url https://api.jetemail.com/email \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "from": "John Doe <[email protected]>",
  "to": "[email protected]",
  "subject": "Test Email",
  "text": "Hello! This is a test email."
}
'
{
  "id": "19424fd2acd0004210",
  "response": "Message queued as 19424fd2acd0004210"
}

Authorizations

Authorization
string
header
required

Enter your Bearer token in the format "Bearer {token}"

Body

application/json
from
string
required

Sender email address in format: "Name [email protected]"

Example:

"John Doe <[email protected]>"

to
required

Recipient email address(es)

subject
string
required

Email subject line

Minimum string length: 1
html
string

HTML content of the email. Can be used together with text to provide a plaintext alternative

text
string

Plaintext content of the email. When used with html, serves as the plaintext alternative

cc

CC recipient(s). Can be plain email or "Name [email protected]" format

bcc

BCC recipient(s). Can be plain email or "Name [email protected]" format

reply_to

Reply-to address(es). Can be plain email or "Name [email protected]" format

headers
object

Custom email headers

attachments
object[]

Email attachments (base64 encoded, max total size: 40MB)

Response

Email queued successfully

id
string

Unique message ID

Example:

"19424fd2acd0004210"

response
string

Queue confirmation message

Example:

"Message queued as 19424fd2acd0004210"