Create or update a ProductLane thread, upserting the contact, in one call.
curl --request POST \
--url https://mcp.sagescreen.net/tools/productlane_upsert_thread \
--header 'Content-Type: application/json' \
--header 'X-Service-Token: <api-key>' \
--data '
{
"contact_email": "<string>",
"text": "<string>",
"contact_name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"title": "<string>",
"website": "<string>",
"pain_level": "<string>",
"status": "<string>",
"project_id": "<string>",
"tag_ids": [
"<string>"
],
"is_subscribed": true,
"company_id": "<string>",
"company_name": "<string>",
"company_external_id": "<string>",
"thread_id": "<string>",
"reply": "<string>",
"internal": false,
"attachments": [
"<unknown>"
],
"link": "<string>",
"issue_id": "<string>",
"issue_ids": [
"<string>"
],
"project_ids": [
"<string>"
],
"priority": "<string>"
}
'import requests
url = "https://mcp.sagescreen.net/tools/productlane_upsert_thread"
payload = {
"contact_email": "<string>",
"text": "<string>",
"contact_name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"title": "<string>",
"website": "<string>",
"pain_level": "<string>",
"status": "<string>",
"project_id": "<string>",
"tag_ids": ["<string>"],
"is_subscribed": True,
"company_id": "<string>",
"company_name": "<string>",
"company_external_id": "<string>",
"thread_id": "<string>",
"reply": "<string>",
"internal": False,
"attachments": ["<unknown>"],
"link": "<string>",
"issue_id": "<string>",
"issue_ids": ["<string>"],
"project_ids": ["<string>"],
"priority": "<string>"
}
headers = {
"X-Service-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Service-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
contact_email: '<string>',
text: '<string>',
contact_name: '<string>',
first_name: '<string>',
last_name: '<string>',
title: '<string>',
website: '<string>',
pain_level: '<string>',
status: '<string>',
project_id: '<string>',
tag_ids: ['<string>'],
is_subscribed: true,
company_id: '<string>',
company_name: '<string>',
company_external_id: '<string>',
thread_id: '<string>',
reply: '<string>',
internal: false,
attachments: ['<unknown>'],
link: '<string>',
issue_id: '<string>',
issue_ids: ['<string>'],
project_ids: ['<string>'],
priority: '<string>'
})
};
fetch('https://mcp.sagescreen.net/tools/productlane_upsert_thread', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mcp.sagescreen.net/tools/productlane_upsert_thread",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'contact_email' => '<string>',
'text' => '<string>',
'contact_name' => '<string>',
'first_name' => '<string>',
'last_name' => '<string>',
'title' => '<string>',
'website' => '<string>',
'pain_level' => '<string>',
'status' => '<string>',
'project_id' => '<string>',
'tag_ids' => [
'<string>'
],
'is_subscribed' => true,
'company_id' => '<string>',
'company_name' => '<string>',
'company_external_id' => '<string>',
'thread_id' => '<string>',
'reply' => '<string>',
'internal' => false,
'attachments' => [
'<unknown>'
],
'link' => '<string>',
'issue_id' => '<string>',
'issue_ids' => [
'<string>'
],
'project_ids' => [
'<string>'
],
'priority' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Service-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mcp.sagescreen.net/tools/productlane_upsert_thread"
payload := strings.NewReader("{\n \"contact_email\": \"<string>\",\n \"text\": \"<string>\",\n \"contact_name\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"title\": \"<string>\",\n \"website\": \"<string>\",\n \"pain_level\": \"<string>\",\n \"status\": \"<string>\",\n \"project_id\": \"<string>\",\n \"tag_ids\": [\n \"<string>\"\n ],\n \"is_subscribed\": true,\n \"company_id\": \"<string>\",\n \"company_name\": \"<string>\",\n \"company_external_id\": \"<string>\",\n \"thread_id\": \"<string>\",\n \"reply\": \"<string>\",\n \"internal\": false,\n \"attachments\": [\n \"<unknown>\"\n ],\n \"link\": \"<string>\",\n \"issue_id\": \"<string>\",\n \"issue_ids\": [\n \"<string>\"\n ],\n \"project_ids\": [\n \"<string>\"\n ],\n \"priority\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Service-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mcp.sagescreen.net/tools/productlane_upsert_thread")
.header("X-Service-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"contact_email\": \"<string>\",\n \"text\": \"<string>\",\n \"contact_name\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"title\": \"<string>\",\n \"website\": \"<string>\",\n \"pain_level\": \"<string>\",\n \"status\": \"<string>\",\n \"project_id\": \"<string>\",\n \"tag_ids\": [\n \"<string>\"\n ],\n \"is_subscribed\": true,\n \"company_id\": \"<string>\",\n \"company_name\": \"<string>\",\n \"company_external_id\": \"<string>\",\n \"thread_id\": \"<string>\",\n \"reply\": \"<string>\",\n \"internal\": false,\n \"attachments\": [\n \"<unknown>\"\n ],\n \"link\": \"<string>\",\n \"issue_id\": \"<string>\",\n \"issue_ids\": [\n \"<string>\"\n ],\n \"project_ids\": [\n \"<string>\"\n ],\n \"priority\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mcp.sagescreen.net/tools/productlane_upsert_thread")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Service-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"contact_email\": \"<string>\",\n \"text\": \"<string>\",\n \"contact_name\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"title\": \"<string>\",\n \"website\": \"<string>\",\n \"pain_level\": \"<string>\",\n \"status\": \"<string>\",\n \"project_id\": \"<string>\",\n \"tag_ids\": [\n \"<string>\"\n ],\n \"is_subscribed\": true,\n \"company_id\": \"<string>\",\n \"company_name\": \"<string>\",\n \"company_external_id\": \"<string>\",\n \"thread_id\": \"<string>\",\n \"reply\": \"<string>\",\n \"internal\": false,\n \"attachments\": [\n \"<unknown>\"\n ],\n \"link\": \"<string>\",\n \"issue_id\": \"<string>\",\n \"issue_ids\": [\n \"<string>\"\n ],\n \"project_ids\": [\n \"<string>\"\n ],\n \"priority\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{
"error": "<string>",
"detail": "<string>"
}{
"error": "Unauthorized"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}Productlane
Create or update a ProductLane thread, upserting the contact, in one call.
Create or update a ProductLane thread, upserting the contact, in one call.
Thread selection:
thread_idgiven -> operate on that exact thread (reply mode).- else contact has an open thread -> patch the most-recently-updated one.
- else -> create a new thread (drops into PL inbox/triage).
Contact identity: first_name + last_name fold into the single PL name
(an explicit contact_name wins). website attaches to the contact’s company.
Reply mode: reply posts a message on the thread; with internal=True it
posts a team-only comment instead. attachments (public URLs or
— uploaded to Spaces first) ride along.
link is folded into the body as Markdown.
Triage: issue_id links a Linear-synced issue at create time;
issue_ids / project_ids link via customer-needs.
POST
/
tools
/
productlane_upsert_thread
Create or update a ProductLane thread, upserting the contact, in one call.
curl --request POST \
--url https://mcp.sagescreen.net/tools/productlane_upsert_thread \
--header 'Content-Type: application/json' \
--header 'X-Service-Token: <api-key>' \
--data '
{
"contact_email": "<string>",
"text": "<string>",
"contact_name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"title": "<string>",
"website": "<string>",
"pain_level": "<string>",
"status": "<string>",
"project_id": "<string>",
"tag_ids": [
"<string>"
],
"is_subscribed": true,
"company_id": "<string>",
"company_name": "<string>",
"company_external_id": "<string>",
"thread_id": "<string>",
"reply": "<string>",
"internal": false,
"attachments": [
"<unknown>"
],
"link": "<string>",
"issue_id": "<string>",
"issue_ids": [
"<string>"
],
"project_ids": [
"<string>"
],
"priority": "<string>"
}
'import requests
url = "https://mcp.sagescreen.net/tools/productlane_upsert_thread"
payload = {
"contact_email": "<string>",
"text": "<string>",
"contact_name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"title": "<string>",
"website": "<string>",
"pain_level": "<string>",
"status": "<string>",
"project_id": "<string>",
"tag_ids": ["<string>"],
"is_subscribed": True,
"company_id": "<string>",
"company_name": "<string>",
"company_external_id": "<string>",
"thread_id": "<string>",
"reply": "<string>",
"internal": False,
"attachments": ["<unknown>"],
"link": "<string>",
"issue_id": "<string>",
"issue_ids": ["<string>"],
"project_ids": ["<string>"],
"priority": "<string>"
}
headers = {
"X-Service-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Service-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
contact_email: '<string>',
text: '<string>',
contact_name: '<string>',
first_name: '<string>',
last_name: '<string>',
title: '<string>',
website: '<string>',
pain_level: '<string>',
status: '<string>',
project_id: '<string>',
tag_ids: ['<string>'],
is_subscribed: true,
company_id: '<string>',
company_name: '<string>',
company_external_id: '<string>',
thread_id: '<string>',
reply: '<string>',
internal: false,
attachments: ['<unknown>'],
link: '<string>',
issue_id: '<string>',
issue_ids: ['<string>'],
project_ids: ['<string>'],
priority: '<string>'
})
};
fetch('https://mcp.sagescreen.net/tools/productlane_upsert_thread', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mcp.sagescreen.net/tools/productlane_upsert_thread",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'contact_email' => '<string>',
'text' => '<string>',
'contact_name' => '<string>',
'first_name' => '<string>',
'last_name' => '<string>',
'title' => '<string>',
'website' => '<string>',
'pain_level' => '<string>',
'status' => '<string>',
'project_id' => '<string>',
'tag_ids' => [
'<string>'
],
'is_subscribed' => true,
'company_id' => '<string>',
'company_name' => '<string>',
'company_external_id' => '<string>',
'thread_id' => '<string>',
'reply' => '<string>',
'internal' => false,
'attachments' => [
'<unknown>'
],
'link' => '<string>',
'issue_id' => '<string>',
'issue_ids' => [
'<string>'
],
'project_ids' => [
'<string>'
],
'priority' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Service-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mcp.sagescreen.net/tools/productlane_upsert_thread"
payload := strings.NewReader("{\n \"contact_email\": \"<string>\",\n \"text\": \"<string>\",\n \"contact_name\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"title\": \"<string>\",\n \"website\": \"<string>\",\n \"pain_level\": \"<string>\",\n \"status\": \"<string>\",\n \"project_id\": \"<string>\",\n \"tag_ids\": [\n \"<string>\"\n ],\n \"is_subscribed\": true,\n \"company_id\": \"<string>\",\n \"company_name\": \"<string>\",\n \"company_external_id\": \"<string>\",\n \"thread_id\": \"<string>\",\n \"reply\": \"<string>\",\n \"internal\": false,\n \"attachments\": [\n \"<unknown>\"\n ],\n \"link\": \"<string>\",\n \"issue_id\": \"<string>\",\n \"issue_ids\": [\n \"<string>\"\n ],\n \"project_ids\": [\n \"<string>\"\n ],\n \"priority\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Service-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mcp.sagescreen.net/tools/productlane_upsert_thread")
.header("X-Service-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"contact_email\": \"<string>\",\n \"text\": \"<string>\",\n \"contact_name\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"title\": \"<string>\",\n \"website\": \"<string>\",\n \"pain_level\": \"<string>\",\n \"status\": \"<string>\",\n \"project_id\": \"<string>\",\n \"tag_ids\": [\n \"<string>\"\n ],\n \"is_subscribed\": true,\n \"company_id\": \"<string>\",\n \"company_name\": \"<string>\",\n \"company_external_id\": \"<string>\",\n \"thread_id\": \"<string>\",\n \"reply\": \"<string>\",\n \"internal\": false,\n \"attachments\": [\n \"<unknown>\"\n ],\n \"link\": \"<string>\",\n \"issue_id\": \"<string>\",\n \"issue_ids\": [\n \"<string>\"\n ],\n \"project_ids\": [\n \"<string>\"\n ],\n \"priority\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mcp.sagescreen.net/tools/productlane_upsert_thread")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Service-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"contact_email\": \"<string>\",\n \"text\": \"<string>\",\n \"contact_name\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"title\": \"<string>\",\n \"website\": \"<string>\",\n \"pain_level\": \"<string>\",\n \"status\": \"<string>\",\n \"project_id\": \"<string>\",\n \"tag_ids\": [\n \"<string>\"\n ],\n \"is_subscribed\": true,\n \"company_id\": \"<string>\",\n \"company_name\": \"<string>\",\n \"company_external_id\": \"<string>\",\n \"thread_id\": \"<string>\",\n \"reply\": \"<string>\",\n \"internal\": false,\n \"attachments\": [\n \"<unknown>\"\n ],\n \"link\": \"<string>\",\n \"issue_id\": \"<string>\",\n \"issue_ids\": [\n \"<string>\"\n ],\n \"project_ids\": [\n \"<string>\"\n ],\n \"priority\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{
"error": "<string>",
"detail": "<string>"
}{
"error": "Unauthorized"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}Authorizations
serviceTokentokenQuery
Body
application/json
Response
Tool result. The shape is tool-specific; most tools return a JSON object, some a {"result": ...} envelope.
The response is of type object.
⌘I