CRM Grape icon

CRM Grape

Integração completa com CRM Grape - Envie mensagens, gerencie contatos, tickets, tags, kanban e consultas. Compatível com Agentes IA (Tool).

Consulta → Mensagens do Ticket

AI-generated

Summary

Fetches the messages of a single CRM Grape ticket by ID through an authenticated GET request to the CRM's n8n query API, with a configurable maximum number of results.

Inputs

  • ID do Ticket (required) — ID of the ticket whose messages to retrieve. Inserted into the request path /api/v1/n8n/query/tickets/{id}/messages.
  • Limite — Maximum number of messages to return. Defaults to 50. Sent as the limit query-string parameter.

Output shape

The CRM's JSON response, converted to n8n items (an array response becomes one item per element, an object becomes a single item). Each item is linked to its input item. The exact message fields are defined by the CRM API and not by the node.

Authenticates with the webhook token from the grapeApi credentials, sent in the X-N8N-Auth header. Errors map to Portuguese messages: 401 invalid or inactive token, 403 suspended company or no permission, 404 ticket not found. With Continue On Fail enabled, a failed item returns {error: message} instead of stopping the workflow. The operation runs once for each input item.

Examples

Example 1: Give an AI agent the conversation history of a ticket before it drafts a reply.

Resource: Consulta; Operation: Mensagens do Ticket; ID do Ticket: {{ $json.ticketId }}; Limite: 20.

Example 2: Export up to 200 messages from a specific ticket for auditing.

Resource: Consulta; Operation: Mensagens do Ticket; ID do Ticket: 12345; Limite: 200.

Links

Discussion