KAPOW API
Build websites, apps and integrations on top of KAPOW. Use the Shop API to work with your own shop's products, members, orders and payment links, the public catalog to list what's for sale across the marketplace, and the agent APIs to let AI assistants buy for their users.
| API | Base URL | Auth |
|---|---|---|
| Shop API | https://joinkapow.com/api/shop/v1 | Shop API key |
| Public catalog | https://joinkapow.com/api/v1 | None |
| Agent checkout (ACP) | https://joinkapow.com/acp/{shop} | Agent key |
| MCP server | https://joinkapow.com/mcp | Agent key |
Authentication
Send your key as a bearer token in the Authorization header on every request.
Authorization: Bearer stv_shop_…
- Shop API keys (
stv_shop_…) belong to one shop. Create them in your dashboard under API keys. Choose Read only or Read and write (needed for creating payment links). - Agent keys (
stv_agent_…) are for AI assistants that buy on behalf of users. Create them on the agents page.
Conventions
- JSON everywhere. Responses are JSON. Send JSON bodies with
Content-Type: application/json. - Amounts are integers in minor units (cents or pence):
1900means $19.00. Currencies are lowercase ISO codes such asusdorgbp. - IDs are prefixed:
prod_12(product),plan_34(plan),ord_56(order),plink_7(payment link). - Timestamps are ISO 8601 in UTC, e.g.
2026-11-21T18:30:00.000Z. - Pagination: list endpoints accept
limit(1 to 100, default 50) andpage(from 1), and returnhas_more.
{ "data": [ … ], "page": 1, "has_more": false }
Errors & rate limits
Errors use standard HTTP status codes and a consistent body:
{ "error": { "code": "unauthorized", "message": "Missing or invalid shop API key." } }
| Status | Meaning |
|---|---|
400 | Something in your request is invalid. The message says what. |
401 | Missing, invalid or revoked key. |
403 | The key doesn't have permission (for example a read-only key on a write endpoint). |
404 | Not found. |
422 | Valid request, but it can't be done (for example payouts aren't set up yet). |
429 | Too many requests. Wait for the Retry-After seconds and try again. |
Each Shop API key can make 120 requests per minute. Repeated requests with invalid keys are blocked temporarily.
Shop API
Everything here is limited to the shop the key belongs to.
GET/shop
Your shop’s public details.
curl https://joinkapow.com/api/shop/v1/shop \ -H "Authorization: Bearer $SHOP_KEY"
const res = await fetch("https://joinkapow.com/api/shop/v1/shop", {
headers: { Authorization: `Bearer ${process.env.SHOP_KEY}` },
});
const shop = await res.json();import os, requests
shop = requests.get("https://joinkapow.com/api/shop/v1/shop",
headers={"Authorization": f"Bearer {os.environ['SHOP_KEY']}"}).json(){
"id": 7,
"slug": "my-shop",
"name": "My Shop",
"tagline": "Weekly lessons and a private community",
"description": "…",
"category": "education",
"url": "https://joinkapow.com/s/my-shop",
"hub_url": "https://joinkapow.com/hub/my-shop",
"created_at": "2026-11-21T18:30:00.000Z"
}
GET/products
All products in your shop with their plans (including inactive ones, flagged with "active").
{
"data": [{
"id": "prod_12",
"name": "Pro membership",
"description": "Lessons, templates and live calls",
"active": true,
"created_at": "2026-11-21T18:30:00.000Z",
"plans": [
{ "id": "plan_34", "name": "Monthly", "price": 1900, "currency": "usd", "interval": "month", "trial_days": 7, "active": true },
{ "id": "plan_35", "name": "Lifetime", "price": 14900, "currency": "usd", "interval": null, "trial_days": 0, "active": true }
]
}]
}
GET/members
People who currently have access (paid, active or past-due memberships), newest first.
| Parameter | Type | Description |
|---|---|---|
limit | integer | 1 to 100, default 50 |
page | integer | Page number, default 1 |
{
"data": [
{ "email": "ada@example.com", "name": "Ada", "member_since": "2026-11-02T09:12:00.000Z", "products": ["prod_12"] }
],
"page": 1,
"has_more": false
}
GET/access
Check whether someone has access. The building block for members-only apps.
| Parameter | Type | Description |
|---|---|---|
email | string | Required. The person’s email address (not case-sensitive). |
product | string | Optional. Only check one product, e.g. prod_12. |
curl "https://joinkapow.com/api/shop/v1/access?email=ada@example.com&product=prod_12" \ -H "Authorization: Bearer $SHOP_KEY"
const url = new URL("https://joinkapow.com/api/shop/v1/access");
url.searchParams.set("email", "ada@example.com");
const { has_access } = await (await fetch(url, {
headers: { Authorization: `Bearer ${process.env.SHOP_KEY}` },
})).json();r = requests.get("https://joinkapow.com/api/shop/v1/access",
params={"email": "ada@example.com"},
headers={"Authorization": f"Bearer {os.environ['SHOP_KEY']}"})
has_access = r.json()["has_access"]{ "email": "ada@example.com", "has_access": true, "products": ["prod_12"] }
GET/orders
Completed orders, newest first.
| Parameter | Type | Description |
|---|---|---|
status | string | Optional: paid, active, past_due, canceled or refunded |
limit | integer | 1 to 100, default 50 |
page | integer | Page number, default 1 |
{
"data": [{
"id": "ord_56",
"status": "paid",
"email": "ada@example.com",
"product": "prod_12", "product_name": "Pro membership",
"plan": "plan_35", "plan_name": "Lifetime",
"amount": 14900, "discount": 0, "platform_fee": 1490, "currency": "usd",
"channel": "web",
"created_at": "2026-11-21T18:30:00.000Z"
}],
"page": 1,
"has_more": false
}
channel is web for normal checkouts and agent for purchases made by AI assistants.
GET/stats
Totals for your shop.
{ "members": 42, "orders": 57, "gross_sales": 128400, "platform_fees": 12840, "currency": "usd", "rating": 4.8, "reviews": 12 }
GET/payment_links
Your payment links, newest first. Supports limit and page.
{
"data": [{
"id": "plink_7",
"url": "https://joinkapow.com/l/Ab3xK9pQ2m",
"name": "Instagram bio",
"plan": "plan_35",
"promo_code": "LAUNCH20",
"active": true,
"clicks": 318,
"created_at": "2026-11-21T18:30:00.000Z"
}],
"page": 1,
"has_more": false
}
POST/payment_links
Create a shareable checkout link for one of your plans. Needs a "Read and write" key.
| Parameter | Type | Description |
|---|---|---|
plan | string | Required. The plan to sell, e.g. plan_35. |
name | string | Optional label only you see (max 60 characters). |
promo_code | string | Optional. One of your shop’s promo codes, applied automatically. |
curl -X POST https://joinkapow.com/api/shop/v1/payment_links \
-H "Authorization: Bearer $SHOP_KEY" \
-H "Content-Type: application/json" \
-d '{"plan":"plan_35","name":"Newsletter","promo_code":"LAUNCH20"}'const res = await fetch("https://joinkapow.com/api/shop/v1/payment_links", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SHOP_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ plan: "plan_35", name: "Newsletter" }),
});
const link = await res.json(); // link.urllink = requests.post("https://joinkapow.com/api/shop/v1/payment_links",
json={"plan": "plan_35", "name": "Newsletter"},
headers={"Authorization": f"Bearer {os.environ['SHOP_KEY']}"}).json()
print(link["url"])Returns 201 with the new link (same shape as above). Returns 422 if the plan isn't yours, payouts aren't set up for a paid plan, the promo code doesn't exist, or you already have 50 active links.
Public catalog
Read-only, no key needed, and allowed from browsers on any website. Lists shops and products that are live on the marketplace and open to AI agents.
GET/api/v1/shops
Up to 200 live shops.
curl https://joinkapow.com/api/v1/shops
GET/api/v1/products
Search products across all shops.
| Parameter | Type | Description |
|---|---|---|
q | string | Keywords (name, description, shop) |
shop | string | Only this shop (slug) |
category | string | Category key, e.g. trading, ai, education |
max_price | integer | Only plans at or below this amount (minor units) |
currency | string | e.g. usd |
limit | integer | 1 to 100, default 20 |
curl "https://joinkapow.com/api/v1/products?q=prompts&max_price=3000"
{
"products": [{
"id": "prod_7",
"name": "Prompt Library",
"description": "…",
"includes": ["Files: Downloads"],
"plans": [{ "id": "plan_12", "name": "Lifetime",
"price": { "amount": 2900, "currency": "usd", "display": "$29" },
"billing": "one_time", "trial_days": 0, "agent_checkout": true }],
"fulfillment": "digital",
"url": "https://joinkapow.com/s/prompt-lab/p/7",
"shop": { "slug": "prompt-lab", "name": "Prompt Lab", "category": "ai", "storefront_url": "…", "acp_base_url": "…" }
}]
}
GET/api/v1/products/{id}
One product by id (e.g. prod_7), same shape as above. 404 if it isn't listed.
Payment links
A payment link (https://joinkapow.com/l/{code}) sends a customer straight to checkout for one plan, with any promo code already applied. Create them in your dashboard or with POST /payment_links, then put them on buttons, emails, QR codes or social posts. The price is always worked out by KAPOW, so a link can't be edited to change the amount. Sales through each link are counted in your dashboard.
Customers pay on KAPOW's secure checkout with cards, Apple Pay or Google Pay, and get instant access to your member hub.
AI agents (ACP & MCP)
Every shop can be bought from by AI assistants through two open standards. Agents authenticate with an agent key (stv_agent_…).
- Agentic Commerce Protocol (ACP): REST checkout sessions per shop at
https://joinkapow.com/acp/{shop}/checkout_sessions: create, read, update,/complete(pay with a shared payment token) and/cancel. Items are plan ids; one-time and free plans can be bought by agents, while recurring plans send the buyer to the web checkout. - MCP server:
https://joinkapow.com/mcp(Streamable HTTP) with tools such assearch_products,get_product,list_shops,create_checkout,complete_checkoutandget_payment_instructions. - Discovery:
https://joinkapow.com/.well-known/agentic-commerce.jsonandhttps://joinkapow.com/llms.txt.
curl -X POST https://joinkapow.com/acp/prompt-lab/checkout_sessions \
-H "Authorization: Bearer $AGENT_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 6f1c…" \
-d '{"items":[{"id":"plan_12"}],"buyer":{"email":"ada@example.com"}}'
Full agent guide and keys: For agents.
Recipe: a members-only app
Let people log in to your own app with their email, then unlock content only if they've bought from your shop. Do the check on your server:
// Node.js / Express
app.get("/members-area", async (req, res) => {
const email = req.session.email; // from your own login
const url = new URL("https://joinkapow.com/api/shop/v1/access");
url.searchParams.set("email", email);
url.searchParams.set("product", "prod_12");
const r = await fetch(url, { headers: { Authorization: `Bearer ${process.env.SHOP_KEY}` } });
const { has_access } = await r.json();
if (!has_access) return res.redirect("https://joinkapow.com/l/YOUR_LINK_CODE"); // send them to buy
res.render("members-area");
});
Recipe: sell from your own website
List your products and create a checkout link for each plan, then use the links on your "Buy" buttons:
import os, requests
H = {"Authorization": f"Bearer {os.environ['SHOP_KEY']}"}
products = requests.get("https://joinkapow.com/api/shop/v1/products", headers=H).json()["data"]
for p in products:
for plan in p["plans"]:
if plan["active"]:
link = requests.post("https://joinkapow.com/api/shop/v1/payment_links", headers=H,
json={"plan": plan["id"], "name": "Website"}).json()
print(p["name"], plan["name"], link.get("url"))
API version 1. We'll add new fields and endpoints without notice, so ignore fields you don't recognise. Breaking changes will come as a new version.