Routes & Endpoints
Webhooks & Callbacks
| Method | Path | Handler |
|---|---|---|
GET, POST | /webhook/whatsapp | WhatsApp Cloud API verification & inbound messages (src/handlers/webhook.rs) |
POST | /webhook/razorpay | Razorpay payment webhook, HMAC-SHA256 verified (src/billing/webhook.rs) |
POST | /data-deletion | Meta data-deletion callback (src/handlers/data_deletion.rs) |
POST | /auth/whatsapp/start | Start Meta / WhatsApp Embedded Signup login (src/handlers/auth.rs) |
POST | /auth/dev-login | Local dev sign-in when DEV_MODE=1 (src/handlers/auth.rs) |
POST | /whatsapp/signup/callback | Meta Embedded Signup completion (src/handlers/whatsapp_signup.rs) |
Health & Static Assets
Static files in public/ are served directly by Cloudflare’s [assets] edge layer before the Worker runs. Built-in Worker routes:
/robots.txt/sitemap.txt/logo.svg/site.webmanifest/browserconfig.xml/favicon-16.png/favicon-32.png/apple-touch-icon.png/logo-192.png/logo-512.png/mstile-150x150.png/health
JSON API (/api/*)
Mutations (POST, PUT, DELETE) require the X-Replybots-Request: 1 header (src/api/mod.rs).
| Method | Path |
|---|---|
* | /api/bootstrap |
POST | /api/demo/chat |
GET | /api/session |
DELETE | /api/session |
DELETE | /api/account |
GET | /api/wizard |
PUT | /api/wizard/basics |
POST | /api/wizard/channels/done |
POST | /api/wizard/step |
POST | /api/wizard/complete |
GET | /api/whatsapp |
PUT | /api/whatsapp |
DELETE | /api/whatsapp |
GET | /api/billing |
POST | /api/billing/checkout |
* | /api/settings/* |
SPA Shell Routes
Handled by is_app_route in src/lib.rs (plus /wizard/*):
//index.html/pricing/features/terms/privacy/login/wizard/dashboard/dashboard/channels/dashboard/billing/dashboard/settings/wizard/