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.

Note! When forgetting large number of subscribers at once, it is recommended to call the API endpoint in batches to avoid any request timeout issues. For example up to 10 000 subscribers per batch.

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'
}