Unsubscribe
Takes an address off the newsletter, for your site’s own preferences page. Emails DUMA sends carry their own unsubscribe link.
POST
https://api.duma-business.com/v1/store/newsletter/unsubscribenewsletter:writeSecret key only
The answer is the same whether or not the address is known, so it never reveals who is a customer.
The address is added to the suppression list, so no automation emails it again.
Request example
Example request
curl -X POST "https://api.duma-business.com/v1/store/newsletter/unsubscribe" \
-H "Authorization: Bearer dk_sec_…" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]"
}'Request body
JSON, sent with Content-Type: application/json.
emailstringRequired- Lower-cased for you. Up to 255 characters.
Response
Response · 200
{
"data": {
"status": "unsubscribed"
}
}