Skip to main content
POST
Map an approved WhatsApp template
Required scope: whatsapp.edit

Authorizations

Authorization
string
header
required

Your API key, e.g. pk_live_xxxxxxxxxxxxxxxxxxxxxxxx.

Body

application/json
purpose
string
required
Required string length: 1 - 80
providerName
string
required
Required string length: 1 - 200
languageCode
string
default:en
Required string length: 2 - 12
category
enum<string>
default:UTILITY
Available options:
MARKETING,
UTILITY,
AUTHENTICATION
headerKind
enum<string>
default:NONE
Available options:
NONE,
TEXT,
IMAGE,
DOCUMENT,
VIDEO
headerBindings
object[]
Maximum array length: 24
bodyBindings
object[]
Maximum array length: 24
buttonBindings
object
bodyPreview
string | null
Maximum string length: 4000
senderId
string | null
components
object[]
Maximum array length: 4
sampleValues
object
headerMediaFileName
string | null
Maximum string length: 200

Response

Created

id
string
required
purpose
string
required
providerName
string
required
languageCode
string
required
category
enum<string>
required
Available options:
MARKETING,
UTILITY,
AUTHENTICATION
headerKind
enum<string>
required
Available options:
NONE,
TEXT,
IMAGE,
DOCUMENT,
VIDEO
headerBindings
null[]
required
bodyBindings
null[]
required
buttonBindings
object
required
bodyPreview
string | null
required
status
enum<string>
required
Available options:
DRAFT,
PENDING,
APPROVED,
REJECTED,
DISABLED
senderId
string | null
required
createdAt
string
required
updatedAt
string
required
components
null[]
required
sampleValues
object
required
rejectionReason
string | null
required
providerCheckedAt
string | null
required
submissionIsAutomatic
boolean
required
requiresRuntimeContext
boolean
required
headerMediaFileName
string | null
required
headerMediaAttached
boolean
required
clicks
number
required
providerCategory
enum<string> | null
Available options:
MARKETING,
UTILITY,
AUTHENTICATION