v1

latestOpenAPI 3.0.12026-08-0640103344.9 KB
Group

Add Group Template

Templates are pre-saved messages that can be sent at any time simply by passing a templateId to the Message API. There are three types of templates for group:

  • Text Templates: Used to send SMS.
  • Media Templates: Used to send MMS.
  • WhatsApp Templates: Used to send WhatsApp Message.

To create a Media Template, first call the 'Upload Media File' API in the send section, then pass the 'mediaDetails' object from that response into the template object.

To create WhatsApp Template refer to the article https://help.poweredbytext.com/s/article/Creating-and-Submitting-WhatsApp-Message-Templates

post/orgunit/{orgunitId}/groups/{groupId}/templates

Path parameters

orgunitIdstring required

orgunitId

groupIdstring required

groupId

Request body

namestring required

Template name can be alphanumeric characters along with special characters.

messagestring required

This message will be sent to the subscriber when this template is used.

Response

Success

appCodestring
messagestring
isErrorboolean