Skip to main content
This endpoint retrieves the complete message history of an existing conversation. Use this to display previous messages when resuming a conversation or to review conversation content.

Path Parameters

uuid string required The unique UUID identifier of the conversation to retrieve

Response Fields

status boolean Indicates whether the request was successful history array Array of messages in the conversation, ordered chronologically (oldest first). Message object properties role string The message role: assistant or user content string The message content function_calls array Optional. Array of function calls made by the assistant during this message (e.g., calendar bookings, API calls). variables object Custom variables associated with the conversation (key-value pairs). Returns null if no variables are set. external_identifier string Your external system’s identifier for this conversation. Only present for api type conversations that have an external identifier set. whatsapp_sender object The WhatsApp business sender information. Only present for whatsapp type conversations. whatsapp_sender properties name string The WhatsApp sender’s display name (business name) phone string The WhatsApp sender’s phone number customer object The customer information. Only present for whatsapp type conversations. customer properties name string The customer’s name (if available) phone string The customer’s phone number

Error Responses

status boolean Will be false when an error occurs error string Error message. Possible values:
  • Conversation not found - The provided UUID does not match any conversation
cURL
JavaScript
Python
200 Success
200 API Conversation with External ID
200 WhatsApp Conversation
404 Not Found

Variables

All conversations include a variables field containing custom key-value pairs set when the conversation was created. Use variables to:
  • Store user context (name, plan, preferences)
  • Track lead information from your forms
  • Pass custom data for personalized AI responses

API Conversations

For API-created conversations, the response may include an external_identifier field if one was set when creating the conversation. This allows you to:
  • Link conversations to your CRM leads or contacts
  • Track conversations across your internal systems
  • Look up conversations by your external reference

WhatsApp Conversations

For WhatsApp conversations, the response includes additional fields:
  • whatsapp_sender: The business WhatsApp number that handled the conversation (name and phone)
  • customer: The customer who initiated or received the conversation (name and phone)
These fields help you identify the parties involved when integrating WhatsApp conversations with your CRM or support systems.

Use Cases

  • Resume conversations: Retrieve history when a user returns to continue a conversation
  • Analytics: Review conversation content for quality assurance
  • CRM Integration: Use external_identifier and variables to sync with your CRM
  • WhatsApp tracking: Match conversations to customers using their phone numbers