APIThreads
Get thread context
Everything needed to answer a thread in one call: the conversation across channels (the AI agent's chat included), the contact, the company with its tier and status, linked issues and projects with status, internal notes, similar past threads with how they were answered, and matching help articles. Requires the threads:read scope.
GET
/threads/{thread_id}/contextcurl -X GET "https://productlane.com/api/v2/threads/{thread_id}/context" \
-H "Authorization: Bearer $PRODUCTLANE_API_KEY"Authorization
AuthorizationstringheaderrequiredBearer authentication header of the form
Bearer <token>, where<token>is your auth token.
Parameters
thread_idstringpathrequired
Response
application/json
Successful response
idstringrequiredtitlestringrequiredstatestringrequiredoriginstringrequiredcreated_atstringrequirednotestringrequiredcontactobject | nullrequiredcompanyobject | nullrequiredassigneeobject | nullrequiredtagsstring[]requiredlinked_issuesobject[]requiredlinked_projectsobject[]requiredmessagesobject[]requiredOldest first, every channel merged, the newest 30 messages.
agentobject | nullrequiredSet when the AI agent talked to the customer in this thread.
internal_notesobject[]requiredsimilar_threadsobject[]requiredarticlesobject[]required
{
"id": "string",
"title": "string",
"state": "string",
"origin": "string",
"created_at": "string",
"note": "string",
"contact": {
"name": "string",
"email": "string"
},
"company": {
"name": "string",
"domain": "string",
"tier": "string",
"status": "string",
"revenue": 0,
"size": 0
},
"assignee": {
"name": "string",
"email": "string"
},
"tags": [
"string"
],
"linked_issues": [
{
"identifier": "string",
"public_title": "string",
"status": "string"
}
],
"linked_projects": [
{
"public_title": "string",
"status": "string"
}
],
"messages": [
{
"created_at": "string",
"channel": "email",
"from": "customer",
"author": "string",
"text": "string",
"attachments": [
"string"
]
}
],
"agent": {
"handed_off": true
},
"internal_notes": [
{
"author": "string",
"text": "string",
"created_at": "string"
}
],
"similar_threads": [
{
"id": "string",
"title": "string",
"state": "string",
"resolution": "string"
}
],
"articles": [
{
"id": "string",
"title": "string",
"content": "string"
}
]
}