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

Basic Template Create

Estimated reading: 2 minutes 7 views

Overview

This API allows you to create a basic RCS template with a text type. A basic template is a simpler form of RCS message that contains text-based content only, making it ideal for simple notifications, greetings, or alerts.

API Endpoint

POST https://{{your_domain}}/api/v1.0/{{key}}/rcs_templates

URL Parameters:

  • {{key}}: The account key in the URL should be replaced with your actual account key. .

HTTP Method

  • POST: This method is used to send the data to create a new RCS template.

Headers

  • Content-Typeapplication/json
  • AuthorizationBearer <your_access_token> Replace <your_access_token> with your actual Bearer token for authentication.

Request Payload

The request body should be a JSON object containing the RCS template details. Below is an example of the JSON payload for creating a new RCS template:

Example Request Payload:

{
    "name": "welcome_template",
    "type": "basic",
    "basic_types": "text",
    "components": [
    {
      "message": "welcome to PINGTOCHAT"
    }
  ]
}

Field Descriptions:

Field NameTypeDescription
namestringThe name of the template (e.g., "welcome_template"). This is used for identification.
typestringThe type of template. For a basic template, this should be "basic".
basic_typesstringThe type of basic template. For text content, this should be "text".
componentsarrayAn array that contains the components of the template (e.g., messages).
messagestringThe text content of the template (e.g., "welcome to PINGTOCHAT").

Success Response

If the template is successfully created, you will receive a 200 OK HTTP status with the details of the newly created template.

Example Response:

{
    "id": "3232",
    "status": "PENDING",
    "type": "BASIC"
}

Leave a Comment

Share this Doc

Basic Template Create

Or copy link

CONTENTS