curl "https://api.scanova.io/user-logs/activity-insight/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
{
"id": 55,
"period_start": "2026-08-31",
"period_end": "2026-09-06",
"ai_response": {
"summary": ["You created 6 QR codes this week, up from an average of 2."],
"insights": ["A shared user (member@scanova.io) logged in for the first time this week."],
"anomalies_explained": ["QR creation spiked mid-week, likely tied to a new campaign."],
"recommendations": ["Consider tagging the new QR codes for easier filtering later."]
},
"total_tokens": 412,
"generated_at": "2026-09-07T02:15:03Z"
}
Registros de usuario y actividad
Obtener el último insight de actividad con IA
GET /user-logs/activity-insight/
GET
/
user-logs
/
activity-insight
/
curl "https://api.scanova.io/user-logs/activity-insight/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
{
"id": 55,
"period_start": "2026-08-31",
"period_end": "2026-09-06",
"ai_response": {
"summary": ["You created 6 QR codes this week, up from an average of 2."],
"insights": ["A shared user (member@scanova.io) logged in for the first time this week."],
"anomalies_explained": ["QR creation spiked mid-week, likely tied to a new campaign."],
"recommendations": ["Consider tagging the new QR codes for easier filtering later."]
},
"total_tokens": 412,
"generated_at": "2026-09-07T02:15:03Z"
}
Obtiene el insight de actividad semanal más reciente de la cuenta, en el host de la API de gestión (
Cuando no ocurrió nada destacable esa semana,
api.scanova.io), autenticado con su clave de API de gestión sin procesar.
GET https://api.scanova.io/user-logs/activity-insight/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
curl "https://api.scanova.io/user-logs/activity-insight/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
{
"id": 55,
"period_start": "2026-08-31",
"period_end": "2026-09-06",
"ai_response": {
"summary": ["You created 6 QR codes this week, up from an average of 2."],
"insights": ["A shared user (member@scanova.io) logged in for the first time this week."],
"anomalies_explained": ["QR creation spiked mid-week, likely tied to a new campaign."],
"recommendations": ["Consider tagging the new QR codes for easier filtering later."]
},
"total_tokens": 412,
"generated_at": "2026-09-07T02:15:03Z"
}
Los insights se generan fuera de banda según un calendario semanal, no bajo demanda — este endpoint siempre devuelve el generado más recientemente, ignorando cualquier id.
404 si aún no se ha generado ningún insight para la cuenta (p. ej. una cuenta nueva, o antes de la primera ejecución semanal).ai_response recurre a un resumen basado en plantilla (no generado por IA) en lugar de llamar al modelo subyacente — total_tokens: 0 indica una respuesta basada en plantilla; un valor distinto de cero indica una respuesta genuinamente generada por IA.
Relacionado
- Obtener estadísticas diarias de actividad — los datos sin procesar sobre los que se construye este insight.
- Resumen de la API de gestión — el esquema de autenticación y las reglas de cuota que se aplican a este endpoint.
Autorizaciones
Send your Management API key as the raw value of the Authorization header — no "Bearer " or "Token " prefix, and no other characters. Example: Authorization: 401f7ac837da42b97f613d789819ff93537bee6a. A header containing more than one space-separated part is rejected outright. Requests also require the request's Host header to be the management API host (e.g. api.scanova.io) — the same key sent to the regular API host will not authenticate.
Respuesta
200 - application/json
The latest insight.
¿Esta página le ayudó?