Skip to main content
WG Messaging Guides

Prepare a template

A template-based first message needs an approved template on the selected connection's WhatsApp Business Account. Payment readiness is a separate prerequisite: see Billing readiness.

Reuse an approved templateโ€‹

Read GET /partner/v1/connections/{connection_id}/templates?status=all with connections:read. Select the exact name and language, confirm APPROVED, and inspect its required components. Each language has its own template ID and approval state.

List templates reference

Create one if neededโ€‹

Use templates:manage, a stable Idempotency-Key, and POST /partner/v1/connections/{connection_id}/templates. For example, submit a utility order update:

{
"name": "order_update",
"category": "UTILITY",
"language": "en_US",
"components": [{
"type": "BODY",
"text": "Your order {{1}} has shipped.",
"example": {"body_text": [["10482"]]}
}]
}

This is an illustrative submission, not a guarantee of Meta approval. Use a template appropriate to your actual workflow. 201 Created acknowledges submission; it does not mean approval. Read templates until the desired language is APPROVED. Template-status webhook delivery is not verified end to end in the current contract, so reads are the authoritative fallback.

For media headers, follow Submit a sample and Create a template for review samples and component requirements. A review sample handle is not an outbound media ID.

Match the send payloadโ€‹

Template creation components use uppercase types such as BODY; send-time components use lowercase types such as body and supply parameter values. Preserve the approved template's name, language, component types and parameter order.

Keep the first test simple. Marketing templates with configured provider validity have additional qualification requirements and must not be assumed sendable on an unqualified route.

Next: Send your first message.