Skip to main content
POST
Creates a new WhatsApp template using form data

Authorizations

Authorization
string
header
required

Your API key as a Bearer token: Authorization: Bearer tg_live_...

Body

application/json

Request body

buttonAction
enum<string>
required
Available options:
none,
call_to_action,
quick_reply,
mixed
category
enum<string>
required
Available options:
utility,
marketing,
service,
authentication
headerType
enum<string>
required
Available options:
none,
text,
video,
image,
document
language
string
required
Required string length: 2 - 10
messageBody
string
required
Required string length: 1 - 1024
templateName
string
required
Required string length: 1 - 255
addSecurityRecommendation
boolean

Authentication OTP fields

autofillText
string
Maximum string length: 255
bodyExamples
string
callButtonText
string
Maximum string length: 20
callCountryCode
string
Maximum string length: 5
callPhoneNumber
string
Maximum string length: 20
codeExpirationMinutes
integer
Required range: 1 <= x <= 90
ctaButtonText
string
Maximum string length: 20
ctaUrl
string
Maximum string length: 500
headerExamples
string
headerMediaFileId
string
headerMediaHandle
string
Maximum string length: 500
headerText
string
Maximum string length: 60
Maximum string length: 60
offerCode
string
Maximum string length: 255
quickReplyButtons
string
status
enum<string>
Available options:
pending,
approved,
rejected,
draft
supportedApps
object[]
Maximum array length: 5
templateType
string
Maximum string length: 50
urlExample
string
Maximum string length: 255
urlType
enum<string>
Available options:
static,
dynamic
whatsappIntegrationId
string
zeroTapTermsAccepted
boolean

Response

Created

data
any
error
object
message
string
meta
object
success
boolean