---
title: "Create a new Template"
description: "Creates a new template in the system."
openapi: "/openapi/broadcasts-api.yaml POST /api/v1/broadcast/templates"
---

> **For AI agents:** the complete documentation index is at [llms.txt](/llms.txt). Append `.md` to any page URL for its markdown version.

`POST https://web.otpcod.ru/api/v1/api/v1/broadcast/templates`

Creates a new template in the system.

## Authentication

No authentication required.

## Header parameters

- `X-API-KEY` (string, required) — Enter your X-API-KEY

## Request body

- Content type: `application/json`
  - request body (object)
    - `channel` (integer, int32) — Automatically determined channel ID based on the template content (system-calculated)
    - `content` (object, required)
      - `flowSteps` (array) — List of flow steps
        - `items` (object)
          - `channelType` (integer, int32, required)
          - `contentPattern` (object)
          - `deliveryCondition` (string, one of: DELIVERY_SUCCESS, DISPLAY_SUCCESS, SUBMIT_SUCCESS)
          - `order` (integer, int32)
          - `senderId` (string)
          - `timeout` (integer, int64)
      - `rcsCapabilityCheck` (object)
        - `senderId` (string)
      - `scenario` (object)
        - `channelId` (integer, int32)
        - `flowId` (integer, int64)
        - `senderId` (string)
    - `contentType` (integer, int32, required, one of: 1, 2, 3) — Type of content for the template: 1 - Fallback, 2 - Chat Bot, 3 - RCS Capability Check
    - `createdAt` (string, date-time) — Timestamp when the template was created (system-generated)
    - `description` (string) — Optional description of the template
    - `extraRecipientList` (array) — List of exact recipient phone numbers for the broadcast created from this template
      - `items` (string)
    - `filterList` (array) — Identifiers of recipient filters that determine who will receive broadcasts from this template
      - `items` (string)
    - `fullRecordCount` (integer, int64) — Total number of recipient phone numbers from the 'extraRecipientList' parameter (system-calculated)
    - `id` (integer, int64) — ID of template object (system-generated)
    - `name` (string) — Name for the template
    - `rcsCheck` (boolean) — Flag indicating whether RCS check should be performed within Fallback broadcast
    - `tags` (array) — Tags that recipients must have to be eligible for broadcasts created from this template
      - `items` (string)
    - `updatedAt` (string, date-time) — Timestamp when the template was last updated (system-generated)

## Response 200

OK
  - response (object)
    - `channel` (integer, int32) — Automatically determined channel ID based on the template content (system-calculated)
    - `content` (object, required)
      - `flowSteps` (array) — List of flow steps
        - `items` (object)
          - `channelType` (integer, int32, required)
          - `contentPattern` (object)
          - `deliveryCondition` (string, one of: DELIVERY_SUCCESS, DISPLAY_SUCCESS, SUBMIT_SUCCESS)
          - `order` (integer, int32)
          - `senderId` (string)
          - `timeout` (integer, int64)
      - `rcsCapabilityCheck` (object)
        - `senderId` (string)
      - `scenario` (object)
        - `channelId` (integer, int32)
        - `flowId` (integer, int64)
        - `senderId` (string)
    - `contentType` (integer, int32, required, one of: 1, 2, 3) — Type of content for the template: 1 - Fallback, 2 - Chat Bot, 3 - RCS Capability Check
    - `createdAt` (string, date-time) — Timestamp when the template was created (system-generated)
    - `description` (string) — Optional description of the template
    - `extraRecipientList` (array) — List of exact recipient phone numbers for the broadcast created from this template
      - `items` (string)
    - `filterList` (array) — Identifiers of recipient filters that determine who will receive broadcasts from this template
      - `items` (string)
    - `fullRecordCount` (integer, int64) — Total number of recipient phone numbers from the 'extraRecipientList' parameter (system-calculated)
    - `id` (integer, int64) — ID of template object (system-generated)
    - `name` (string) — Name for the template
    - `rcsCheck` (boolean) — Flag indicating whether RCS check should be performed within Fallback broadcast
    - `tags` (array) — Tags that recipients must have to be eligible for broadcasts created from this template
      - `items` (string)
    - `updatedAt` (string, date-time) — Timestamp when the template was last updated (system-generated)


---

📦 **OpenAPI specs:** Every OpenAPI specification referenced by this documentation is available as a single download — https://iba-platform.jamdesk.app/api-specs.zip
