v1

latestOpenAPI 3.1.02026-07-261630686.8 KB

Obtener una lista de plantillas

Este método te permite obtener una lista de plantillas en tu cuenta.

get/api/v4/chats/templates

Query parameters

pageinteger

Página de la lista de plantillas

limitinteger

Número de entidades retornadas por solicitud (máximo 50)

filter[external_id]string[]

Filtrar por ID externo. Un arreglo de varios ID

withstring

Este método solo admite el parámetro de reseñas

Response

200

_pageinteger

Example response

{
  "_page": 1,
  "_links": {
    "self": {
      "href": "https://example.kommo.com/api/v4/chats/templates?page=1&limit=50"
    },
    "next": {
      "href": "https://example.kommo.com/api/v4/chats/templates?page=2&limit=50"
    }
  },
  "_embedded": {
    "chat_templates": [
      {
        "id": 734129,
        "account_id": 29439107,
        "name": "Plantilla de prueba",
        "content": "Nuevo contenido. Nombre de contacto - {{contact.name}}",
        "created_at": 1640200627,
        "updated_at": 1640360627,
        "buttons": [
          {
            "text": "Botón 1",
            "type": "inline"
          }
        ],
        "external_id": "my_external_id",
        "type": "waba",
        "waba_footer": "my footer",
        "waba_category": "UTILITY",
        "waba_language": "en",
        "waba_examples": {
          "{{contact.name}}": "Mi contacto"
        },
        "waba_header": "Ejemplo de encabezado",
        "waba_header_type": "text",
        "review_status": "review",
        "is_on_review": true,
        "_embedded": {
          "reviews": [
            {
              "id": 36337,
              "source_id": 13232340,
              "status": "review"
            }
          ]
        },
        "_links": {
          "self": {
            "href": "https://example.kommo.com/api/v4/chats/templates/7349"
          }
        }
      }
    ]
  }
}