---
title: "Adicionar modelos"
method: POST
path: "/api/v4/chats/templates"
---

# Adicionar modelos

`POST /api/v4/chats/templates`

O método permite adicionar modelos em lote.

## Request body

- object
  - `RAW_BODY` object[]
    - `name` string — Nome do modelo
    - `content` string — Corpo do modelo (a mensagem que é enviada ao usuário). Você pode usar elementos de marcação do Salesbot.
    - `is_editable` boolean — Define se os usuários podem editar o modelo por meio da interface do Kommo. É falso por padrão.
    - `type` string — Deixe em branco ou digite ‘waba’ para modelos do WhatsApp.
    - `buttons` object[] — Array de objetos de botão
      - `type` string — Tipo de botão. As opções disponíveis são inline (botão de texto simples) e url (botão de link).
      - `text` string — Texto no botão
      - `url` string — URL do botão do tipo `url`
    - `attachment` object — Objeto do arquivo adicionado ao modelo
      - `id` string — UUID do arquivo anexado ao modelo
      - `name` string — Nome do arquivo (será enviado para um mensageiro)
      - `type` string — Tipo de arquivo (imagem, arquivo, documento, vídeo)

## 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/referencias-de-api-da-kommo.md) · [All operations](https://skmtc.net/kommo/apis/referencias-de-api-da-kommo/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kommo/referencias-de-api-da-kommo/versions/98fdf05c2f5b/schema)
