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

# A bar's one-click opt-out: the page

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

## Request

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

The link in every outreach email's footer. A small pt-BR page with one button that POSTs to the same URL; a GET changes nothing (mail clients and link scanners open links). The same page for every token.

## Path parameters

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

## Response `200`

The page with the button

## 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)
