REST API · v1.0.0

The Hub
API

The backend powering The Hub - a multi-vendor e-commerce marketplace built for the Kenyan market. Handles auth, merchant onboarding, product listings, orders, and MPESA payments.

Endpoints

API surface

Built with

Tech stack

Next.js
TypeScript
PostgreSQL
Prisma
Node.js
Tailwind
Git
M
MPESA
ZOD
Zod
JWT
JWT
MJL
MJML
MAIL
Nodemailer

Base URL

All requests are prefixed with /api

Responses always include a success boolean and a data or error field. Authentication uses JWT Bearer tokens with a 15-minute access token and a 7-day rotating refresh token.