Entrar

Opt-out: Revocar

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

Devuelve al cliente a la lista — vuelve a recibir.

Revoca solo los identificadores que envíe. Si el opt-out se registró con correo y teléfono y usted envía solo el correo, el teléfono sigue bloqueado. Es intencional: la revocación parcial nunca debe ocurrir por efecto secundario.

El estado actual se elimina, pero la traza de auditoría no. La revocación se agrega a ella, así que el historial de lo que pidió el cliente nunca se pierde.

Try-it values populated from environment ACME (Demo)


Autenticación

Token

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

Encabezados

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.

Cuerpo de la petición

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
}

Respuestas

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