POST
/
email
curl --request POST \
  --url https://api.jetemail.com/email \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "from": "John Doe <john@example.com>",
  "to": "recipient@example.com",
  "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@domain.com"

Example:

"John Doe <john@example.com>"

to
required

Recipient email address(es)

Example:

"user@example.com"

subject
string
required

Email subject line

Minimum 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@domain.com" format

bcc

BCC recipient(s). Can be plain email or "Name email@domain.com" format

reply_to

Reply-to address(es). Can be plain email or "Name email@domain.com" format

headers
object

Custom email headers

attachments
object[]

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

Response

201
application/json
Email queued successfully
id
string

Unique message ID

Example:

"19424fd2acd0004210"

response
string

Queue confirmation message

Example:

"Message queued as 19424fd2acd0004210"