Skip to main content
POST
Submit a WhatsApp template

Authorizations

Authorization
string
header
required

Workspace API token created in Settings → API. Tokens start with adraa_.

Body

application/json
name
string
required

Template name using lowercase letters, numbers, and underscores. Include at least one letter or number.

Required string length: 3 - 512
Pattern: ^[a-z0-9_]+$
Example:

"order_tracking_update"

category
enum<string>
required

Template category submitted for approval.

Available options:
UTILITY,
MARKETING
Example:

"UTILITY"

bodyText
string
required

Customer message, with at least two words. Numbered placeholders such as {{1}} require matching sample values in bodyExamples.

Required string length: 10 - 1024
Example:

"Hello {{1}}, your order {{2}} has shipped. Track its delivery below."

from
string

Connected WhatsApp account ID, phone number ID, or business phone number. Required when multiple accounts are connected; omitted when exactly one is connected.

Required string length: 1 - 100
Example:

"+15551230000"

language
string
default:en_US

WhatsApp template language code.

Required string length: 2 - 16
Example:

"en_US"

bodyExamples
string[]

Sample values for every numbered body placeholder, in order. Values required by the body must not be empty. These are approval samples, not recipient data.

Maximum array length: 20
Maximum string length: 256
Example:
headerText
string

Optional text header. Media headers are not supported.

Maximum string length: 60
Example:

"Order update"

Optional footer text.

Maximum string length: 60
Example:

"Thank you for shopping with us"

buttons
object[]

Quick reply, website, or phone buttons. Each button must have unique text.

Maximum array length: 10

Response

Template submitted to the connected WhatsApp provider. Approval may still be pending.

template
object
required