Notificaciones in-app
Obtener notificaciones in-app para un cliente.
GET
/api/v1/notifications/in-appRetorna notificaciones activas que coinciden con las segment rules del cliente.
Query params
| Parametro | Tipo | Descripcion |
|---|
Ejemplo
curl "https://southgames.ai/api/v1/notifications/in-app?clientId=abc123" \
-H "Authorization: Bearer sg_live_xxx" \
-H "X-Org-Id: mi-empresa"
Respuesta
{
"notifications": [
{
"id": "notif_123",
"name": "Bienvenida",
"contentType": "standard",
"type": "banner",
"position": "top",
"title": "Bienvenido!",
"body": "Juega tu primera campana y gana puntos.",
"imageUrl": null,
"bgColor": "#1a1a2e",
"textColor": "#ffffff",
"cta": {
"label": "Jugar ahora",
"action": "app://campaigns"
},
"dismissible": true,
"htmlContent": null,
"modalSize": null,
"blocks": null,
"priority": 0,
"startsAt": null,
"expiresAt": null,
"trigger": {
"type": "always"
}
}
]
}
Tipos de notificacion
| type | Descripcion |
|---|---|
banner | Banner horizontal (top/bottom) |
modal | Modal centrado |
toast | Notificacion flotante |