Heatmap GraphQL API Documentation Directory
POST /graphql/v1

Permissions and Access Scope

Why viewerAccess Matters

viewerAccess is the source of truth for what the current key can access.

Run it first to avoid calling unsupported site IDs or endpoint groups.

viewerAccess Response Fields

Access Strategy for Clients

  1. Query viewerAccess on app bootstrap.
  2. Query sites and intersect with allowedSites.
  3. Hide UI for endpoints not present in allowedEndpoints.
  4. Add graceful fallback messages instead of hard failures.

Multi-Site Best Practice