POST
/
api
/
communication-groups
Create Communication Group
curl --request POST \
  --url https://api.embedreach.com/api/communication-groups \
  --header 'Content-Type: application/json' \
  --data '{
  "emailChannelSenderId": "<string>",
  "emailHtmlBody": "<string>",
  "emailHtmlCss": "<string>",
  "emailCompiledHtml": "<string>",
  "emailTextBody": "<string>",
  "emailSubject": "<string>",
  "emailPreviewText": "<string>",
  "smsChannelSenderId": "<string>",
  "smsMessageBody": "<string>",
  "textMessageCompanyName": "<string>",
  "extraMergeFields": [
    {
      "id": "<string>",
      "type": "static",
      "templateName": "<string>",
      "displayName": "<string>",
      "staticValue": "<string>"
    }
  ],
  "textMessageMedia": [
    "<string>"
  ]
}'
{
  "success": true,
  "message": "<string>",
  "data": {
    "id": "<string>",
    "emailChannelSenderId": "<string>",
    "emailHtmlBody": "<string>",
    "emailTextBody": "<string>",
    "emailSubject": "<string>",
    "emailPreviewText": "<string>",
    "smsChannelSenderId": "<string>",
    "smsMessageBody": "<string>",
    "textMessageCompanyName": "<string>",
    "extraMergeFields": [
      {
        "id": "<string>",
        "type": "static",
        "templateName": "<string>",
        "displayName": "<string>",
        "staticValue": "<string>"
      }
    ],
    "textMessageMediaUrls": [
      "<string>"
    ]
  }
}

Headers

reach-tenant-id
string

If using a platform scoped JWT, you can pass in a header to impersonate a specific tenant to impersonate the request as.

Body

application/json
emailChannelSenderId
string

The id of the email channel sender

emailHtmlBody
string

The html body of the email

emailHtmlCss
string

The css body of the email

emailCompiledHtml
string

The compiled html body of the email

emailTextBody
string

The text body of the email

emailSubject
string

The subject of the email

emailPreviewText
string

The preview text of the email

smsChannelSenderId
string

The id of the sms channel sender

smsMessageBody
string

The body of the sms message

textMessageCompanyName
string | null

The company name to prefix the text message

extraMergeFields
object[] | null

The extra merge fields to include in the communication group

textMessageMedia
string[]

Base64 encoded png images to include in the text message

Response

Status 200 response

success
boolean
required
message
string
data
object