List thread messages
List the conversation on a thread, merged across all channels and sorted oldest-first by default. Requires the threads:read scope.
curl -X GET "https://productlane.com/api/v2/threads/{thread_id}/messages" \
-H "Authorization: Bearer $PRODUCTLANE_API_KEY"Authorization
AuthorizationstringheaderrequiredBearer authentication header of the form
Bearer <token>, where<token>is your auth token.
Parameters
thread_idstringpathrequiredlimitintegerquerycursorstringqueryorderenum<string>querySort by
created_at.ascreturns oldest first (default, matches the conversation timeline);descreturns newest first.One of:ascdesctypeenum<string>queryFilter to a single channel.
emailfor email replies,slackfor Slack and Slack Connect,chatfor Microsoft Teams (and any future chat platforms),live_chatfor in-app live chat sessions,portalfor replies a contact leaves on the portal,feedbackfor the synthesized initial message that the thread was opened with.One of:emailslackchatlive_chatfeedbackportaldirectionenum<string>queryFilter by message direction.
inboundis from the contact,outboundis from your workspace. For live chat,inboundmaps toUSERmessages andoutboundto bothAGENTandAI.One of:inboundoutbounduser_idstringqueryWorkspace user id. Filters to outbound messages sent by this user. Live chat messages have no user attribution and are excluded when this is set.
qstringqueryCase-insensitive substring search across the message body. Searches email subject and text, slack/chat/live-chat text.
created_afterstring<date-time>querycreated_beforestring<date-time>queryupdated_afterstring<date-time>queryupdated_beforestring<date-time>query
Response
Successful response
dataany[]requiredpageobjectrequired
{
"data": [
{
"id": "string",
"type": "email",
"created_at": "string",
"direction": "inbound",
"subject": "string",
"from": null,
"to": [
null
],
"cc": [
null
],
"bcc": [
null
],
"text": "string",
"html": "string",
"attachments": [
null
],
"thread_id": "string",
"user_id": "string"
}
],
"page": {
"cursor": "string",
"has_more": true,
"limit": 0
}
}