Nashir Contact icon

Nashir Contact

Manage contacts and retrieve knowledge from nashir.ai

Get Conversation History

AI-generated

Summary

Retrieve recent messages in the conversation history for a specified sender ID, returning them ordered from oldest to newest.

Inputs

  • Sender ID (required) — Platform-specific sender ID from the inbound webhook (e.g., Facebook/Instagram user ID or WhatsApp phone number). Used as the lookup key in inbox_messages.
  • Limit — Number of recent messages to return in the conversation history. The value defaults to 20 and is capped at 50 by the server.

Output shape

a list of message records, each representing a message in the conversation history with the specified sender. Returned messages are ordered from oldest to newest.

The number of returned messages is limited by the 'Limit' input parameter and capped at 50 messages server-side. The output data structure is an array of JSON objects representing individual messages.

Links

Discussion