Quickstart
This guide walks through the fastest accurate setup path: create a product, add a paywall rule, generate keys, and connect a browser integration.
Prerequisites
Section titled “Prerequisites”You need a running Latch instance with:
- an API URL (e.g.
https://latch-api.v3ck.comin production, orhttp://localhost:4000in local development) - a dashboard URL (e.g.
https://latch-app.v3ck.comin production, orhttp://localhost:3000in local development)
1. Create your account and publication
Section titled “1. Create your account and publication”Open the dashboard, sign up, and create a publication.
2. Create a product and price
Section titled “2. Create a product and price”Go to Products and create:
| Field | Value |
|---|---|
| Product name | Premium |
| Description | Unlimited access |
| Price interval | Month |
| Amount | 999 |
You can add yearly or lifetime prices later.
3. Create a paywall rule
Section titled “3. Create a paywall rule”Go to Paywalls and add a rule like this:
| Field | Value |
|---|---|
| Name | Premium Articles |
| Type | Metered |
| URL pattern | contains /article/ |
| Meter limit | 3 |
| Product | your Premium product |
| Message | You've reached the free limit |
| Template | modal |
This gives readers 3 free matching views before the rule starts denying access.
4. Generate API keys
Section titled “4. Generate API keys”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
5. Choose an integration path
Section titled “5. Choose an integration path”Use one of these guides:
- Plain HTML integration for a static site or small custom front end
- WordPress integration for a WordPress site
- SDK installation if you are integrating Latch into a bundled JavaScript application
6. Verify the flow
Section titled “6. Verify the flow”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: falseand the matchingpaywallRule
If you also send events, the dashboard overview counts will update over time. The current overview page shows aggregate counters, not pageview charts.
What’s next
Section titled “What’s next”- Access Checks & Paywalls — understand access responses and UI behavior
- Identity & Tracking — connect logged-in readers and tracked events
- API Authentication — understand publishable, secret, and session auth