Template APIs

Create RCS Carousel Template

Send template creation details in the JSON request body. Use this API to create text templates, single rich cards, or multi-card carousel templates.

post/template/create

Request

  • Base URL
    https://soipapi.netcorecloud.com
  • URL
    https://soipapi.netcorecloud.com/template/create
  • Auth
    HTTP bearer

Headers

api_keystring required
Example:a3f1d5e792bc4e8aa6785c9d12f30b44

Enter your API key from the RCS Dashboard.

Content-Typestring required
Example:application/json

Must be application/json.

nc_bot_idstring
Example:abc123

Optional bot ID. If missing, the default bot is used.

Request body

action_typestring

Enter the message type you want to create.

Response

Template created successfully.

With suggestions

{
  "message": "Template created successfully",
  "payload": {
    "name": "text_message_demo",
    "type": "text_message",
    "botId": "OCHhY1alm8nJfSnj",
    "textMessageContent": "Time to go big or go home because it's India VS Australia FINALS!",
    "suggestions": [
      {
        "suggestionType": "reply",
        "postback": "click_to_win",
        "displayText": "Click to Win"
      },
      {
        "suggestionType": "url_action",
        "postback": "answer_and_win",
        "displayText": "Answer and Win",
        "url": "https://brandx.onelink.me/"
      },
      {
        "suggestionType": "dialer_action",
        "postback": "call_now_fast",
        "displayText": "Call Now Fast",
        "phoneNumber": "+919876543212"
      }
    ],
    "createdViaApi": true
  },
  "status": "Success"
}

Without suggestions

{
  "message": "Template created successfully",
  "payload": {
    "name": "text_message_demo",
    "type": "text_message",
    "botId": "OCHhY1alm8nJfSnj",
    "textMessageContent": "Time to go big or go home because it's India VS Australia FINALS!",
    "createdViaApi": true
  },
  "status": "Success"
}

Changes

No recorded changes to this operation across all 1 revision of this API.