Create a template

Creates a WhatsApp template.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

WhatsApp Business Account ID.

string
required
length ≤ 512

Name of the template.

string
required

Language code of the template. See Supported Languages for all codes.

string
enum
required

Category of WhatsApp templates.

  • AUTHENTICATION: Enable businesses to authenticate users with one-time passcodes, potentially at multiple steps in the login process (e.g., account verification, account recovery, integrity challenges).
  • MARKETING: Include promotions or offers, informational updates, or invitations for customers to respond / take action. Any conversation that does not qualify as utility or authentication is a marketing conversation.
  • UTILITY: Facilitate a specific, agreed-upon request or transaction or update to a customer about an ongoing transaction, including post-purchase notifications and recurring billing statements.
Allowed:
int32

Use only for template category is AUTHENTICATION.
If we are unable to deliver an authentication template for an amount of time that exceeds its time-to-live, we will stop retrying and drop the message.
Defaults to 600 seconds for newly created authentication templates.
To override the default value, set this field to a value between 60 and 600 seconds. Or set it to -1 resulting in a 30-day time-to-live.
We encourage you to set a time-to-live for all of your authentication templates, preferably equal to or less than your code expiration time, to ensure your customers only get a message when a code is still usable.

components
array of objects
required
components*
Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json