POST
/
list
Create List
curl --request POST \
  --url https://api.sendx.io/api/v1/rest/list \
  --header 'Content-Type: application/json' \
  --header 'X-Team-ApiKey: <api-key>' \
  --data '{
  "name": "Newsletter Subscribers",
  "type": 0,
  "sendThankYouMail": true,
  "thankYouFromName": "John Doe",
  "thankYouFromEmail": "john.doe@example.com",
  "thankYouMailSubject": "Thank You for Subscribing!",
  "thankYouMailMessage": "We appreciate your subscription!",
  "thankYouSender": "sender_101",
  "confirmFromName": "John Doe",
  "confirmFromEmail": "john.doe@example.com",
  "confirmMailSubject": "Please Confirm Your Subscription",
  "confirmMailMessage": "Click the link below to confirm your subscription.",
  "confirmSuccessPage": "https://example.com/confirmation-success",
  "confirmSender": "sender_102"
}'
{
  "id": "sendx123",
  "name": "My New Resource",
  "success": true
}

Authorizations

X-Team-ApiKey
string
header
required

Body

application/json

Response

200
application/json

List Created Successfully

The response is of type object.