The commerce backend you don’t have to build
Products, carts, checkout, orders, customers, inventory — all through a single REST API. Focus on your storefront. We handle the commerce.
MCP Server
Connect your AI agent (Claude, Cursor, ChatGPT) to manage your store with natural language.
API Reference
Explore 100+ endpoints across Storefront and Admin APIs.
Vibe Coding — Copy this prompt to your AI agent
AI Agent Master Prompt — click to expand & copy
AI Agent Master Prompt — click to expand & copy
Platform at a glance
100+
API endpoints across Storefront & Admin
0%
Transaction fees — you keep your revenue
<50ms
Median API latency globally
99.9%
Uptime SLA on paid plans
Start building in 60 seconds
Get your API keys
- Sign in to the Dashboard
- Go to Settings > API Keys
- Click Create API Key
| Key prefix | Type | Use for |
|---|---|---|
pk_test_* | Publishable / Test | Development frontends (safe to expose in browser) |
pk_live_* | Publishable / Live | Production frontends |
sk_test_* | Secret / Test | Development backend / admin |
sk_live_* | Secret / Live | Production backend / admin |
Initialize the client
Set your environment variables:For admin operations, use a secret key on the server side:
.env
- TypeScript / Node.js
- Python
Built for developers
Two APIs, one platform
Storefront API for customer-facing apps with publishable keys.
Admin API for back-office management with secret keys.
Same base URL, different scopes.
Type-safe SDK
First-class TypeScript SDK with full autocompletion.
Install
@headless-commerce/sdk and start building with type safety out of the box.Webhooks & Events
Subscribe to real-time events — order placed, payment completed, inventory changed.
Build reactive workflows without polling.
Dashboard included
Manage products, orders, customers, and inventory from a full-featured admin dashboard — no extra setup.
MCP Server
Connect your store to AI assistants like Claude. Manage products, orders, and inventory through natural language.
Payments ready
Built-in Stripe and TossPayments support. Accept payments globally with zero platform fees on top.
What’s included
| Domain | Storefront API | Admin API |
|---|---|---|
| Products & Variants | Read | Full CRUD |
| Categories & Collections | Read | Full CRUD |
| Cart & Checkout | Full | — |
| Orders & Returns | Read own | Full management |
| Customers & Addresses | Self-service | Full CRUD |
| Inventory | — | Full management |
| Discounts | Apply to cart | Full CRUD |
| Webhooks | — | Full CRUD |
| Payments (Stripe, Toss) | Confirm | Complete |
| Regions & i18n | Read | Full CRUD |
| CSV Import/Export | — | Full |
Works with any framework
Build your storefront with the tools you already know. Headless Commerce is a pure API — no opinions on your frontend.Next.js
React Server Components, App Router, SSR/SSG — all supported.
Remix
Loaders, actions, nested routes — fetch from Headless Commerce anywhere.
Nuxt
Vue 3 composables with full TypeScript support via the SDK.
Svelte & more
Svelte, Astro, mobile apps, or plain REST — if it speaks HTTP, it works.
Next Steps
MCP Server
Connect AI agents to manage your store with natural language.
SDKs
TypeScript and Python SDK reference with all resources and methods.
Customer Authentication
JWT tokens, guest carts, and customer identity.
API Reference
Explore 100+ REST endpoints across Storefront and Admin APIs.
Start for free
No credit card required. Full API access in test mode.
View pricing
Simple, predictable pricing. Zero transaction fees.