Skip to main content

CreateWhatsAppTemplateInput

A new WhatsApp message template, with optional header, footer and buttons. It supports no header, a text header, or an image, video or document header, but no carousel.

input CreateWhatsAppTemplateInput {
body: String!
bodyText: [String!]!
buttons: [WhatsAppTemplateButtonInput!]!
category: String!
displayName: String!
footer: String
headerFormat: String
headerMediaUrl: String
headerText: String
language: String!
}

Fields​

CreateWhatsAppTemplateInput.body ● String! non-null scalar​

The text of the message, with {{1}}, {{2}} and so on for variables.

CreateWhatsAppTemplateInput.bodyText ● [String!]! non-null scalar​

Sample values for each placeholder in the body, in order.

CreateWhatsAppTemplateInput.buttons ● [WhatsAppTemplateButtonInput!]! non-null input​

The buttons of the template.

CreateWhatsAppTemplateInput.category ● String! non-null scalar​

Marketing, Utility or Authentication.

CreateWhatsAppTemplateInput.displayName ● String! non-null scalar​

The name of the template.

The footer text.

CreateWhatsAppTemplateInput.headerFormat ● String scalar​

The kind of header: NONE, TEXT, IMAGE, VIDEO or DOCUMENT.

CreateWhatsAppTemplateInput.headerMediaUrl ● String scalar​

The URL of the header image, video or document.

CreateWhatsAppTemplateInput.headerText ● String scalar​

The header text. Required when the header format is TEXT.

CreateWhatsAppTemplateInput.language ● String! non-null scalar​

The language name the provider uses, for example English, not the short ISO code.

Member Of​

createWhatsAppTemplate mutation