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"
}
用户日志与活动
获取最新的 AI 活动洞察
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"
}
在管理 API 主机 (
如果当周没有发生值得关注的事情,
api.scanova.io) 上获取账户最近一次的每周活动洞察,使用您的原始管理 API 密钥进行身份验证。
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"
}
洞察是按每周计划带外生成的,而非按请求实时生成 —— 此端点始终返回最近生成的一条,忽略任何 id。如果该账户尚未生成任何洞察(例如全新账户,或首次每周任务尚未运行),则返回
404。ai_response 会退回到基于模板的(非 AI 生成的)摘要,而不会调用底层模型 —— total_tokens: 0 表示这是基于模板的响应;非零值则表示确实由 AI 生成。
相关内容
授权
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.
响应
200 - application/json
The latest insight.
此页面对您有帮助吗?