Skip to content

Introduction

Latch is a paywall and subscription platform for publishers. It lets you gate content, manage products and customers, define audience segments, and collect client-side events through a dashboard, HTTP API, and browser integration layer.

Latch is designed for publishers who need:

  • Content gating — metered paywalls, hard paywalls, registration walls, or soft prompts
  • Subscription management — products with multiple prices, Stripe-backed billing, manual grants, and trials
  • Audience targeting — segments based on subscription state and tracked behavior
  • Developer control — browser-safe and server-side endpoints you can integrate into your own stack

Latch has three main components.

The API is the core of Latch. It handles:

  • admin authentication for the dashboard
  • product, price, and subscription management with billing sync
  • paywall rule evaluation
  • customer and segment management
  • event ingestion
  • API key management

The API includes interactive documentation at /docs so you can inspect the live route surface.

The dashboard is where publishers manage their publication:

  • create and edit products and prices
  • configure paywall rules
  • view and manage customers
  • build audience segments
  • generate API keys
  • configure Stripe

Latch supports two browser-side integration styles:

  • the JavaScript SDK
  • direct publishable-key integrations such as the plain HTML and WordPress examples in these docs

Both approaches rely on the same client-safe endpoints for access checks and event ingestion.

  • Fail-open: if the access API errors, browser integrations should grant access instead of blocking readers
  • Key separation: publishable keys (pk_) are browser-safe and work with access checks, events, and customer auth; secret keys (sk_) are server-side and currently cover customer auth plus subscription flows such as checkout and portal sessions
  • Session-backed admin routes: dashboard management routes use authenticated admin sessions rather than API keys
  • Multi-tenant: each publication is isolated, including products, customers, paywalls, segments, API keys, and Stripe settings