LM-05
Docs
LM-05Docs
The manual, from page one.
Quick starts for six platforms, thirty-one guides, ten SDKs and an API reference. Search the index below, or pick your framework and be signed in before your coffee is cold.
31 guides in 6 chapters.
- Title
- Docs
- Doc. no.
- LM-05
- Rev.
- 04
- Issued
- Nov 2026
- Sheet
- 1 of 133
1.0Quick start
Pick your framework. Sign in within the hour.
Each quick start ends with a real session in your app, not a hello world. The median time from install to first sign-in is 11 minutes.
Quick start · Next.js
Install the SDK
One package for the components, the hooks and the server helpers.
Terminalnpm install @latch/nextjsAdd your two keys
From the dashboard, under API keys. The publishable key is safe in the browser; the secret key never leaves your server.
.env.localLATCH_PUBLISHABLE_KEY=pk_test_Y2xlYXItb3dsLTQ2LATCH_SECRET_KEY=sk_test_9f2c71ab04de8b3c5a16Wrap the app and guard the routes
The provider keeps the session fresh; the middleware turns signed-out requests away before your code runs.
middleware.tsimport { latchMiddleware } from "@latch/nextjs/server";export default latchMiddleware({ protect: ["/app(.*)"] });Render the sign-in page
Visit /sign-in, enter your email and the code you receive. You now have a session.
app/sign-in/page.tsximport { SignIn } from "@latch/nextjs";export default function Page() { return <SignIn />;}
At the end
A signed-in user, a 60-second session token rotating in the background and a protected route that turns signed-out requests away.
- Package
- @latch/nextjs
- Steps
- 4
- Median time
- 8 min
2.0Guides
The guides, as a table of contents.
Thirty-one guides in six chapters, written to be read in order the first time and searched every time after. Type in the field at the top of the page, or press / anywhere.
1Getting started
2Sign-in methods
3Sessions and tokens
4Organizations
5Components and hooks
6Operations
SDKs
3.0SDKs
Ten SDKs, released together.
Every SDK moves to the new minor version on release day, so the version you read about in the changelog is the one you can install. Patches ship as needed.
| Package | Platform | Version | Released | Requires | |
|---|---|---|---|---|---|
| @latch/nextjs | Next.js | 4.12.0 | 18 Nov 2026 | Next 14.2+ | |
| @latch/react | React SPA | 4.12.0 | 18 Nov 2026 | React 18+ | |
| @latch/expo | iOS, Android | 4.12.1 | 19 Nov 2026 | Expo SDK 53+ | |
| @latch/express | Node API | 4.12.0 | 18 Nov 2026 | Node 20+ | |
| @latch/js | Any browser | 4.12.0 | 18 Nov 2026 | ES2020 | |
| @latch/backend | Any server JS | 4.12.0 | 18 Nov 2026 | Node 20, Bun, Deno | |
| latch-go | Go | 2.8.1 | 11 Nov 2026 | Go 1.22+ | |
| latch-python | Python | 3.4.0 | 18 Nov 2026 | Python 3.10+ | |
| LatchSwift | iOS, macOS | 2.3.0 | 4 Nov 2026 | iOS 16+ | |
| latch-android | Android | 2.3.1 | 12 Nov 2026 | API 26+ |
@latch/nextjs
- Platform
- Next.js
- Version
- 4.12.0
- Released
- 18 Nov 2026
- Requires
- Next 14.2+
@latch/react
- Platform
- React SPA
- Version
- 4.12.0
- Released
- 18 Nov 2026
- Requires
- React 18+
@latch/expo
- Platform
- iOS, Android
- Version
- 4.12.1
- Released
- 19 Nov 2026
- Requires
- Expo SDK 53+
@latch/express
- Platform
- Node API
- Version
- 4.12.0
- Released
- 18 Nov 2026
- Requires
- Node 20+
@latch/js
- Platform
- Any browser
- Version
- 4.12.0
- Released
- 18 Nov 2026
- Requires
- ES2020
@latch/backend
- Platform
- Any server JS
- Version
- 4.12.0
- Released
- 18 Nov 2026
- Requires
- Node 20, Bun, Deno
latch-go
- Platform
- Go
- Version
- 2.8.1
- Released
- 11 Nov 2026
- Requires
- Go 1.22+
latch-python
- Platform
- Python
- Version
- 3.4.0
- Released
- 18 Nov 2026
- Requires
- Python 3.10+
LatchSwift
- Platform
- iOS, macOS
- Version
- 2.3.0
- Released
- 4 Nov 2026
- Requires
- iOS 16+
latch-android
- Platform
- Android
- Version
- 2.3.1
- Released
- 12 Nov 2026
- Requires
- API 26+
API reference
4.0API reference
A REST API with nothing clever in it.
JSON in, JSON out, one version header, cursor pagination everywhere. The SDKs are thin wrappers over it, so anything the dashboard can do, your code can do.
4.1Resources
- Users
- 14 endpoints
- Sessions
- 6 endpoints
- Organizations
- 18 endpoints
- Memberships
- 7 endpoints
- Invitations
- 5 endpoints
- SSO connections
- 9 endpoints
- Webhooks
- 4 endpoints
Base URL
https://api.latch.example/v1
Authenticate with your secret key as a bearer token. Every list endpoint takes limit and starting_after.
/v1/sessions/sess_c5n2hr8w3e/revokeLatch-Version: 2026-11-01curl -X POST https://api.latch.example/v1/sessions/sess_c5n2hr8w3e/revoke \ -H "Authorization: Bearer $LATCH_SECRET_KEY" \ -H "Latch-Version: 2026-11-01" \ -d '{ "reason": "impossible_travel" }'{ "id": "sess_c5n2hr8w3e", "object": "session", "user_id": "usr_2f8c41d07a", "status": "revoked", "revoked_at": "2026-11-18T09:52:07Z", "revoke_reason": "impossible_travel", "last_active_at": "2026-11-18T09:48:40Z", "client": { "ip": "45.88.97.112", "city": "Frankfurt", "country": "DE" }}5.0Status
Status and support.
Operational right now, with the last 90 days on every line. When something breaks, the incident gets a write-up on the security page within five working days.
All systems operational
Last 90 days · 22 Aug to 20 Nov 2026
- Sign-in API99.998% uptime over 90 days, 1 days degraded
- Token verification, edge99.995% uptime over 90 days, 1 day with downtime
- Dashboard100% uptime over 90 days
- Email delivery99.991% uptime over 90 days, 2 days degraded
- SCIM and webhooks100% uptime over 90 days
5.2Support, by plan
- Free
- Community forum
- Pro
- Email, 1 business day
- Business
- 4 hours, shared channel
- Enterprise
- 1 hour, 24/7, named engineer
6.0
Get started
6.0Get started
Page one takes about a minute.
Install the SDK for your framework, paste the two keys and render the sign-in component. The quick start above covers the rest.
npm install @latch/nextjsIncluded on Free
- Monthly active users
- 10,000
- Passkeys, codes, links
- Included
- Social providers
- 3
- Organizations
- 5 members each
- Card required
- No