header-text to pdf Estimated reading: 2 minutes 72 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": "header_text_to_pdf", "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 offer" }, { "type": "FOOTER", "text": "Thank you for choosing us!" } ] }ComponentsHeaderType: TEXT Text: "Our summer sale is on!" BodyText: "Shop now and use code CR7000 to get more offer" FooterText: "Thank you for choosing us!"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": "MEDIA", "example": { "media_url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf" } }, { "type": "BODY", "text": "We are introducing our new product in Urwallet!" }, { "type": "FOOTER", "text": "Thank you for choosing Urwallet!" } ] }ComponentsHeaderType: MEDIA Format: PDF Example URL: https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf BodyText: "We are introducing our new product in Urwallet!" FooterText: "Thank you for choosing Urwallet!"Response{ "success": true, "id": "xxxxxx", "name": "edit_s", "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.