Templates
Create a template
POST
Create a template in WhatsApp's format (name, language, category, components). It starts as PENDING.
HTTPBearerheader
AuthorizationBearer <token>phone_number*stringYour WhatsApp number, digits only, e.g. 393401234567.
application/json- body
name*stringLowercase letters, digits and underscores.
language*stringLanguage code, e.g. it or en_US.
category*TemplateCategoryValue in
"UTILITY""AUTHENTICATION""MARKETING"components*array<>HEADER, BODY, FOOTER and BUTTONS, in WhatsApp's template format.
[key: string]?anyCreated
application/json- response
WhatsApp's response, passed through unchanged.
[key: string]?anycurl -X POST 'https://api.wapiu.ai/v1/numbers/393401234567/templates' \ -H 'Content-Type: application/json' \ -d '{ "name": "order_shipped", "language": "it", "category": "UTILITY", "components": [ { "type": "BODY", "text": "Ciao {{1}}, il tuo ordine {{2}} è in viaggio.", "example": { "body_text": [ [ "Mario", "A1234" ] ] } } ]}'Example Response
{}