public
public

Unsubscribe Post

Email preference update endpoint.

Handles three cases:

  1. Email client one-click (RFC 8058): Returns 200 with empty body
  2. JavaScript toggle request: Returns 200 on success
  3. Legacy unsubscribe: Returns HTML result page

Security: HMAC token prevents malicious attacks.

post/api/public/unsubscribe

Request

  • Base URL: http://localhost:8000
  • URL: http://localhost:8000/api/public/unsubscribe
  • Auth: none declared

Query parameters

emailstring email required

Email to update

tokenstring required

HMAC signature for security

actionstring

Action: subscribe or unsubscribe

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.