Comandos AmoCRM icon

Comandos AmoCRM

Prototype custom node for AmoCRM via shared Commandos license

Get Chat History By Entity ID

AI-generated

Summary

Retrieve the chat history messages linked to a specified AmoCRM entity ID, limiting the number of retrieved messages as desired.

Inputs

  • AmoCRM Entity ID (required) — The unique identifier of the AmoCRM entity (e.g., deal ID) to retrieve chat history for. Typically obtained from webhook payloads at message[add][0][entity_id].
  • History Limit — The maximum number of chat history messages to return, between 1 and 200 (default is 20).

Output shape

a list of chat history message objects associated with the specified entity ID, each as a JSON object

The operation returns error details if no chat history exists or if the entity ID is invalid. Pagination beyond the specified History Limit is not supported.

Links

Discussion