---
updatedAt: 2026-07-10T10:09:51.000Z
agentTools:
  projectIndex: https://es-developers.kommo.com/llms.txt
---

# Obtener mensajes de una conversación

El método permite recuperar los mensajes de una conversación.

**Limitaciones**

* El método está disponible de acuerdo con los permisos del usuario.
* El método está disponible para los planes de **Prueba**, **Pro**, **Empresarial** y **Técnico**.
* El método requiere el <Anchor target="_blank" href="https://es-developers.kommo.com/docs/permisos">alcance</Anchor> de intregación `Historial de chats externos`.

**Encabezado del tipo de datos cuando la solicitud se realiza correctamente**<br />Content-Type: application/hal+json

**Encabezado del tipo de datos en caso de error**<br />Content-Type: application/problem+json

## Parámetros de respuesta

| Parámetro               | Tipo de dato   | Descripción                                                                                                                              |
| :---------------------- | :------------- | :--------------------------------------------------------------------------------------------------------------------------------------- |
| id                      | string         | ID del mensaje.                                                                                                                          |
| chat\_id                | string         | ID del chat.                                                                                                                             |
| type                    | string         | Dirección del mensaje. Valores posibles: `incoming`, `outgoing`.                                                                         |
| message\_type           | string         | Tipo de contenido del mensaje. Valores posibles: `text`, `contact`, `file`, `video`, `picture`, `voice`, `audio`, `sticker`, `location`. |
| author                  | obj            | Objeto del autor del mensaje.                                                                                                            |
| author\[id]             | string         | ID del autor.                                                                                                                            |
| author\[type]           | string         | Tipo de autor. Valores posibles: `internal` (usuario de Kommo), `external` (cliente), `bot` (bot de Kommo).                              |
| author\[name]           | string         | Nombre para mostrar del autor.                                                                                                           |
| author\[avatar\_url]    | string         | URL del avatar del autor.                                                                                                                |
| author\[user\_id]       | int            | ID del usuario de Kommo. Solo se retorna cuando `author[type]: internal`.                                                                |
| recipient               | obj            | Objeto del destinatario del mensaje.                                                                                                     |
| recipient\[id]          | string         | ID del destinatario.                                                                                                                     |
| recipient\[type]        | string \| null | Tipo de destinatario. Valores posibles: `external` (client).                                                                             |
| recipient\[name]        | string         | Nombre para mostrar del destinatario.                                                                                                    |
| recipient\[avatar\_url] | string         | URL del avatar del destinatario.                                                                                                         |
| text                    | string         | Texto del mensaje. Vacío para los mensajes sin contenido de texto.                                                                       |
| created\_at             | int            | Hora de creación del mensaje como Unix Timestamp (segundos).                                                                             |
| sec\_created\_at        | int            | Hora de creación del mensaje como Unix Timestamp (milisegundos).                                                                         |
| origin                  | string         | Canal de chat del mensaje.                                                                                                               |
| delivery\_status        | string         | Estado de entrega del mensaje. Valores posibles: `sent`, `delivered`, `error`.                                                           |
| attachment              | obj \| null    | Objeto del archivo adjunto.                                                                                                              |
| attachment\[type]       | string         | Tipo de archivo adjunto.                                                                                                                 |
| attachment\[link]       | string         | Ruta o URL del archivo adjunto.                                                                                                          |
| attachment\[file\_name] | string         | Nombre del archivo adjunto.                                                                                                              |

