Skip to content

One-click unsubscribe of a team notification address (RFC 8058)

POST
/api/v1/public/team-address/unsubscribe
curl --request POST \
--url 'https://api.deploybase.eu/api/v1/api/v1/public/team-address/unsubscribe?team=example&token=example' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data List-Unsubscribe=example

The List-Unsubscribe-Post target of team mail sent to a team address that is not a member’s own. The team and token travel in the query string (a mailbox provider POSTs to the exact header URL); the form body must be List-Unsubscribe=One-Click. A token matching the address in force clears it and tells every owner; any other well-formed request also answers 200 and changes nothing, so repeated and stale clicks are harmless and nothing can be probed.

team
required
string

Team ID

token
required
string

Unsubscribe token

List-Unsubscribe
required
string

Must be One-Click

OK

Media type application/json
object
data
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"data": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Not a well-formed one-click request

Media type application/json
object
code
string
details
docs_url
string
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
next_actions
Array<object>
object
action
string
cli
string
description
string
http
string
tool
string
reason

The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.

string
who_acts
string

Example generated

{
"code": "example",
"details": "example",
"docs_url": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
},
"next_actions": [
{
"action": "example",
"cli": "example",
"description": "example",
"http": "example",
"tool": "example"
}
],
"reason": "example",
"who_acts": "example"
}

Live 582ac705 built