Skip to content

Menu

POST /v1/mail/unsubscribe/{token}

operationId: unsubscribeOneClick

RFC 8058 one-click unsubscribe, the List-Unsubscribe target of every retention email. Anonymous: an Authorization header is never resolved (never 401) and the request uses the anonymous IP rate bucket. Accepts application/x-www-form-urlencoded and multipart/form-data bodies of List-Unsubscribe=One-Click. Always 200 no-store JSON, never a redirect: a valid token turns off exactly its category and answers {category}; a forged, malformed or expired-secret token, or any other body, answers {category: null} and changes nothing. Idempotency-Key is honoured if sent but never required (mail clients send none); replay-safe.

Authentication

None. Anyone can call this.

Parameters

Name
token
In
path
Type
string
Required
yes

Request body

application/x-www-form-urlencoded

  • List-Unsubscribe"One-Click"required

multipart/form-data

  • List-Unsubscribe"One-Click"required

Responses

200 Unsubscribe result (uniform for every token)

  • X-Server-Time string (date-time)
  • X-Request-Id string (uuid)
  • Cache-Control "no-store"
  • Idempotent-Replay "true"
  • RateLimit-Limit integer
  • RateLimit-Remaining integer
  • RateLimit-Reset integer
  • Retry-After integer
  • category"season_notes" | "report_card" | "inactivity_nudge" | "season_summary" | nullrequired

429 Safe correlated application error

  • X-Server-Time string (date-time)
  • X-Request-Id string (uuid)
  • Cache-Control "no-store"
  • Idempotent-Replay "true"
  • RateLimit-Limit integer
  • RateLimit-Remaining integer
  • RateLimit-Reset integer
  • Retry-After integer
  • errorobjectrequired
    • codeone of 14 valuesrequired
    • messagestringrequired
    • detailsany
    • request_idstringrequired

500 Safe correlated application error

  • X-Server-Time string (date-time)
  • X-Request-Id string (uuid)
  • Cache-Control "no-store"
  • Idempotent-Replay "true"
  • RateLimit-Limit integer
  • RateLimit-Remaining integer
  • RateLimit-Reset integer
  • Retry-After integer
  • errorobjectrequired
    • codeone of 14 valuesrequired
    • messagestringrequired
    • detailsany
    • request_idstringrequired

All operations

POST /v1/mail/unsubscribe/{token} · AgentLand