<br />

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "kommo-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://{subdominio}.kommo.com",
      "variables": {
        "subdominio": {
          "default": "subdominio"
        }
      }
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/v4/talks/{talk_id}/messages": {
      "get": {
        "responses": {
          "200": {
            "description": "Solicitud realizada correctamente",
            "content": {
              "application/hal+json": {
                "examples": {
                  "Solicitud realizada correctamente": {
                    "summary": "Solicitud realizada correctamente",
                    "value": "{\n  \"_page\": 1,\n  \"_links\": {\n    \"self\": {\n      \"href\": \"https://subdomain.kommo.com/api/v4/talks/123/messages?page=1&limit=250\"\n    }\n  },\n  \"_embedded\": {\n    \"messages\": [\n      {\n        \"id\": \"213sda-308d-417b-das2-2b9c345b439c\",\n        \"chat_id\": \"bb64b9c5-fd21-l9l2-999e-8908e8ad8c41\",\n        \"type\": \"outgoing\",\n        \"message_type\": \"picture\",\n        \"author\": {\n          \"id\": \"231babf6-daa8-42a5-8cf5-3e918b84e859\",\n          \"type\": \"external\",\n          \"name\": \"John\",\n          \"avatar_url\": \"http://amojo.kommo.com/attachments/profiles/c06bf32a-das2-2231-k8i2-78db178474bd/image-100-100.jpg\"\n        },\n        \"recipient\": {\n          \"id\": \"c06bf32a-b6e6-4261-a150-78db178474bd\",\n          \"type\": \"external\",\n          \"name\": \"John\",\n          \"avatar_url\": \"http://amojo.kommo.com/attachments/profiles/c06bf32a-das2-2231-k8i2-78db178474bd/image-100-100.jpg\"\n        },\n        \"text\": \"Hello\",\n        \"created_at\": 1762446507,\n        \"sec_created_at\": 1762446507538,\n        \"origin\": \"kommo_origin\",\n        \"delivery_status\": \"delivered\",\n        \"attachment\": {\n          \"type\": \"picture\",\n          \"link\": \"https://drive-c.kommo.com/download/1d7dff1e-dw12-5996-8dda-7c55db97f528/76ec5d70-daw1-23f2-b368-b285372c1449/5d526004-dbef-4c8e-9474-64e542201089/data.png\",\n          \"file_name\": \"data.png\"\n        }\n      }\n    ]\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "_page": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "_links": {
                      "type": "object",
                      "properties": {
                        "self": {
                          "type": "object",
                          "properties": {
                            "href": {
                              "type": "string",
                              "example": "https://subdomain.kommo.com/api/v4/talks/123/messages?page=1&limit=250"
                            }
                          }
                        }
                      }
                    },
                    "_embedded": {
                      "type": "object",
                      "properties": {
                        "messages": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "213sda-308d-417b-das2-2b9c345b439c"
                              },
                              "chat_id": {
                                "type": "string",
                                "example": "bb64b9c5-fd21-l9l2-999e-8908e8ad8c41"
                              },
                              "type": {
                                "type": "string",
                                "example": "outgoing"
                              },
                              "message_type": {
                                "type": "string",
                                "example": "picture"
                              },
                              "author": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "example": "231babf6-daa8-42a5-8cf5-3e918b84e859"
                                  },
                                  "type": {
                                    "type": "string",
                                    "example": "external"
                                  },
                                  "name": {
                                    "type": "string",
                                    "example": "John"
                                  },
                                  "avatar_url": {
                                    "type": "string",
                                    "example": "http://amojo.kommo.com/attachments/profiles/c06bf32a-das2-2231-k8i2-78db178474bd/image-100-100.jpg"
                                  }
                                }
                              },
                              "recipient": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "example": "c06bf32a-b6e6-4261-a150-78db178474bd"
                                  },
                                  "type": {
                                    "type": "string",
                                    "example": "external"
                                  },
                                  "name": {
                                    "type": "string",
                                    "example": "John"
                                  },
                                  "avatar_url": {
                                    "type": "string",
                                    "example": "http://amojo.kommo.com/attachments/profiles/c06bf32a-das2-2231-k8i2-78db178474bd/image-100-100.jpg"
                                  }
                                }
                              },
                              "text": {
                                "type": "string",
                                "example": "Hello"
                              },
                              "created_at": {
                                "type": "integer",
                                "example": 1762446507,
                                "default": 0
                              },
                              "sec_created_at": {
                                "type": "integer",
                                "example": 1762446507538,
                                "default": 0
                              },
                              "origin": {
                                "type": "string",
                                "example": "kommo_origin"
                              },
                              "delivery_status": {
                                "type": "string",
                                "example": "delivered"
                              },
                              "attachment": {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "example": "picture"
                                  },
                                  "link": {
                                    "type": "string",
                                    "example": "https://drive-c.kommo.com/download/1d7dff1e-dw12-5996-8dda-7c55db97f528/76ec5d70-daw1-23f2-b368-b285372c1449/5d526004-dbef-4c8e-9474-64e542201089/data.png"
                                  },
                                  "file_name": {
                                    "type": "string",
                                    "example": "data.png"
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Suscripción caducada": {
                    "summary": "Suscripción caducada",
                    "value": "{\n  \"title\": \"Payment Required\",\n  \"type\": \"https://httpstatus.es/402\",\n  \"status\": 402,\n  \"detail\": \"Pago requerido\"\n}"
                  }
                }
              }
            },
            "description": "Pago requerido"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "El cliente no tiene el alcance requerido": {
                    "summary": "El cliente no tiene el alcance requerido",
                    "value": "{\n  \"title\": \"Forbidden\",\n  \"type\": \"https://httpstatus.es/403\",\n  \"status\": 403,\n  \"detail\": \"Alcance no válido\"\n}"
                  }
                }
              }
            },
            "description": "Prohibido"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "No se encontró la conversación": {
                    "summary": "No se encontró la conversación",
                    "value": "{\n  \"title\": \"Not Found\",\n  \"type\": \"https://httpstatus.es/404\",\n  \"status\": 404,\n  \"detail\": \"No se encontró la conversación\"\n}"
                  }
                }
              }
            },
            "description": "No se encontró la conversación"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "talk_id",
            "schema": {
              "type": "integer"
            },
            "required": true,
            "description": "ID de la conversación"
          },
          {
            "in": "query",
            "name": "page",
            "schema": {
              "type": "integer"
            },
            "description": "Página de resultados"
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "integer"
            },
            "description": "Cantidad de entidades retornadas por solicitud (límite: 250)"
          },
          {
            "in": "query",
            "name": "filter[created_at][from]",
            "schema": {
              "type": "integer"
            },
            "required": false,
            "description": "Filtra por la fecha de envío del mensaje en formato Unix Timestamp. Retorna los mensajes enviados desde esta fecha."
          },
          {
            "in": "query",
            "name": "filter[created_at][to]",
            "schema": {
              "type": "integer"
            },
            "description": "Filtra por la fecha de envío del mensaje en formato Unix Timestamp. Retorna los mensajes enviados hasta esta fecha."
          }
        ],
        "summary": "Obtener mensajes de una conversación",
        "operationId": "get_api-v4-talks-1",
        "description": "El método permite recuperar los mensajes de una conversación."
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```