Skip to content

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.

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

  1. Install the SDK

    One package for the components, the hooks and the server helpers.

    Terminal
    npm install @latch/nextjs
  2. Add 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.local
    LATCH_PUBLISHABLE_KEY=pk_test_Y2xlYXItb3dsLTQ2LATCH_SECRET_KEY=sk_test_9f2c71ab04de8b3c5a16
  3. Wrap the app and guard the routes

    The provider keeps the session fresh; the middleware turns signed-out requests away before your code runs.

    middleware.ts
    import { latchMiddleware } from "@latch/nextjs/server";export default latchMiddleware({ protect: ["/app(.*)"] });
  4. 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.tsx
    import { 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
Fig. 1.1The quick start for the framework selected above, complete. Copy each block in order.

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.

Latch SDKs with their platform, current version, release date and requirements
PackagePlatformVersionReleasedRequires
@latch/nextjsNext.js4.12.018 Nov 2026Next 14.2+
@latch/reactReact SPA4.12.018 Nov 2026React 18+
@latch/expoiOS, Android4.12.119 Nov 2026Expo SDK 53+
@latch/expressNode API4.12.018 Nov 2026Node 20+
@latch/jsAny browser4.12.018 Nov 2026ES2020
@latch/backendAny server JS4.12.018 Nov 2026Node 20, Bun, Deno
latch-goGo2.8.111 Nov 2026Go 1.22+
latch-pythonPython3.4.018 Nov 2026Python 3.10+
LatchSwiftiOS, macOS2.3.04 Nov 2026iOS 16+
latch-androidAndroid2.3.112 Nov 2026API 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+

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.

POST/v1/sessions/sess_c5n2hr8w3e/revokeLatch-Version: 2026-11-01
curl -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" }'
Response200 OK41 ms
{  "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" }}
Fig. 4.1One request and its response: revoke the flagged session from Fig. 2.1 of the Sessions page.

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
Operational Degraded Downtime90 days ago → today

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.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/nextjs

Included on Free

Monthly active users
10,000
Passkeys, codes, links
Included
Social providers
3
Organizations
5 members each
Card required
No