---
title: "Record outreach-only opt-out (Lodestar marketing emails)"
method: POST
path: "/unsubscribe"
---

# Record outreach-only opt-out (Lodestar marketing emails)

`POST /unsubscribe`

## Request

- Base URL: `https://api.lodestarstamp.com`
- URL: `https://api.lodestarstamp.com/unsubscribe`
- Auth: one of:
  - none
  - API key in header `X-Lodestar-Key`
  - OAuth 2 (authorization code, authorization URL `https://api.lodestarstamp.com/oauth/authorize`, token URL `https://api.lodestarstamp.com/oauth/token`, scopes: `mcp:read`)
  - API key in header `PAYMENT-SIGNATURE`

A valid CONFIRM_SECRET token (kind capo_unsub) opts out immediately. An email with no token, or a token that does not verify, does not opt out: the Worker emails a signed confirmation link and returns the same 200 whether or not the address exists. RFC 8058 one-click: POST application/x-www-form-urlencoded body List-Unsubscribe=One-Click to the signed https://lodestarstamp.com/v1/unsubscribe?email&license&token URL. A valid one-click POST returns 200 and does not redirect. The public form posts the same token in the body. Writes outreach_opt_out_v2 (string) on the Resend contact and CONSUMERS KV. Does not call Resend team suppressions and does not cancel Watching. Public form: https://lodestarstamp.com/unsubscribe

## Request body

- object
  - `email` string, email
  - `token` string
  - `website` string: Honeypot; must be empty

## Response `200`

Opted out

## Other responses

- `400`: Invalid request
- `429`: Rate limited
- `503`: RESEND_API_KEY not bound

---

[API](https://skmtc.dev/lodestarstamp/apis/lodestar-trust-api.md) · [All operations](https://skmtc.dev/lodestarstamp/apis/lodestar-trust-api/llms.txt) · [OpenAPI document](https://skmtc.dev/lodestarstamp/apis/lodestar-trust-api/revisions/af78368ab7a5?raw)
