Unsubscribe from a campaign
POST /api/v1/campaigns/unsubscribe
Processes an unsubscribe token. POST accepts the RFC 8058 one-click form token; GET returns an HTML confirmation page.
This operation needs no authentication.
Parameters
tokenstring query
Request body
application/json object
tokenstring
Generated sample
{
"token": "string"
}Responses
200 Unsubscribe confirmation or result.
text/html string
404 Unsubscribe token is invalid.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
422 Token is missing.
application/json object
errorobject requiredcodestring requiredfieldsobjectOther keys: array of string
messagestring
429 Request rate limit exceeded.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string