Notificaciones in-app
Obtener notificaciones in-app para un cliente.
GET
/api/sdk/notifications/in-appRetorna notificaciones activas que coinciden con las segment rules del cliente.
Query params
| Parametro | Tipo | Descripcion |
|---|
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
| type | Descripcion |
|---|---|
banner | Banner horizontal (top/bottom) |
modal | Modal centrado |
toast | Notificacion flotante |