Documentation
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 operations
analysis:writeCreate, update, and delete goals and funnels.6 operations
analytics:readRead analytics data.46 operations
site:readList and read sites.2 operations
site:writeCreate, update, and delete sites.3 operations
site_config:readRead tracking, privacy, and sharing settings, and the tracking script.4 operations
site_config:writeUpdate those settings.3 operations

Groups

014 operations
DiscoveryFind out what this instance supports: the API root, runtime capabilities, the OpenAPI document, and the Agent skills manifest.GET
022 operations
TokenInspect the API key used for the request and check which scopes and sites it can access.GETPOST
032 operations
TeamRead the team that owns the API key and its usage.GET
045 operations
SitesList, create, update, and delete the sites of the team.GETPOSTPATCHDEL
057 operations
SettingsRead and update a site's tracking, privacy, and sharing settings, and get its tracking script.GETPATCH
0619 operations
AnalyticsAggregate queries for a site or across the team: overview metrics, time series, breakdowns, comparisons, pages, referrers, channels, retention, and filter discovery.POSTGET
078 operations
EventsCustom events: summaries, time series, search, event types, and the fields and values in event payloads.POST
084 operations
VisitorsSearch visitors and read one visitor's profile, sessions, and events.POST
094 operations
SessionsSearch sessions and read one session's details and the events in its journey.POST
106 operations
FunnelsManage saved funnels and analyze their conversion.POSTGETPATCHDEL
117 operations
GoalsManage goals and read their conversion summary and trend.POSTGETPATCHDEL
122 operations
Saved FiltersRead the filters that team members saved in the dashboard.GET
133 operations
PerformanceCore Web Vitals (TTFB, FCP, LCP, CLS, INP) as a summary, a time series, or a breakdown by page or country.POST
144 operations
RealtimeActivity from the last few minutes: active visitors, recent events, and live sessions.POST
151 operation
BatchRun several read operations in one request.POST
161 operation
HealthCheck that the instance is up.GET
172 operations
IngestionThe public endpoints used by the tracking script. They are not meant for API clients.POSTGET

This 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.