Create template
Changed onCreate a WhatsApp template and submit it for WhatsApp approval, which is asynchronous (~24–48h). A template belongs to one WhatsApp account (WABA) and can only be sent from that account's numbers; if the organization has several accounts, choose one with whatsappAccountId: its WABA ID or the name the team gave it, e.g. "Soporte" (see whatsapp_numbers_list). Example (TEXT): { "name": "order_shipped", "language": "es", "category": "UTILITY", "contentType": "TEXT", "content": { "body": "Hola {{1}}, tu pedido ya salió." }, "variables": { "1": "Ana" } }. Example with buttons (CALL_TO_ACTION): { "name": "order_shipped_cta", "language": "es", "category": "UTILITY", "contentType": "CALL_TO_ACTION", "content": { "body": "Hola {{1}}, tu pedido ya salió.", "actions": [{ "type": "URL", "title": "Ver pedido", "url": "https://example.com/orders/{{2}}" }] }, "variables": { "1": "Ana", "2": "12345" } }. Example with a "Copy code" coupon button (CALL_TO_ACTION, MARKETING only; the code is a fixed code of up to 15 characters or a single variable filled per recipient): { "name": "buen_fin_coupon", "language": "es", "category": "MARKETING", "contentType": "CALL_TO_ACTION", "content": { "body": "Hola {{1}}, aquí está tu 15% de descuento.", "actions": [{ "type": "COPY_CODE", "title": "Copiar código", "code": "{{2}}" }] }, "variables": { "1": "Ana", "2": "BUENFIN15" } }. Example with reply buttons (QUICK_REPLY): { "name": "order_feedback", "language": "es", "category": "UTILITY", "contentType": "QUICK_REPLY", "content": { "body": "¿Te gustó tu compra?", "actions": [{ "title": "Sí", "id": "yes" }, { "title": "No", "id": "no" }] } }. Example with a header and image (CARD): { "name": "order_shipped_card", "language": "es", "category": "UTILITY", "contentType": "CARD", "content": { "headerType": "media", "mediaUrl": "https://example.com/banner.jpg", "body": "Hola {{1}}, tu pedido ya salió.", "footer": "Gracias por tu compra", "actions": [{ "type": "URL", "title": "Ver pedido", "url": "https://example.com/orders/{{2}}" }] }, "variables": { "1": "Ana", "2": "12345" } }. Example that is only an image (MEDIA): the image URL goes in content.media (an array), NOT in a variable — { "name": "promo_verano", "language": "es", "category": "MARKETING", "contentType": "MEDIA", "content": { "media": ["https://example.com/promo.png"], "body": "¡Hola {{1}}! Aprovecha nuestra promo de verano." }, "variables": { "1": "Ana" } }.
Request
- Base URLhttps://www.useboom.ai
- AuthHTTP bearer
Request body
Response
Success
Changes
- info
added the new optional request property
- info
added the new optional request property
- info
added the required property
//to the response with the status - info
added the required property
//to the response with the status
- info