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",
  "attachmentIds": [
    "<string>"
  ],
  "attachments": [
    {
      "fileName": "<string>",
      "content": "<string>"
    }
  ],
  "bulkSendingId": "b4f8d8c4-3c2e-4f2a-9f2e-3c2e4f2a9f2e",
  "customPayload": {
    "key1": "value1",
    "key2": "value2"
  },
  "contactId": "a1b2c3d4-5e6f-7g8h-9i0j-1k2l3m4n5o6p",
  "priority": "normal",
  "webhook": {
    "url": "<string>",
    "status": [
      "queued"
    ]
  }
}'
{
  "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

The body is of type object.

Response

201
application/json

The email was sent successfully

The response is of type object.