AllMyPeptides API
JSON API for accounts, loyalty state, payment checkout creation, and a machine-readable product catalog. Base URL: https://allmypeptides.com
Authentication
Session-cookie based (amp_sess, HttpOnly, 30 days), issued by signup or login. OAuth/OIDC is not supported. Full details in auth.md.
Endpoints
| Endpoint | Description |
|---|---|
GET /api/health | Health check; returns {"status":"ok"}. |
POST /api/auth/signup | Create an account (email, password, first/last name). Sets session cookie; grants 100-point welcome bonus. |
POST /api/auth/login | Log in with email + password. Sets session cookie. |
GET /api/auth/me | Current profile and loyalty state (points, tier, history). Requires cookie. |
POST /api/state/sync | Persist profile edits (first/last name, phone) and loyalty state. Requires cookie. |
POST /api/auth/logout | Destroy the session. |
POST /api/create-checkout | Create a SumUp hosted-checkout payment link for an order; payment is completed by a human on SumUp's page. |
Product catalog
A static, regularly regenerated catalog of all products with sizes, GBP prices, and live stock flags is published at /products.json — no authentication required.
Agent content negotiation
HTML pages on this site can be requested as Markdown by sending Accept: text/markdown; the response carries Content-Type: text/markdown and an x-markdown-tokens estimate.