Skip to content

API Reference parrot.services.whatsapp

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.services.whatsapp

View source

WhatsApp Configuration API Handler.

Provides REST endpoints to manage the WhatsApp Bridge:

  • QR code authentication (superuser-only)
  • Connection status and hook management
  • Test messaging and statistics

Class WhatsAppConfigHandler

Authenticated endpoints for WhatsApp bridge management.

Routes registered by setup_whatsapp_bridge: GET /api/whatsapp/status — connection status POST /api/whatsapp/disconnect — stop hooks GET /api/whatsapp/hooks — list hooks POST /api/whatsapp/hooks — create hook PUT /api/whatsapp/hooks/{hook_id} — update hook DELETE /api/whatsapp/hooks/{hook_id} — delete hook POST /api/whatsapp/send — send test message GET /api/whatsapp/stats — message statistics

Method WhatsAppConfigHandler.get

Dispatch GET based on path suffix.

get()

Method WhatsAppConfigHandler.post

Dispatch POST based on path suffix.

post()

Method WhatsAppConfigHandler.put

Update an existing WhatsApp hook.

put()

Method WhatsAppConfigHandler.delete

Delete an existing WhatsApp hook.

delete()

Class WhatsAppQRHandler

Authenticated endpoints for QR code authentication.

Routes registered by setup_whatsapp_bridge: GET /api/whatsapp/qr — QR code availability / metadata GET /api/whatsapp/qr/image — raw QR PNG proxied from bridge

Method WhatsAppQRHandler.get

Dispatch GET based on path suffix.

get()

Attribute logger

Function setup_whatsapp_bridge

Register WhatsApp configuration API endpoints.

Usage::

from parrot.services.whatsapp import setup_whatsapp_bridge

setup_whatsapp_bridge(app, orchestrator)

setup_whatsapp_bridge(app: web.Application, orchestrator: Optional[object] = None, bridge_url: Optional[str] = None) -> None

Parameter Type Default Description
app web.Application aiohttp Application instance.
orchestrator Optional[object] None AutonomousOrchestrator (or compatible) instance.
bridge_url Optional[str] None WhatsApp Bridge URL (default http://localhost:8765).

Function whatsapp_dashboard_page

Serve the WhatsApp dashboard HTML (no auth required).

whatsapp_dashboard_page(request: web.Request) -> web.Response

Parameter Type Default Description
request web.Request

Returns: web.Response

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally