# WA Hub — quickstart for an AI agent Human? Use the guided setup instead: open this admin's UI and click Wizard mode. This server runs one WhatsApp "bridge" process per phone number ("instance"). Everything below is copy-pasteable. Two auth schemes: x-api-key header for everything under /i//... (sending and receiving); Authorization: Bearer for /mcp. Never the admin key for either. ## Concepts - instance: lowercase id for one WhatsApp number, e.g. "senai". One pm2 process. - bridge: the Node/Baileys process for one instance, listens on its own port. - admin: this server (port 8800) — creates/edits/deletes instances, proxies to each bridge, issues API keys, runs health checks. - consumer: an app that receives inbound WhatsApp events from one instance, either "core" (a local process), "webhook" (your own URL), or filtered to specific groups only. ## 1. Create a number POST /api/numbers headers: x-admin-key: (or a logged-in session cookie) body: {"instance":"myapp","nickname":"My App","phone":"+60123456789","telco":"Maxis"} -> {"number": {...}, "qrUrl": "/api/numbers/myapp/qr", "output": "