Entrar

Opt-out: Revogar

DELETE https://{organization}.myguper.com/api/sender/opt-preference

Devolve o cliente à lista — ele volta a receber.

Revoga apenas os identificadores que você mandar. Se o opt-out foi registrado com e-mail e telefone e você manda só o e-mail, o telefone continua barrado. Isso é proposital: revogação parcial nunca deve acontecer por efeito colateral.

O estado atual é apagado, mas a trilha de auditoria não. A revogação é acrescentada nela, então o histórico do que o cliente pediu nunca se perde.

Try-it values populated from environment ACME (Demo)


Autenticação

Token

Send your user token in the x-guper-authorization header.

Cabeçalhos

Name Type Description
x-guper-authorization * string User token issued by Guper.
Content-Type * string Always `application/json` for endpoints that accept a JSON body.

Corpo da requisição

Content-Type: application/json

{
    "person": 184532,                                           // optional
    "email": "cliente@exemplo.com",                             // optional
    "cellphone": "5512345678",                                  // optional
    "countryCallingCode": "52",                                 // optional
    "provider": "<provider>",                                   // optional
    "scope": "<scope>",                                         // optional
    "source": "<source>",                                       // optional
    "actor": "<actor>",                                         // optional
    "detail": "<detail>"                                        // optional
}

Respostas

{
  "type": "optin",
  "targets": [
    { "target_type": "person", "target": "184532" },
    { "target_type": "email",  "target": "cliente@exemplo.com" }
  ],
  "removed": 2
}
Copied to clipboard