Create template w/ document header, text body, a phone number button, and a URL button
POST https://graph.facebook.com/{{api-version}}/{{waba-id}}/message_templates
- Guide: Message Templates
- Guide: How To Monitor Quality Signals
- Endpoint reference: WhatsApp Business Account > Message Templates
Request Body
{"name"=>"order_confirmation", "language"=>"en_US", "category"=>"UTILITY", "components"=>[{"type"=>"HEADER", "format"=>"DOCUMENT", "example"=>{"header_handle"=>["4::YXBwbGljYXRpb24vcGRm:ARZVv4zuogJMxmAdS3_6T4o_K4ll2806avA7rWpikisTzYPsXXUeKk0REjS-hIM1rYrizHD7rQXj951TKgUFblgd_BDWVROCwRkg9Vhjj-cHNQ:e:1681237341:634974688087057:100089620928913:ARa1ZDhwbLZM3EENeeg"]}}, {"type"=>"BODY", "text"=>"Thank you for your order, {{1}}! Your order number is {{2}}. Tap the PDF linked above to view your receipt. If you have any questions, please use the buttons below to contact support. Thanks again!", "example"=>{"body_text"=>[["Mark", "860198-230332"]]}}, {"type"=>"BUTTONS", "buttons"=>[{"type"=>"PHONE_NUMBER", "text"=>"Call", "phone_number"=>"16467043595"}, {"type"=>"URL", "text"=>"Contact Support", "url"=>"https://www.examplesite.com/support"}]}]}
HEADERS
| Key | Datatype | Required | Description |
RESPONSES
status: OK
{"id":"1689556908129832","status":"PENDING","category":"UTILITY"}