Skip to content

Quickstart

This guide walks through the fastest accurate setup path: create a product, add a paywall rule, generate keys, and connect a browser integration.

You need a running Latch instance with:

  • an API URL (e.g. https://latch-api.v3ck.com in production, or http://localhost:4000 in local development)
  • a dashboard URL (e.g. https://latch-app.v3ck.com in production, or http://localhost:3000 in local development)

Open the dashboard, sign up, and create a publication.

Go to Products and create:

FieldValue
Product namePremium
DescriptionUnlimited access
Price intervalMonth
Amount999

You can add yearly or lifetime prices later.

Go to Paywalls and add a rule like this:

FieldValue
NamePremium Articles
TypeMetered
URL patterncontains /article/
Meter limit3
Productyour Premium product
MessageYou've reached the free limit
Templatemodal

This gives readers 3 free matching views before the rule starts denying access.

Go to Settings > API Keys and create a key pair.

  • Publishable key (pk_...) for browser access checks and events
  • Secret key (sk_...) for your server-side checkout and portal flows

Use one of these guides:

  1. Plain HTML integration for a static site or small custom front end
  2. WordPress integration for a WordPress site
  3. SDK installation if you are integrating Latch into a bundled JavaScript application

Open a URL that matches your paywall rule.

  • the first matching visits should be granted
  • metered responses should include meterRemaining
  • after the limit is exceeded, the access response should include granted: false and the matching paywallRule

If you also send events, the dashboard overview counts will update over time. The current overview page shows aggregate counters, not pageview charts.