200 OK acknowledgment to third-party providers.
Webhook Endpoints Directory
1. Meta Lead Ads Webhook
Used by Meta’s Graph API to push leads the moment a user submits a form on Facebook or Instagram.Verification Handshake (GET)
hub.verify_token against the META_WEBHOOK_VERIFY_TOKEN environment variable and returns hub.challenge with HTTP 200.
Event Payload (POST)
Lead.
2. Voice Agent & Carrier Webhooks
Carrier Call Answer XML (Twilio / Vobiz / Telnyx)
When an outbound call placed via PSTN carrier connects to the customer’s phone, the carrier requests call instructions from BrokerOS:Response (Vobiz XML)
Response (Telnyx TeXML WebSocket Stream)
Voice Platform Event Webhook
When the AI agent terminates the call, Vapi or Retell sends call analytics:3. WhatsApp Meta Cloud API Webhook
sent, delivered, read, failed) and inbound customer replies. Updates are dispatched over the Socket.IO whatsapp-realtime.gateway.ts to reflect instantly on the web and mobile team inboxes.
4. CRM In-Browser Telephony & Softphone Webhooks
Managed byCrmTelephonyWebhooksController to handle softphone dialing, duration tracking, and call recording uploads:
Twilio Voice Dial TwiML (POST)
Twilio Recording Callback (POST)
- Server downloads audio buffer using authenticated Basic Auth.
- Streams audio to Vercel Blob storage (
calls/:targetId-:timestamp-:id.mp3). - Resets
User.isOnCall = false. - Enqueues Groq Whisper AI transcription, next step extraction, and non-destructive lead profile updates.