---
title: "A bar's one-click opt-out"
method: POST
path: "/api/v1/optout/{token}"
tags: ["public"]
---

# A bar's one-click opt-out

`POST /api/v1/optout/{token}`

## Request

- Base URL: `https://cervejabarata.com.br`
- URL: `https://cervejabarata.com.br/api/v1/optout/{token}`
- Auth: none declared

The page's button, or the mail client's RFC 8058 one-click POST (List-Unsubscribe-Post: List-Unsubscribe=One-Click). A valid token moves the bar to do_not_contact on every channel and sends one confirmation email. Unknown, invalid and already used tokens get the same answer; repeating it changes nothing.

## Path parameters

- `token` string, required: The lead's id and its HMAC with DATA_KEY, from the email's link

## Response `200`

The confirmation page

## Other responses

- `429`: Too many requests

---

[API](https://skmtc.dev/cervejabarata/apis/cerveja-barata-public-api.md) · [All operations](https://skmtc.dev/cervejabarata/apis/cerveja-barata-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cervejabarata/apis/cerveja-barata-public-api/revisions/19a783be3c18?raw)
