Skip to main content
GET
/
insights
/
{id}
Get thread
curl --request GET \
  --url https://productlane.com/api/v1/insights/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "isDeleted": true,
  "showRecordCall": true,
  "lastInboundMessageAt": "2023-11-07T05:31:56Z",
  "lastOutboundMessageAt": "2023-11-07T05:31:56Z",
  "lastStateChangeAt": "2023-11-07T05:31:56Z",
  "text": "<string>",
  "painLevel": "UNKNOWN",
  "state": "NEW",
  "origin": "INAPP",
  "title": "<string>",
  "snoozedUntil": "2023-11-07T05:31:56Z",
  "workspaceId": "<string>",
  "contactId": "<string>",
  "companyId": "<string>",
  "reporterId": "<string>",
  "assigneeId": "<string>",
  "attachments": "<array>",
  "recordingId": "<string>",
  "videoId": "<string>",
  "slackChannelId": "<string>",
  "linearAttachmentId": "<string>",
  "intercomId": "<string>",
  "frontId": "<string>",
  "zendeskId": "<string>",
  "hubspotId": "<string>",
  "plainId": "<string>",
  "productboardId": "<string>",
  "slackReplyId": "<string>",
  "uniqueId": "<string>",
  "customerNeeds": [
    {
      "id": "<string>",
      "feedbackId": "<string>",
      "projectId": "<string>",
      "issueId": "<string>",
      "linearCustomerNeedId": "<string>",
      "priority": 123,
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "contact": {
    "id": "<string>",
    "email": "<string>",
    "name": "<string>",
    "imageUrl": "<string>",
    "companyId": "<string>",
    "workspaceId": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "isDeleted": true,
    "version": 123,
    "intercomId": "<string>",
    "hubspotId": "<string>",
    "productboardId": "<string>",
    "zendeskId": "<string>"
  },
  "company": {
    "id": "<string>",
    "name": "<string>",
    "workspaceId": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "isDeleted": true,
    "version": 123,
    "linearCustomerId": "<string>",
    "size": 123,
    "revenue": 123,
    "statusId": "<string>",
    "statusName": "<string>",
    "statusColor": "<string>",
    "tierId": "<string>",
    "tierName": "<string>",
    "logoUrl": "<string>",
    "domains": [
      "<string>"
    ],
    "autoAdd": true,
    "intercomId": "<string>",
    "hubspotId": "<string>",
    "productboardId": "<string>",
    "externalIds": [
      "<string>"
    ],
    "slugId": "<string>"
  },
  "tags": [
    {
      "id": "<string>",
      "name": "<string>",
      "color": "<string>",
      "icon": "<string>",
      "tagGroupId": "<string>"
    }
  ],
  "assignee": {
    "id": "<string>",
    "name": "<string>",
    "email": "<string>",
    "role": "<string>",
    "imageUrl": "<string>",
    "selectedTeamIds": [
      "<string>"
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  },
  "reporter": {
    "id": "<string>",
    "name": "<string>",
    "email": "<string>",
    "role": "<string>",
    "imageUrl": "<string>",
    "selectedTeamIds": [
      "<string>"
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  },
  "conversation": [
    {
      "id": "<string>",
      "timestamp": "2023-11-07T05:31:56Z",
      "type": "email",
      "data": {
        "id": "<string>",
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z",
        "date": "2023-11-07T05:31:56Z",
        "isDeleted": true,
        "type": "<string>",
        "subject": "<string>",
        "originalRecipient": "<string>",
        "to": "<array>",
        "cc": "<array>",
        "bcc": "<array>",
        "attachments": "<array>",
        "textContent": "<string>",
        "htmlContent": "<string>",
        "postmarkMessageId": "<string>",
        "messageId": "<string>",
        "uniqueId": "<string>",
        "threadId": "<string>",
        "workspaceId": "<string>",
        "userId": "<string>",
        "from": "<unknown>"
      }
    }
  ]
}

Get Thread

Retrieve a specific thread by its ID.

Path Parameters

id
string
required
Unique identifier of the thread

Response

id
string
Unique identifier for the thread
text
string
Thread content
title
string
Thread title
painLevel
string
Pain level of the thread
origin
string
Source of the thread
contactEmail
string
Email of the contact who provided the thread
contactName
string
Name of the contact who provided the thread
projectId
string
ID of the related project
issueId
string
ID of the related issue
state
string
Current state of the thread
createdAt
string
Timestamp when the thread was created
updatedAt
string
Timestamp when the thread was last updated
workspaceId
string
ID of the workspace this thread belongs to

Example Request

GET /api/v1/insights/insight_123456789

Example Response

{
  "id": "insight_123456789",
  "createdAt": "2024-01-15T10:30:00Z",
  "updatedAt": "2024-01-15T16:35:00Z",
  "isDeleted": false,
  "showRecordCall": false,
  "lastInboundMessageAt": "2024-01-15T14:22:00Z",
  "lastOutboundMessageAt": "2024-01-15T15:21:00Z",
  "lastStateChangeAt": "2024-01-15T15:30:00Z",
  "text": "<p>The current dashboard is too cluttered and hard to navigate. Users are struggling to find the most important metrics.</p>",
  "painLevel": "HIGH",
  "state": "PROCESSED",
  "origin": "EMAIL",
  "title": "Dashboard Navigation Issues",
  "snoozedUntil": null,
  "workspaceId": "ws_123456789",
  "contactId": "contact_123456789",
  "companyId": "company_123456789",
  "reporterId": null,
  "assigneeId": "user_123456789",
  "attachments": [],
  "recordingId": null,
  "videoId": null,
  "slackChannelId": null,
  "linearAttachmentId": null,
  "intercomId": null,
  "frontId": null,
  "zendeskId": null,
  "hubspotId": null,
  "plainId": null,
  "productboardId": null,
  "slackReplyId": null,
  "uniqueId": "abc123def456ghi789",
  "customerNeeds": [
    {
      "id": "customer_need_123",
      "feedbackId": "insight_123456789",
      "issueId": "issue_123",
      "projectId": null,
      "linearCustomerNeedId": "linear_need_123",
      "priority": 0,
      "createdAt": "2024-01-15T10:30:00Z",
      "updatedAt": "2024-01-15T10:30:00Z"
    }
  ],
  "contact": {
    "id": "contact_123456789",
    "createdAt": "2024-01-15T10:30:00Z",
    "updatedAt": "2024-01-15T10:30:00Z",
    "isDeleted": false,
    "version": 1,
    "email": "john@acme.com",
    "name": "John Doe",
    "imageUrl": "https://www.gravatar.com/avatar/example?d=404",
    "workspaceId": "ws_123456789",
    "intercomId": null,
    "hubspotId": null,
    "productboardId": null,
    "companyId": "company_123456789",
    "zendeskId": null
  },
  "company": {
    "id": "company_123456789",
    "name": "Acme Corporation",
    "createdAt": "2024-01-10T08:00:00Z",
    "updatedAt": "2024-01-15T14:22:00Z",
    "isDeleted": false,
    "version": 2,
    "linearCustomerId": "linear_customer_123",
    "size": null,
    "revenue": null,
    "statusId": "status_123",
    "statusName": "Active",
    "statusColor": "#5E6AD2",
    "tierId": null,
    "tierName": null,
    "logoUrl": "https://example.com/logo.png",
    "domains": ["acme.com"],
    "autoAdd": false,
    "workspaceId": "ws_123456789",
    "intercomId": null,
    "hubspotId": null,
    "productboardId": null,
    "customerId": null,
    "domain": null
  },
  "assignee": {
    "id": "user_123456789",
    "name": "Jane Smith",
    "email": "jane@example.com",
    "role": "ADMIN",
    "imageUrl": "https://example.com/avatar.jpg",
    "selectedTeamIds": []
  },
  "conversation": [
    {
      "id": "message_123456789",
      "timestamp": "2024-01-15T10:30:00Z",
      "type": "email",
      "data": {
        "id": "message_123456789",
        "createdAt": "2024-01-15T10:30:00Z",
        "updatedAt": "2024-01-15T10:30:00Z",
        "date": "2024-01-15T10:30:00Z",
        "isDeleted": false,
        "type": "INBOUND",
        "subject": "Dashboard Navigation Issues",
        "originalRecipient": "support@example.com",
        "from": {
          "name": "John Doe",
          "email": "john@acme.com",
          "mailboxHash": ""
        },
        "to": [
          {
            "name": "Support Team",
            "email": "support@example.com",
            "mailboxHash": ""
          }
        ],
        "cc": [],
        "bcc": [],
        "attachments": [],
        "textContent": "The current dashboard is too cluttered and hard to navigate. Users are struggling to find the most important metrics.",
        "htmlContent": "<p>The current dashboard is too cluttered and hard to navigate. Users are struggling to find the most important metrics.</p>",
        "postmarkMessageId": "postmark_123456789",
        "messageId": "<message_123456789@example.com>",
        "uniqueId": null,
        "threadId": "insight_123456789",
        "workspaceId": "ws_123456789",
        "userId": null
      }
    },
    {
      "id": "message_987654321",
      "timestamp": "2024-01-15T15:21:00Z",
      "type": "email",
      "data": {
        "id": "message_987654321",
        "createdAt": "2024-01-15T15:21:00Z",
        "updatedAt": "2024-01-15T15:21:00Z",
        "date": "2024-01-15T15:21:00Z",
        "isDeleted": false,
        "type": "OUTBOUND",
        "subject": "Re: Dashboard Navigation Issues",
        "originalRecipient": "john@acme.com",
        "from": {
          "name": "Jane Smith (Example)",
          "email": "support@example.com",
          "mailboxHash": ""
        },
        "to": [
          {
            "name": "John Doe",
            "email": "john@acme.com",
            "mailboxHash": ""
          }
        ],
        "cc": [],
        "bcc": [],
        "attachments": [],
        "textContent": "Thank you for your feedback. We're working on improving the dashboard navigation. Please see our roadmap for upcoming changes.",
        "htmlContent": "<p>Thank you for your feedback. We're working on improving the dashboard navigation. Please see our roadmap for upcoming changes.</p>",
        "postmarkMessageId": "postmark_987654321",
        "messageId": "<message_987654321@example.com>",
        "uniqueId": null,
        "threadId": "insight_123456789",
        "workspaceId": "ws_123456789",
        "userId": "user_123456789"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Query Parameters

includeConversation
enum<string>
Available options:
true,
false

Response

Successful response

id
string
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
isDeleted
boolean
required
showRecordCall
boolean
required
lastInboundMessageAt
string<date-time> | null
required
lastOutboundMessageAt
string<date-time> | null
required
lastStateChangeAt
string<date-time> | null
required
text
string
required
painLevel
enum<string>
required
Available options:
UNKNOWN,
LOW,
MEDIUM,
HIGH
state
enum<string>
required
Available options:
NEW,
PROCESSED,
COMPLETED,
SNOOZED,
UNSNOOZED
origin
enum<string>
required
Available options:
INAPP,
PORTAL,
SUPPORT_PORTAL,
API,
SLACK,
SLACK_CONNECT,
INTERCOM,
INTERCOM_ATTACHMENT,
ZENDESK_ATTACHMENT,
ZENDESK,
FRONT_ATTACHMENT,
EMAIL,
ZAPIER,
HUBSPOT,
PLAIN,
CALENDAR,
WIDGET,
AI_CHAT,
UPVOTE
title
string | null
required
snoozedUntil
string<date-time> | null
required
workspaceId
string
required
contactId
string | null
required
companyId
string | null
required
reporterId
string | null
required
assigneeId
string | null
required
attachments
array
required
recordingId
string | null
required
videoId
string | null
required
slackChannelId
string | null
required
linearAttachmentId
string | null
required
intercomId
string | null
required
frontId
string | null
required
zendeskId
string | null
required
hubspotId
string | null
required
plainId
string | null
required
productboardId
string | null
required
slackReplyId
string | null
required
uniqueId
string | null
required
customerNeeds
object[]
required
contact
object
required
company
object
required
tags
object[]
required
assignee
object
required
reporter
object
required
conversation
object[]