GOWA - WhatsApp REST API with support for UI, Multi Account, Webhooks, and MCP, and Chatwoot. Built with Golang for efficient memory use.
Go botgogolanggolang-whatsappgolang-whatsapp-apirestrest-apiwhatsappwhatsapp-apiwhatsapp-api-gowhatsapp-multi-devicewhatsapp-web-multi-device
Domain contracts
These packages define request/response DTOs and usecase/storage interfaces. Validation, SQL, transport parsing, and WhatsApp operations belong in other layers.
- Send DTOs live in
send/; retainBaseRequestwhere chat/contact targeting uses it.send/interfaces.gocomposes the smaller sender interfaces intoISendUsecase. - Preserve JSON and form tags across REST, MCP, views, docs, and tests. Optional
ReplyMessageID *stringremainsreply_message_id; boolean filters use*boolwhen omitted andfalsehave different meanings. - Existing multipart and whatsmeow types may remain in contracts that need them; do not spread protocol dependencies into unrelated DTOs.
chatstorage/chatstorage.goholds storage entities, including Chatwoot links and retry events. PreserveDeviceIDthroughout message, chat, and edit flows; these Chatwoot entities are persistence contracts, not REST API payloads.- For repository changes, use
chatstorage/interfaces.goand the linked storage guide. User/device lookups useGetMessageByIDAndDevice; chat-specific lookups can useGetMessageByIDChatAndDevice. Global methods need an explicitly global caller contract.