WysLeap
WysLeap Docs

API Overview

Send page views and custom events to WysLeap: the tracker covers the browser, and the server events API covers your backend.

Quick Start

The fastest path depends on what you need:

Overview

  • Base URL: https://wysleap.com/api
  • Authentication: a secret key for server events, the site API key for telemetry. See Authentication.
  • Response format: JSON + HTTP status codes

Endpoints

EndpointUse it for
POST /api/v1/eventsEvents from your backend (signups, purchases, subscription changes), with a secret key
POST /api/telemetry/pageviewPage views from the browser (the tracker calls this for you)
POST /api/telemetry/eventCustom events from the browser (WysLeap.trackEvent calls this for you)
GET /api/healthStatus check

The spec is also available as OpenAPI 3.0 JSON at /api/openapi.

JavaScript SDK

The easiest integration. One script tag handles anonymous visitor IDs, session management, and data collection automatically.

For full setup, configuration options (trackClicks, trackScroll, session replay), and all SDK methods (trackPageView, trackEvent, setConsent), see Installation.

Use WysLeap.trackEvent('Event Name', { }) in your app to send custom events without calling the REST endpoint directly.