wacrm/src/app/api/whatsapp
Arnas Donauskas 19e35accb6
feat(contacts): send an approved template to a single contact (#296)
Adds a "Send template" action to the contact detail view so the
business can initiate (or re-open) a WhatsApp conversation with one
known contact by sending an approved template — without the awkward
single-recipient broadcast workaround.

The /api/whatsapp/send route now accepts `contact_id` as an
alternative to `conversation_id`: it verifies the contact is in the
caller's account, find-or-creates the contact's conversation
server-side, then runs the existing send path (phone-variant retry,
template send-builder, message + conversation persistence, flow
pause). The contact view reuses the existing inbox TemplatePicker for
template selection + variable/header/button input, keeping Meta
compliance unchanged (approved templates only).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-29 17:11:02 +03:00
..
broadcast fix(multi-user): share whatsapp_config + templates by account 2026-06-01 14:01:46 +03:00
config fix(whatsapp): allow connecting Meta test numbers without a PIN 2026-06-15 17:01:36 +03:00
media/[mediaId] fix(multi-user): share whatsapp_config + templates by account 2026-06-01 14:01:46 +03:00
react fix(multi-user): share whatsapp_config + templates by account 2026-06-01 14:01:46 +03:00
send feat(contacts): send an approved template to a single contact (#296) 2026-06-29 17:11:02 +03:00
templates feat(templates): upload image for template headers; fix image-URL submit (#230) 2026-06-18 14:00:54 +03:00
webhook fix(webhook): run inbound processing in after() so it survives serverless freeze 2026-06-26 17:34:44 +03:00