Parameter with header-pdf and body and button quick-replay,visit-website, phone number Estimated reading: 3 minutes 49 views This document provides detailed information about the Utility Template with Parameter used for communication purposes. This template allows businesses to send structured messages to users for transactional or informational purposes.Endpointhttp://{{your_domain}}/api/v1.0/{{phone_number_id}}/{{key}}/message_templates{{your_domain}}: Your domain URL where the API is hosted. {{phone_number_id}}: The unique identifier of the phone number used for sending messages. {{key}}: Your API key for authentication.How to create keyRequest HeadersAuthorization: Bearer token for authentication. Content-Type: Should be set to application/json.Template InformationName: utility_parameter_attachment Language: en_US (English – United States) Category: MARKETING Allow Category Change: YesComponentsThe utility_parameter_attachment template consists of the following components:1. HeaderType: HEADER Format: MEDIA Example: jsonCopyEdit{ "media_url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf" } Purpose: Displays a media file (in this case, a PDF file).2. BodyType: BODY Text: “We are introducing {{1}} new product about {{2}}”Purpose: This component allows dynamic insertion of values through parameters ({{1}} and {{2}}), which will be replaced with actual data at runtime. Example: jsonCopyEdit{ "body_text": [ [ "our", "whatsapp message app" ] ] }3. FooterType: FOOTER Text: “Thank you for choosing us!”Purpose: Displays a closing message at the bottom of the template.4. ButtonsType: BUTTONS Buttons:Type: QUICK_REPLYText: “Unsubscribe from Promos” Purpose: A quick reply button to allow the recipient to opt out of promotions. Type: URLText: “Go to link” URL: “https://app.pingtochat.com/“ Purpose: Provides a clickable link to direct the user to a URL. Type: PHONE_NUMBERText: “Call” Phone Number: “91xxxxxxxxxx” Purpose: Initiates a call to the given phone number.Sample Request{ "name": "utility_parameter_attachment", "language": "en_US", "category": "MARKETING", "allow_category_change": true, "components": [ { "type": "HEADER", "format": "MEDIA", "example": { "media_url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf" } }, { "type": "BODY", "text": "We are introducing {{1}} new product about {{2}}", "example": { "body_text": [ [ "our", "whatsapp message app" ] ] } }, { "type": "FOOTER", "text": "Thank you for choosing us!" }, { "type": "BUTTONS", "buttons": [ { "type": "QUICK_REPLY", "text": "Unsubscribe from Promos" }, { "type": "url", "text": "Go to link", "url": "https://app.pingtochat.com/" }, { "type": "PHONE_NUMBER", "text": "Call", "phone_number": "919526986676" } ] } ] }Success ResponseStatus Code: 201 APPROVED{ "id": "xxxxxx", "status": "APPROVED", "category": "MARKETING" }NotesThe template allows changes to the category, as allow_category_change is set to true. The template is designed for marketing messages, introducing new products and providing a call-to-action with multiple buttons for user interaction (Unsubscribe, Go to Link, and Call). The Quick Reply Button allows recipients to easily opt out of promotional messages. The URL Button redirects users to an external link. The Phone Number Button enables direct calling to customer support.