POST
/
bulk-sending
curl --request POST \
  --url https://api.jsxmail.org/bulk-sending \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "<string>",
  "subject": "<string>",
  "content": "<string>",
  "sender": "<string>",
  "contactGroupId": "<string>",
  "variables": [
    {
      "key": "<string>",
      "from": "contact",
      "fromKey": "<string>",
      "customValue": "<string>"
    }
  ]
}'
{
  "id": "<string>",
  "title": "<string>",
  "subject": "<string>",
  "content": "<string>",
  "totalContacts": 123,
  "userId": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "_count": {
    "messages": 123,
    "failures": 123
  }
}

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 bulk sending campaign to create

The body is of type object.

Response

201
application/json

Bulk sending created and queued for processing

The response is of type object.