Skip to main content
Send Media and Location Headers
Templates with dynamic headers can receive an image, video, document, or location at send time. The header type must match the approved template.

Supported media

The media URL must be publicly reachable by the WhatsApp service.

Media header

string
required
Public URL of the image, video, or PDF that matches the template header type.
string
Display name for a PDF document. The value must contain 1–200 characters. If omitted, the document name defaults to Document.
For per-recipient body values, keep MediaFilePath at the top level and replace BulkPayload with CustomPayload:
A top-level media file is shared by every recipient in the request. Use carousel cards when each recipient or card needs separate media.

Location header

object
required
Location content for a template with a location header.
string
required
Latitude of the location.
string
required
Longitude of the location.
string
required
Display name for the location.
string
required
Human-readable street address.
As with media, a top-level location is shared by all recipients. BodyVariables is optional when the approved template has no body placeholders.