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"
}
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"
}
Enter your Bearer token in the format "Bearer {token}"
Email queued successfully
The response is of type object
.