---
title: "Añadir plantillas"
method: POST
path: "/api/v4/chats/templates"
---

# Añadir plantillas

`POST /api/v4/chats/templates`

Este método permite añadir plantillas en lotes.

## Request body

- object
  - `RAW_BODY` object[]
    - `name` string, required — Nombre de la plantilla
    - `content` string, required — Cuerpo de la plantilla (el mensaje que se envía al usuario). Puedes utilizar elementos de formato de Salesbot
    - `is_editable` boolean — Define si los usuarios pueden editar la plantilla a través de la interfaz de Kommo. Por defecto es false
    - `type` string — Déjalo en blanco o escribe 'waba' para plantillas de WhatsApp
    - `buttons` object[] — Arreglo de objetos de botones
      - `type` string — Tipo de botón. Las opciones disponibles son inline (botón de texto simple) y url (botón de enlace)
      - `text` string — Texto en el botón
      - `url` string — URL del botón de tipo `url`
    - `attachment` object — Objeto del archivo añadido a la plantilla
      - `id` string — UUID del archivo adjuntado a la plantilla
      - `name` string — Nombre del archivo (se pasará al mensajero)
      - `type` string — Tipo de archivo (imagen, archivo, documento, video)

## Response `200`

200

- object
  - `_total_items` integer
  - `_embedded` object
    - `chat_templates` object[]
      - `id` integer
      - `account_id` integer
      - `name` string
      - `content` string
      - `created_at` integer
      - `updated_at` integer
      - `buttons` object[]
        - `type` string
        - `text` string
      - `attachment` object
        - `id` string
        - `name` string
        - `type` string
      - `type` string
      - `waba_footer` string
      - `waba_category` string
      - `waba_language` string
      - `waba_examples` object
        - `{{contact.name}}` string
      - `waba_header` unknown
      - `waba_header_type` string
      - `is_editable` boolean
      - `external_id` string
      - `request_id` string
      - `_links` object
        - `self` object
          - `href` string

## Other responses

- `400` — 400
- `404` — 404
- `422` — 422

---

[API](https://skmtc.net/kommo/apis/kommo-api.md) · [All operations](https://skmtc.net/kommo/apis/kommo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kommo/kommo-api/revisions/e291c0b2038d/schema)
