Skip to Content
The Makinari API repo now includes an MCP Server — connect your AI models directly. View on GitHub →
MCP ServerToolsMessagesGET

Messages

List messages for this site. Rules:

  • Always provide conversation_id when you have it - site-wide queries are slower and return less context.
  • Use role=“user” to see only visitor/lead messages; role=“assistant” for bot replies.
  • Default limit is 50 (max 100). Check pagination.has_more before paginating further.
  • Stop paginating when has_more=false or when you have found the information you need - do NOT blindly paginate through hundreds of records.
  • If you get an error, do NOT retry with a higher offset. Instead, try a narrower filter (e.g. add conversation_id or lead_id).

Input Schema

ParameterTypeDescription
actionstringAction to perform (only “list” is supported). Enum: list
conversation_idstringPreferred. Filter to a single conversation UUID. Omit only when you need site-wide results.
lead_idstringFilter by lead UUID.
rolestringFilter by message role. Enum: user, assistant, system, team_member
interactionstringFilter by interaction type (e.g. opened, clicked - for email tracking).
custom_data_statusstringFilter by custom_data.status (JSONB field).
limitnumberMax results per page. Default 50, max 100.
offsetnumberPagination offset. Only increment if has_more=true in the previous response.

REST Endpoint

GET /api/agents/customerSupport/conversations/messages

All parameters are passed as query string. site_id is required.

GET /api/agents/customerSupport/conversations/messages?site_id=YOUR_SITE_ID&conversation_id=CONVERSATION_UUID&limit=50 Authorization: Bearer YOUR_API_KEY

Response:

{ "success": true, "data": { "messages": [...], "pagination": { "total": 120, "page": 1, "limit": 50, "pages": 3 } } }
Last updated on