Skip to content
Documentation

Ship a paid API in minutes

Everything you need to install Run402, protect routes, and start collecting payments — with copy-paste examples.

Install, protect, charge

  1. 1Install run402 with your package manager
  2. 2Wrap a route with protect() and set a price
  3. 3Deploy — Stripe Checkout is handled for you
Read the full guide
server.ts
import express from "express"import { protect } from "run402" const app = express() app.use(  "/premium",  protect({ price: "$0.50" })) app.get("/premium", (req, res) => {  res.json({ data: "🔓 premium unlocked" })}) app.listen(3000)