Create a new Template

Creates a new template in the system.

POSThttps://web.otpcod.ru/api/v1/api/v1/broadcast/templates
Loading code example

Header Parameters

X-API-KEYstringrequired

Enter your X-API-KEY

Body

requestDto

channelinteger<int32>

Automatically determined channel ID based on the template content (system-calculated)

contentobjectrequired
content.flowStepsarray<object>

List of flow steps

content.rcsCapabilityCheckobject
content.scenarioobject
contentTypeinteger<int32>required

Type of content for the template: 1 - Fallback, 2 - Chat Bot, 3 - RCS Capability Check

Allowed values: 1 | 2 | 3
createdAtstring<date-time>

Timestamp when the template was created (system-generated)

descriptionstring

Optional description of the template

extraRecipientListarray<string>

List of exact recipient phone numbers for the broadcast created from this template

filterListarray<string>

Identifiers of recipient filters that determine who will receive broadcasts from this template

fullRecordCountinteger<int64>

Total number of recipient phone numbers from the 'extraRecipientList' parameter (system-calculated)

idinteger<int64>

ID of template object (system-generated)

namestring

Name for the template

rcsCheckboolean

Flag indicating whether RCS check should be performed within Fallback broadcast

tagsarray<string>

Tags that recipients must have to be eligible for broadcasts created from this template

updatedAtstring<date-time>

Timestamp when the template was last updated (system-generated)