---
title: "Unsubscribe Post"
method: POST
path: "/api/public/unsubscribe"
tags: ["public", "public"]
---

# Unsubscribe Post

`POST /api/public/unsubscribe`

## Request

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

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.

## Query parameters

- `email` string, email, required: Email to update
- `token` string, required: HMAC signature for security
- `action` string: Action: subscribe or unsubscribe

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api.md) · [All operations](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/revisions/51c755fb5d0b?raw)
