post
https://backend.psyco.ai/enterprise/staging/communication/template
Creates a new communication template for the authenticated tenant.
Feature Flag Required: For create templates your tenant must be enabled this feature.
Template Approval Flow
- Initial Submission: The template is created with status
pendingand submitted to WhatsApp - Immediate Polling: The API will poll WhatsApp for up to ~10 seconds to check approval status
- Asynchronous Processing: If not approved within ~10 seconds, template remains
pending - Background Updates: A cron job checks pending templates every 5 minutes
- Status Updates: Template status will be updated to
approved,rejected, orfailed(if >48h pending)
Status Values
pending: Awaiting WhatsApp approval (may take up to 48 hours)approved: Template approved and ready to userejected: Template rejected by WhatsApp (check database for rejection reason)failed: Approval timeout after 48 hours without response
Note: Most templates are approved within minutes, but WhatsApp may take up to 48 hours.