Insights
Every call here needs the insights feature of your plan; without it, 402. See Insights and shared reports for the fields.
| Call | What it does |
|---|---|
GET /api/insights?days=30 | The report for the last days days of simulated time (1 to 366, default 30). |
GET /api/insights/shares | The universe’s shared reports: token, title, days, created. |
POST /api/insights/shares | Shares a report. Body {"title": "Spring campaign", "days": 30}. Answers {"token": "shr_…", "path": "/share/shr_…"}. |
DELETE /api/insights/shares/{token} | Revokes a share. 404 if there is none. |
A shared report is public at https://c1.simmail.dev/share/{token} (a page) and https://c1.simmail.dev/share/{token}.json (its data), on your universe’s server. The JSON is:
{ "title": "Spring campaign", "universe": "CI", "insights": { "from": "…", "to": "…", "total": { … }, "campaigns": [ … ] } }