Delete a subscriber

Remove a subscriber from the list.

DELETE https://sitepaste.com/api/v1/public/sites/{siteId}/newsletter-subscribers/{subscriberId}

Requires the data scope.

Usage

curl -X DELETE "https://sitepaste.com/api/v1/public/sites/default/newsletter-subscribers/n8qjx2v7mz4r" \
  -H "Authorization: Bearer $TOKEN"

Authorizations

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token (Authorization: Bearer sp_...). Created in the dashboard under Account > Tokens. See authentication.

Response

204 No Content on success.

Errors

CodeMeaning
400{subscriberId} is malformed
404No subscriber with that ID on the site