POST
/
sender
/
send
curl --request POST \
  --url https://api.jsxmail.org/sender/send \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "subject": "Hello, world!",
  "html": "<h1>Hello, world!</h1>",
  "to": [
    "test@example.com"
  ],
  "sender": "sender@jsxmail.org",
  "filesIds": [
    "<string>"
  ]
}'
{
  "id": "<string>",
  "to": [
    "<string>"
  ],
  "subject": "<string>",
  "senderId": "<string>",
  "status": "<string>",
  "userId": "<string>",
  "sentAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
The data of the email to send
subject
string
required
Example:

"Hello, world!"

html
string
required
Example:

"<h1>Hello, world!</h1>"

to
string[]
required
sender
string
Example:

"sender@jsxmail.org"

filesIds
string[]

Response

201
application/json
The email was sent successfully
id
string
required
to
string[]
required
subject
string
required
senderId
string
required
status
string
required
userId
string
required
sentAt
string