Get-or-create a ticket (Linear) or customer request (ProductLane).
curl --request POST \
--url https://mcp.sagescreen.net/tools/ticket_upsert \
--header 'Content-Type: application/json' \
--header 'X-Service-Token: <api-key>' \
--data '
{
"type": "linear",
"ticket_id": "<string>",
"title": "<string>",
"description": "<string>",
"team_id": "<string>",
"project_id": "<string>",
"label_ids": "<string>",
"priority": 123,
"contact_email": "<string>",
"contact_name": "<string>"
}
'import requests
url = "https://mcp.sagescreen.net/tools/ticket_upsert"
payload = {
"type": "linear",
"ticket_id": "<string>",
"title": "<string>",
"description": "<string>",
"team_id": "<string>",
"project_id": "<string>",
"label_ids": "<string>",
"priority": 123,
"contact_email": "<string>",
"contact_name": "<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({
type: 'linear',
ticket_id: '<string>',
title: '<string>',
description: '<string>',
team_id: '<string>',
project_id: '<string>',
label_ids: '<string>',
priority: 123,
contact_email: '<string>',
contact_name: '<string>'
})
};
fetch('https://mcp.sagescreen.net/tools/ticket_upsert', 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/ticket_upsert",
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([
'type' => 'linear',
'ticket_id' => '<string>',
'title' => '<string>',
'description' => '<string>',
'team_id' => '<string>',
'project_id' => '<string>',
'label_ids' => '<string>',
'priority' => 123,
'contact_email' => '<string>',
'contact_name' => '<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/ticket_upsert"
payload := strings.NewReader("{\n \"type\": \"linear\",\n \"ticket_id\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"team_id\": \"<string>\",\n \"project_id\": \"<string>\",\n \"label_ids\": \"<string>\",\n \"priority\": 123,\n \"contact_email\": \"<string>\",\n \"contact_name\": \"<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/ticket_upsert")
.header("X-Service-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"linear\",\n \"ticket_id\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"team_id\": \"<string>\",\n \"project_id\": \"<string>\",\n \"label_ids\": \"<string>\",\n \"priority\": 123,\n \"contact_email\": \"<string>\",\n \"contact_name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mcp.sagescreen.net/tools/ticket_upsert")
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 \"type\": \"linear\",\n \"ticket_id\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"team_id\": \"<string>\",\n \"project_id\": \"<string>\",\n \"label_ids\": \"<string>\",\n \"priority\": 123,\n \"contact_email\": \"<string>\",\n \"contact_name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{
"error": "<string>",
"detail": "<string>"
}{
"error": "Unauthorized"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}Other
Get-or-create a ticket (Linear) or customer request (ProductLane).
Get-or-create a ticket (Linear) or customer request (ProductLane).
type: ‘linear’ (a ticket) or ‘pl’ (a ProductLane customer request, AI-triaged).
ticket_id: return this existing one as-is (no create, no re-triage).
title/description: the issue/request content. For ‘pl’, description is the
request text and contact_email is required (PL upserts the contact).
team_id/project_id/label_ids/priority: Linear metadata (type=‘linear’).
priority: 0 none, 1 urgent, 2 high, 3 medium, 4 low.
Returns ONLY the completed object: linear -> ;
pl -> .
POST
/
tools
/
ticket_upsert
Get-or-create a ticket (Linear) or customer request (ProductLane).
curl --request POST \
--url https://mcp.sagescreen.net/tools/ticket_upsert \
--header 'Content-Type: application/json' \
--header 'X-Service-Token: <api-key>' \
--data '
{
"type": "linear",
"ticket_id": "<string>",
"title": "<string>",
"description": "<string>",
"team_id": "<string>",
"project_id": "<string>",
"label_ids": "<string>",
"priority": 123,
"contact_email": "<string>",
"contact_name": "<string>"
}
'import requests
url = "https://mcp.sagescreen.net/tools/ticket_upsert"
payload = {
"type": "linear",
"ticket_id": "<string>",
"title": "<string>",
"description": "<string>",
"team_id": "<string>",
"project_id": "<string>",
"label_ids": "<string>",
"priority": 123,
"contact_email": "<string>",
"contact_name": "<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({
type: 'linear',
ticket_id: '<string>',
title: '<string>',
description: '<string>',
team_id: '<string>',
project_id: '<string>',
label_ids: '<string>',
priority: 123,
contact_email: '<string>',
contact_name: '<string>'
})
};
fetch('https://mcp.sagescreen.net/tools/ticket_upsert', 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/ticket_upsert",
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([
'type' => 'linear',
'ticket_id' => '<string>',
'title' => '<string>',
'description' => '<string>',
'team_id' => '<string>',
'project_id' => '<string>',
'label_ids' => '<string>',
'priority' => 123,
'contact_email' => '<string>',
'contact_name' => '<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/ticket_upsert"
payload := strings.NewReader("{\n \"type\": \"linear\",\n \"ticket_id\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"team_id\": \"<string>\",\n \"project_id\": \"<string>\",\n \"label_ids\": \"<string>\",\n \"priority\": 123,\n \"contact_email\": \"<string>\",\n \"contact_name\": \"<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/ticket_upsert")
.header("X-Service-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"linear\",\n \"ticket_id\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"team_id\": \"<string>\",\n \"project_id\": \"<string>\",\n \"label_ids\": \"<string>\",\n \"priority\": 123,\n \"contact_email\": \"<string>\",\n \"contact_name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mcp.sagescreen.net/tools/ticket_upsert")
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 \"type\": \"linear\",\n \"ticket_id\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"team_id\": \"<string>\",\n \"project_id\": \"<string>\",\n \"label_ids\": \"<string>\",\n \"priority\": 123,\n \"contact_email\": \"<string>\",\n \"contact_name\": \"<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