Push API y niveles
Qué cubre este artículo
Cómo enviar eventos a Splora, autenticación, formato JSON y los niveles de severidad 0–5.
Endpoint
POST https://api.splora.zolski.net/v1/events
Authorization: Bearer spl_...
Content-Type: application/json
Payload
{
"level": 1,
"message": "deploy ok",
"source_slug": "mi-app"
}
level(int 0–5, recomendado) oseverity(alias string).- Si omitís ambos → nivel 1 (info).
- Si
levelyseverityno coinciden → HTTP 400.
Niveles fijos
| Level | Severity | Uso |
|---|---|---|
| 0 | debug | Diagnóstico verbose |
| 1 | info | Operación normal |
| 2 | warn | Anomalía no crítica |
| 3 | error | Fallo recuperable |
| 4 | outage | Servicio caído |
| 5 | experimental | Features en prueba |
Ejemplo curl
curl -X POST https://api.splora.zolski.net/v1/events \
-H "Authorization: Bearer spl_..." \
-H "Content-Type: application/json" \
-d '{"level":1,"message":"hello splora"}'