Pingtochat Docs

Pingtochat Docs

Did You Know?

We design Docy for the readers, optimizing not for page views or engagement

leafleafleafDocy banner shape 01Docy banner shape 02Man illustrationFlower illustration

No parameter with header-image and body and button quick-replay,visit-website, phone number

Estimated reading: 2 minutes 52 views

The utility_attachment_no_parameter template is a Utility Template designed for transactional or informational messaging. This template includes an image attachment, a confirmation message, and interactive buttons to engage users.

Endpoint

http://{{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 key

Request Headers

  • Authorization: Bearer token for authentication.
  • Content-Type: Should be set to application/json.

Template Details

  • Name: utility_attachment_no_parameter
  • Language: en_US (English – United States)
  • Category: UTILITY
  • Allow Category Change: true

Components

Header

  • Type: HEADER
  • Format: MEDIA
  • Example Media URL: https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png

Body

  • Type: BODY
  • Text: Item no 12CR007 is confirmed!

Footer

  • Type: FOOTER
  • Text: Thank you for choosing us!

Buttons

  • Type: BUTTONS
  • Buttons:
    1. Quick Reply: Unsubscribe from Promos
    2. URL Button:
      • Text: Go to link
      • URL: https://app.pingtochat.com/
    3. Phone Number Button:
      • Text: Call
      • Phone Number: +91xxxxxxxxxx

Example Request

{
  "name": "utility_attachment_no_parameter",
  "language": "en_US",
  "category": "UTILITY",
  "allow_category_change": true,
  "components": [
        {
            "type": "HEADER",
            "format": "MEDIA",
            "example": {
                "media_url": "https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png"
            }
        },
        {
        "type": "BODY",
        "text": "Item no 12CR007 is confirmed!"
        },
        {
        "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": "91xxxxxxxxxx"
                }
            ]
        }
    ]
}

Success Response

{
    "id": "xxxxxx",
    "status": "APPROVED",
    "category": "UTILITY"
}

Notes

  • This template is intended for transactional confirmations.
  • The Quick Reply button allows users to opt out of promotional messages.
  • The URL button directs users to an external website for further actions.
  • The Phone Number button lets users call support directly.
  • The image attachment enhances engagement by providing a visual confirmation.

Leave a Comment

Share this Doc

No parameter with header-image and body and button quick-replay,visit-website, phone number

Or copy link

CONTENTS