Guides & Tutorials

Forget subscriber(s)

POST /api/contact/forget.php

Warning! Use this API endpoint with care. Forgetting permanently affects subscribers and their statistics.

This endpoint can be used to forget subscriber(s) and remove data associated with them.

Request parameters

Request body must contain a JSON list of email addresses.

Example

$ curl -X POST -u "${USERNAME}:${PASSWORD}" \
  -H "Content-Type: application/json" \
  -d '["recipient+1@domain.tld", "recipient+2@domain.tld"]' \
  "https://${SUBDOMAIN}.sendsmaily.net/api/contact/forget.php"

(JavaScript/JSON)

{
  'code': 101,
  'message': 'OK'
}
Menu