Obtener conversaciones

Este método retorna una colección de conversaciones de la cuenta.

get/api/v4/talks

Request

  • Base URL
    https://subdominio.kommo.com
  • URL
    https://subdominio.kommo.com/api/v4/talks
  • Auth
    OAuth 2

Query parameters

pageinteger

Página de la respuesta

limitinteger

Número de entidades retornadas por solicitud (límite: 250)

filter[talk_id][]integer[]

Filtrar por ID de conversación. Acepta un único ID o un arreglo de IDs

filter[contact_id][]integer[]

Filtrar por ID de contacto. Acepta un único ID o un arreglo de IDs

filter[entity_id][]integer[]

Filtrar por ID de entidad (lead). Acepta un único ID o un arreglo de IDs. Debe utilizarse junto con filter[entity_type]

filter[entity_type]'lead'

Tipo de entidad para filtrar por entity_id. Valores posibles: lead

filter[only_in_work]string

Este parámetro es opcional y no requiere un valor. Si está presente, solo se devuelven las conversaciones abiertas

Response

Solicitud realizada correctamente

_total_itemsinteger

Example response

{
  "_total_items": 1,
  "_embedded": {
    "talks": [
      {
        "talk_id": 249,
        "created_at": 1773754561,
        "updated_at": 1773762171,
        "contact_id": 24602666,
        "chat_id": "307d7d92-6d7c-4f14-aa4f-795b403e9fc5",
        "entity_id": 20139824,
        "entity_type": "lead",
        "status": "in_work",
        "is_in_work": true,
        "origin": "kommo_origin",
        "source_id": 43444,
        "account_id": 2921238,
        "_links": {
          "self": {
            "href": "https://subdomain.kommo.com/api/v4/talks/249?page=1&limit=1"
          }
        },
        "_embedded": {
          "contacts": [
            {
              "id": 24602666,
              "_links": {
                "self": {
                  "href": "https://subdomain.kommo.com/api/v4/contacts/24602666?page=1&limit=1"
                }
              }
            }
          ],
          "leads": [
            {
              "id": 20139824,
              "_links": {
                "self": {
                  "href": "https://subdomain.kommo.com/api/v4/leads/20139824?page=1&limit=1"
                }
              }
            }
          ]
        }
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.