Skip to content

webhook_routes

diapason.server.webhook_routes

Webhook endpoints for receiving messages from external platforms.

create_webhook_router(bridge, twilio_auth_token='', bluebubbles_password='', whatsapp_verify_token='', whatsapp_app_secret='', sendblue_channel=None)

Create a FastAPI router with webhook endpoints.

Parameters:

Name Type Description Default
bridge Any

ChannelBridge instance for routing messages.

required
twilio_auth_token str

Twilio auth token for signatures.

''
bluebubbles_password str

BlueBubbles server password.

''
whatsapp_verify_token str

WhatsApp verification token.

''
whatsapp_app_secret str

WhatsApp app secret for HMAC.

''
sendblue_channel Any

SendBlueChannel instance for reply-back.

None