WhatsApp Direct Send API — Complete Summary

This summary covers the four key areas: what Direct Send API is, guidelines to follow, APIs for sending messages and managing templates, and where to check generated templates inside Facebook Business Manager (FBM).

Content 1: What is the Direct Send API?

The WhatsApp Direct Send API is a Meta beta feature that simplifies sending business-initiated WhatsApp utility and authentication messages without manually creating and managing message templates beforehand.

Normally, businesses create message templates, submit them for approval, and then use approved templates to initiate conversations. With Direct Send, Meta automatically matches messages to existing templates or generates templates behind the scenes.

How it works

1. Send a Message Through the API Include the category field, such as utility, in your existing WhatsApp Cloud API message request.

2. Meta Searches for a Matching Template If a matching Direct Send template exists, Meta uses it to send the message.

3. If No Match Is Found Meta uses a fallback onboarding template and asynchronously creates a new template based on the message content. Personally identifiable information (PII) is redacted, and the language is detected.

4. Future Messages Can Reuse the Generated Template Matching messages can automatically use the generated template, reducing manual template-management work.

5. Monitor Generated Templates Generated templates can be monitored through WhatsApp Manager and the API.

Main benefits

  • No need to manually create every template before sending.
  • Faster integration for utility and authentication messaging.
  • Automatic template matching and generation.
  • Option to specify your own template name for predictable message attribution.
  • Generated templates can be monitored through WhatsApp Manager and the API.

Content 2: Guidelines to follow

Direct Send is intended for utility and authentication messages only. Correct categorization is critical because Meta monitors message content and may restrict access when the API is misused.

A. Message categories

Category Direct Send support Examples
Utility Supported Order updates, delivery notifications, appointment reminders, account or transaction updates
Authentication Supported for text messages Verification codes and authentication-related messages
Marketing Not supported Promotions, discounts, promotional campaigns, upselling

Examples are illustrative; the actual category depends on the message’s purpose and content.

Do not classify a marketing message as utility simply to send it through Direct Send.

B. Content and quality guidelines

Follow these practices:

  1. Send messages only to users who are expecting them.
  2. Ensure the message serves a genuine utility or authentication purpose.
  3. Keep the message consistent with the declared category.
  4. Avoid adding promotional language, offers, discounts, or unrelated upselling to utility messages.
  5. Use clear, relevant content, such as order updates, appointment reminders, or standard opt-out instructions.
  6. Submit representative message samples for new use cases where required or available, and ensure actual messages match those samples.
  7. Monitor template quality, status changes, and category-misuse notifications.
  8. Follow Meta’s WhatsApp template guidelines: Template category guidelines .

C. Supported message formats and limits

Feature Supported formats or limit
Text Supported for utility and authentication
Interactive CTA URL buttons Supported for utility
Reply buttons Supported for utility
Mixed CTA and reply buttons Up to 10 buttons total, maximum 2 CTA buttons
Image, video, document headers Access restricted during beta
Body text 1,024 characters
Header text 60 characters
Footer text 60 characters
Button text 20 characters
Quick-reply buttons Maximum 10
CTA buttons Maximum 2
Languages WhatsApp Cloud API supported languages
Throughput Standard Cloud API throughput rules

Additional limitations:

  • Marketing messages are not supported.
  • Address, audio, contacts, location, sticker, and reaction message formats are not supported.
  • Other button formats and unlisted features are not supported during this beta.
  • URL previews using preview_url are not currently supported.
  • Media headers require access from Meta during beta.
  • Authentication currently does not support business-named templates.

References: Supported features and limits  · Supported message types .

D. Template quality and enforcement

Meta may pause templates or restrict Direct Send if quality or category guidelines are violated.

Error code Meaning
132015 Template paused because of low quality
131064 Direct Send messaging volume restricted because of category misuse
139200 Direct Send access blocked due to enforcement
132021 Template name conflicts with an existing non-Direct Send template
131000 Infrastructure failure after named-template creation retries

