No parameter with header-text and body and footer static with url button and with quick-replay Estimated reading: 4 minutes 68 views Create a TemplateEndpointhttp://{{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.Request Body{ "name": "edit_r", "language": "en_US", "category": "MARKETING", "allow_category_change": true, "components": [ { "type": "HEADER", "format": "TEXT", "text": "Our summer sale is on!" }, { "type": "BODY", "text": "Shop now and use code CR7000 to get more offers" }, { "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" } ] } ] }Parametersname (string, required) – The unique name identifier for the template (“edit_r”). language (string, required) – The language code for the template (“en_US”). category (string, required) – The category of the template (“MARKETING”). allow_category_change (boolean, optional) – Whether the category can be changed (true). components (array, required) – The structural components of the template.Components DetailsHEADERtype (string, required) – “HEADER” format (string, required) – “TEXT” text (string, required) – “Our summer sale is on!” BODYtype (string, required) – “BODY” text (string, required) – “Shop now and use code CR7000 to get more offers” FOOTERtype (string, required) – “FOOTER” text (string, required) – “Thank you for choosing us!” BUTTONStype (string, required) – “BUTTONS” buttons (array, required) – Contains interactive buttons.QUICK_REPLYtype (string, required) – “QUICK_REPLY” text (string, required) – “Unsubscribe from Promos” URL Buttontype (string, required) – “url” text (string, required) – “Go to link” url (string, required) – “https://app.pingtochat.com“Success ResponseStatus Code: 201 APPROVED{ "id": "xxxxxx", "status": "APPROVED", "category": "MARKETING" }Edit an Existing TemplateEndpointhttp://{{your_domain}}/api/v1.0/{{phone_number_id}}/{{key}}/{{template_id}}/template_updateRequest Body{ "components": [ { "type": "HEADER", "format": "TEXT", "text": "Our summer sale is on in Urwallet!" }, { "type": "BODY", "text": "We are introducing our new product in Urwallet!" }, { "type": "FOOTER", "text": "Thank you for choosing Urwallet!" }, { "type": "BUTTONS", "buttons": [ { "type": "QUICK_REPLY", "text": "Unsubscribe Urwallet!" }, { "type": "url", "text": "Go to link", "url": "https://developers.pingtochat.com/{{1}}", "example": [ "?docs=pingtochat/wp" ] } ] } ] }Parametersname (string, required) – The unique name identifier for the template (“edit_r”). language (string, required) – The language code for the template (“en_US”). category (string, required) – The category of the template (“MARKETING”). allow_category_change (boolean, optional) – Whether the category can be changed (true). components (array, required) – The structural components of the template.Components DetailsHEADERtype (string, required) – “HEADER” format (string, required) – “TEXT” text (string, required) – “Our summer sale is on!” BODYtype (string, required) – “BODY” text (string, required) – “Shop now and use code CR7000 to get more offers” FOOTERtype (string, required) – “FOOTER” text (string, required) – “Thank you for choosing us!” BUTTONStype (string, required) – “BUTTONS” buttons (array, required) – Contains interactive buttons.QUICK_REPLYtype (string, required) – “QUICK_REPLY” text (string, required) – “Unsubscribe from Promos” URL Buttontype (string, required) – “url” text (string, required) – “Go to link” url (string, required) – “https://app.pingtochat.com“Response{ "success": true, "id": "xxxxxx", "name": "edit_r", "category": "marketing" }NotesThe {{your_domain}} should be replaced with the actual domain. The {{phone_number_id}}, {{key}}, and {{template_id}} should be replaced with the actual values. Ensure that the request body is formatted correctly as JSON. Only authorized users with a valid key can create or update templates. Categories may be restricted based on platform policies.