curl --request POST \
--url https://mcp.sagescreen.net/tools/close_action_item \
--header 'Content-Type: application/json' \
--header 'X-Service-Token: <api-key>' \
--data '
{
"actor": "<string>",
"status": "<string>",
"producer": "<string>",
"producer_id": "<string>",
"akiflow_task_id": "<string>"
}
'import requests
url = "https://mcp.sagescreen.net/tools/close_action_item"
payload = {
"actor": "<string>",
"status": "<string>",
"producer": "<string>",
"producer_id": "<string>",
"akiflow_task_id": "<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({
actor: '<string>',
status: '<string>',
producer: '<string>',
producer_id: '<string>',
akiflow_task_id: '<string>'
})
};
fetch('https://mcp.sagescreen.net/tools/close_action_item', 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/close_action_item",
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([
'actor' => '<string>',
'status' => '<string>',
'producer' => '<string>',
'producer_id' => '<string>',
'akiflow_task_id' => '<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/close_action_item"
payload := strings.NewReader("{\n \"actor\": \"<string>\",\n \"status\": \"<string>\",\n \"producer\": \"<string>\",\n \"producer_id\": \"<string>\",\n \"akiflow_task_id\": \"<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/close_action_item")
.header("X-Service-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"actor\": \"<string>\",\n \"status\": \"<string>\",\n \"producer\": \"<string>\",\n \"producer_id\": \"<string>\",\n \"akiflow_task_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mcp.sagescreen.net/tools/close_action_item")
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 \"actor\": \"<string>\",\n \"status\": \"<string>\",\n \"producer\": \"<string>\",\n \"producer_id\": \"<string>\",\n \"akiflow_task_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{
"error": "<string>",
"detail": "<string>"
}{
"error": "Unauthorized"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}Close a hub Action Item as Done or Cancelled.
Close a hub Action Item as Done or Cancelled.
Exactly one target form is accepted:
producer+producer_id— close the row at that upsert key, orakiflow_task_id— resolve through task links, then connector metadata, then Akiflow-native (ProducerAkiflow, Producer ID = the task id). Returnsnot_foundif no hub row matches.
Idempotent: a second identical close call writes nothing and reports
already_closed. Closing an item in a different terminal status is a
real state change and writes.
Only Status and Status since are written. Promotion, Rank,
Priority, Metrics, and every producer-owned field are left untouched.
actor: the calling process — must be in the valid-actor list
(see VALID_ACTORS). Rejected before any HTTP call.
status: Done or Cancelled.
producer: hub Producer name (e.g. Linear, Akiflow).
producer_id: hub Producer ID (e.g. SAG-2650, an Akiflow task uuid).
akiflow_task_id: Akiflow task uuid. Resolves to a hub row via the order
described above.
Returns a JSON string with one of these shapes:
{"status": "closed", "page_id": ..., "previous_status": ..., "new_status": ...}— a row was closed{"status": "already_closed", "page_id": ..., "current_status": ...}— the row was already in the requested status; nothing was written{"status": "not_found"}— no hub row matched the key{"status": "ambiguous", "match_count": N}— more than one row matched; nothing was written{"status": "error", "error": "..."}— actor/status invalid or no target form was provided
curl --request POST \
--url https://mcp.sagescreen.net/tools/close_action_item \
--header 'Content-Type: application/json' \
--header 'X-Service-Token: <api-key>' \
--data '
{
"actor": "<string>",
"status": "<string>",
"producer": "<string>",
"producer_id": "<string>",
"akiflow_task_id": "<string>"
}
'import requests
url = "https://mcp.sagescreen.net/tools/close_action_item"
payload = {
"actor": "<string>",
"status": "<string>",
"producer": "<string>",
"producer_id": "<string>",
"akiflow_task_id": "<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({
actor: '<string>',
status: '<string>',
producer: '<string>',
producer_id: '<string>',
akiflow_task_id: '<string>'
})
};
fetch('https://mcp.sagescreen.net/tools/close_action_item', 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/close_action_item",
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([
'actor' => '<string>',
'status' => '<string>',
'producer' => '<string>',
'producer_id' => '<string>',
'akiflow_task_id' => '<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/close_action_item"
payload := strings.NewReader("{\n \"actor\": \"<string>\",\n \"status\": \"<string>\",\n \"producer\": \"<string>\",\n \"producer_id\": \"<string>\",\n \"akiflow_task_id\": \"<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/close_action_item")
.header("X-Service-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"actor\": \"<string>\",\n \"status\": \"<string>\",\n \"producer\": \"<string>\",\n \"producer_id\": \"<string>\",\n \"akiflow_task_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mcp.sagescreen.net/tools/close_action_item")
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 \"actor\": \"<string>\",\n \"status\": \"<string>\",\n \"producer\": \"<string>\",\n \"producer_id\": \"<string>\",\n \"akiflow_task_id\": \"<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
Body
Response
Tool result. The shape is tool-specific; most tools return a JSON object, some a {"result": ...} envelope.
The response is of type object.