Notificaciones in-app

Obtener notificaciones in-app para un cliente.

GET/api/sdk/notifications/in-app

Retorna notificaciones activas que coinciden con las segment rules del cliente.

Query params

ParametroTipoDescripcion

Ejemplo

curl "https://southgames.ai/api/sdk/notifications/in-app?clientId=abc123" \
  -H "Authorization: Bearer sg_live_xxx" \
  -H "X-Org-Id: mi-empresa"

Respuesta

{
  "success": true,
  "data": [
    {
      "id": "notif_123",
      "title": "Bienvenido!",
      "body": "Juega tu primera campana y gana puntos.",
      "type": "banner",
      "position": "top",
      "cta": {
        "label": "Jugar ahora",
        "action": "app://campaigns"
      },
      "bgColor": "#1a1a2e",
      "textColor": "#ffffff"
    }
  ]
}

Tipos de notificacion

typeDescripcion
bannerBanner horizontal (top/bottom)
modalModal centrado
toastNotificacion flotante