APIAPI reference
API reference
Every InsightFlare HTTP API endpoint: parameters, request bodies, response shapes, and examples, generated from the OpenAPI document.
Base URL and authentication
Every API endpoint lives under /api/v1 on your instance and is authenticated with an API key sent as a Bearer token. To create a key, see API keys; for conventions such as pagination and time ranges, see the API overview.
curl https://your-instance.example.com/api/v1/token \
-H "Authorization: Bearer $INSIGHTFLARE_API_KEY"Scopes
analysis:readRead shared saved filters, goals, and funnels.6 operationsanalysis:writeCreate, update, and delete goals and funnels.6 operationsanalytics:readRead analytics data.46 operationssite:readList and read sites.2 operationssite:writeCreate, update, and delete sites.3 operationssite_config:readRead tracking, privacy, and sharing settings, and the tracking script.4 operationssite_config:writeUpdate those settings.3 operationsGroups
014 operations
DiscoveryFind out what this instance supports: the API root, runtime capabilities, the OpenAPI document, and the Agent skills manifest.GET022 operations
TokenInspect the API key used for the request and check which scopes and sites it can access.GETPOST032 operations
TeamRead the team that owns the API key and its usage.GET045 operations
SitesList, create, update, and delete the sites of the team.GETPOSTPATCHDEL057 operations
SettingsRead and update a site's tracking, privacy, and sharing settings, and get its tracking script.GETPATCH0619 operations
AnalyticsAggregate queries for a site or across the team: overview metrics, time series, breakdowns, comparisons, pages, referrers, channels, retention, and filter discovery.POSTGET078 operations
EventsCustom events: summaries, time series, search, event types, and the fields and values in event payloads.POST084 operations
VisitorsSearch visitors and read one visitor's profile, sessions, and events.POST094 operations
SessionsSearch sessions and read one session's details and the events in its journey.POST106 operations
FunnelsManage saved funnels and analyze their conversion.POSTGETPATCHDEL117 operations
GoalsManage goals and read their conversion summary and trend.POSTGETPATCHDEL122 operations
Saved FiltersRead the filters that team members saved in the dashboard.GET133 operations
PerformanceCore Web Vitals (TTFB, FCP, LCP, CLS, INP) as a summary, a time series, or a breakdown by page or country.POST144 operations
RealtimeActivity from the last few minutes: active visitors, recent events, and live sessions.POST151 operation
BatchRun several read operations in one request.POST161 operation
HealthCheck that the instance is up.GET172 operations
IngestionThe public endpoints used by the tracking script. They are not meant for API clients.POSTGETThis reference is generated from the OpenAPI document. Your instance serves the same document at /.well-known/openapi.json, ready for code generators and AI agents.