Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Routes & Endpoints

Webhooks & Callbacks

MethodPathHandler
GET, POST/webhook/whatsappWhatsApp Cloud API verification & inbound messages (src/handlers/webhook.rs)
POST/webhook/razorpayRazorpay payment webhook, HMAC-SHA256 verified (src/billing/webhook.rs)
POST/data-deletionMeta data-deletion callback (src/handlers/data_deletion.rs)
POST/auth/whatsapp/startStart Meta / WhatsApp Embedded Signup login (src/handlers/auth.rs)
POST/auth/dev-loginLocal dev sign-in when DEV_MODE=1 (src/handlers/auth.rs)
POST/whatsapp/signup/callbackMeta 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).

MethodPath
*/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/