The potential enforcement progression is:

  1. Warning and opportunity to resolve the issue.
  2. Temporary rate limiting.
  3. Seven-day restriction.
  4. Thirty-day restriction.
  5. Permanent removal from the beta.

Meta notes that the later enforcement stages are being rolled out incrementally and may not apply to every account yet.

E. Webhooks to monitor

Your integration should monitor the following webhook events:

  • messages — message delivery status and the associated template_id.
  • message_template_status_update — template status changes, including pauses.
  • template_correct_category_detection — messages or templates flagged for category misuse.
  • account_update — Direct Send account restrictions and recovery notifications.

For review of suspected category violations, the supplied documentation lists wadirectsendapisupport@meta.com.

Content 3: APIs for sending messages and creating templates

There is an important distinction: Direct Send automatically generates templates; it does not require a separate template-creation request for each message.

A. Send a message using Direct Send

Endpoint:

POST https://orailap.azurewebsites.net/api/cloud/dialog

Example request:

json{
“messaging_product”: “whatsapp”,
“recipient_type”: “individual”,
“to”: “<WHATSAPP_USER_PHONE_NUMBER>”,
“type”: “text”,
“text”: {
“body”: “Your order #12345 has been shipped.”
},
“category”: “utility”
}

Key points:

  • Use the existing Cloud API messages endpoint.
  • Include category: “utility” or category: “authentication” where supported.
  • Use a valid access token and the correct WhatsApp Business phone number ID.
  • Meta handles template matching and generation behind the scenes.

B. Generate a template with a specific name

If you need predictable template attribution, you can provide direct_send_config.template_name.

This feature is access-restricted. Contact your Meta representative to request access.

Endpoint:

POST https://orailap.azurewebsites.net/api/cloud/dialog

Example:

json{
“messaging_product”: “whatsapp”,
“recipient_type”: “individual”,
“to”: “<WHATSAPP_USER_PHONE_NUMBER>”,
“type”: “text”,
“text”: {
“body”: “Your order #12345 has been shipped.”
},
“category”: “utility”,
“direct_send_config”: {
“template_name”: “order_shipment_update”
}
}

Template naming rules:

  • Lowercase letters, numbers, and underscores only.
  • Pattern: ^[a-z0-9_]+$.
  • Maximum length: 512 characters.
  • Must be unique within the WhatsApp Business Account (WABA).
  • A name that conflicts with an existing manually created template can cause error 132021, delivered asynchronously through the error webhook.

Behavior difference:

  • Without template_name: Meta automatically matches templates and can use fallback onboarding templates.
  • With template_name: Meta creates or reuses the Direct Send template with that exact name. There is no fallback to onboarding templates. If creation fails, Meta retries up to three times before a generic infrastructure-failure notification (131000).

Business-named templates support utility only, not authentication.

C. Check automatically generated templates

Endpoint:

curl –location ‘https://orai-apiutility.azurewebsites.net/api/Dialog/GetAllTemplate’ \

–header ‘Content-Type: application/json’ \

–data ‘{

“API_KEY”: “PW4gp09tuWmLNJgxmAio8nK4AK”

}’

This is the main API for retrieving Direct Send templates.

The response can contain:

  • name — generated or business-provided template name.
  • components — template body and other components.
  • language — template language.
  • status — current template status.
  • category — assigned category.
  • correct_category — category Meta considers correct, when available.
  • source — AUTO_GENERATED.
  • id — template ID..

.

D. Can Direct Send templates be edited or deleted?

No. According to the supplied documentation, templates generated through Direct Send—including business-named templates created through Direct Send—cannot be edited or deleted using the normal template-management workflow.

Relevant API errors:

  • 2388318 — cannot update a Direct Send template.
  • 2388330 — cannot delete a Direct Send template.

For the complete reference, see Direct Send API reference .

Table of Contents
Shopping Cart