Pingtochat Docs

Pingtochat Docs

Did You Know?

Advanced visual search system powered by Ajax

leafleafleafDocy banner shape 01Docy banner shape 02Man illustrationFlower illustration

No parameter head and body

Estimated reading: 2 minutes 69 views

This document provides detailed information about the Utility Templates used for communication purposes. These templates allow businesses to send structured messages to users for transactional or informational purposes.

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 Information

Utility Template F

  • Name: utility_f
  • Language: en_US (English – United States)
  • Category: UTILITY
  • Allow Category Change: Yes

Components

1. Utility Template F Components

The utility_f template consists of a Header and a Body component.

  • Header:
    • Type: HEADER
    • Format: TEXT
    • Text: Order Infermation
    • Purpose: Provides a title for the message, indicating that it contains order-related details.
  • Body:
    • Type: BODY
    • Text: Item no CR7000 is confirmed!
    • Purpose: Serves as a confirmation notification for an item, order, or transaction.

Example Message Generation

Utility Template F

Header: Order Infermation Body: Item no CR7000 is confirmed!

Sample Request

{
  "name": "utility_f",
  "language": "en_US",
  "category": "UTILITY",
  "allow_category_change": true,
  "components": [
        {
        "type": "HEADER",
        "format": "TEXT",
        "text": "Order Infermation"
        },
        {
        "type": "BODY",
        "text": "Item no CR7000 is confirmed!"
        }
    ]
}

Success Response

Status Code: 201 APPROVED

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

Notes

  • The template allows changes to the category since allow_category_change is set to true.
  • This template is intended for utility purposes, such as order confirmations, service updates, or other transactional messages.
  • The message format is mostly fixed and does not include dynamic placeholders, making it suitable for standard notifications.

Leave a Comment

Share this Doc

No parameter head and body

Or copy link

CONTENTS