Entrar

Opt-out: Historial

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

Traza append-only de todo lo que se registró o revocó para un cliente, más recientes primero.

Separada del estado actual a propósito: la fila de estado se sobrescribe en cada cambio, mientras que esta nunca se reescribe ni se borra. Es la que prueba quién pidió parar, cuándo y por cuál canal — incluyendo opt-outs que después fueron revocados y ya no aparecen en Consultar.

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.

Parámetros de query

Name Type Description
q[column][operator] string Filter using the `q[column][operator]=value` grammar. See [List query parameters](/docs/{lang}/guides/list-query-parameters) for the full operator table.
o[column] string Sort by column. Direction: `ASC`, `DESC`, `1` or `0`.
e integer How many entries, capped at 500.
por defecto: 100
p integer Page number (≥ 1).
por defecto: 1
person integer At least one of `person`, `email` or `cellphone` is required.
email string
cellphone string Digits only, without the country code.
countryCallingCode string

Respuestas

{
  "targets": [
    { "target_type": "email", "target": "cliente@exemplo.com" }
  ],
  "history": [
    {
      "target_type": "email", "target": "cliente@exemplo.com",
      "provider": "all", "scope": "all", "type": "optin",
      "source": "admin", "actor": "maria@lojista.com", "person": 184532,
      "detail": "voltou atras", "createdAt": "2026-09-02 15:40:11"
    },
    {
      "target_type": "email", "target": "cliente@exemplo.com",
      "provider": "all", "scope": "all", "type": "optout",
      "source": "admin", "actor": "maria@lojista.com", "person": 184532,
      "detail": "pediu por telefone no SAC", "createdAt": "2026-09-02 10:14:03"
    }
  ]
}

Relacionados

Copied to clipboard