إنتقل إلى المحتوى الرئيسي

Send a Meta-approved WhatsApp template

POST 

/v1/whatsapp/templates

x-scope: "whatsapp:send"

Templates can be sent at any time, including outside the 24-hour customer-service window. The template must be pre-approved by Meta for the agent's WhatsApp Business Account; listWhatsAppTemplates shows each template's status and what to fill in. Before queuing, Mojeeb checks the name and language against the number's templates (422 template_not_found or template_not_found_for_language). That check accepts a template whatever its status, so one that isn't approved fails at Meta instead. The check is skipped when Mojeeb can't read the templates from Meta, and when the number has more than 100 templates and the name or language isn't among the 100 Mojeeb reads: the send is then accepted (202) and Meta's verdict shows in its status.

Request​

Responses​

Accepted for asynchronous processing. The message is queued; final delivery happens via the WhatsApp Business Cloud API. Poll GET /v1/whatsapp/messages/{id} to track status.

Response Headers
    X-Correlation-ID

    Correlation id for this request — paste into support tickets.

    Idempotent-Replayed

    Present and true when the response is a replay of a prior request.