Add a comment to an intake item
curl --request POST \
--url https://{domain}/wp-json/sagescreen/v1/intake/add-comment \
--header 'Content-Type: application/json' \
--header 'X-WP-Nonce: <api-key>' \
--data '
{
"item_id": 4821,
"comment": "Spoke with the customer — they need a revised quote by Friday."
}
'import requests
url = "https://{domain}/wp-json/sagescreen/v1/intake/add-comment"
payload = {
"item_id": 4821,
"comment": "Spoke with the customer — they need a revised quote by Friday."
}
headers = {
"X-WP-Nonce": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-WP-Nonce': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
item_id: 4821,
comment: 'Spoke with the customer — they need a revised quote by Friday.'
})
};
fetch('https://{domain}/wp-json/sagescreen/v1/intake/add-comment', 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://{domain}/wp-json/sagescreen/v1/intake/add-comment",
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([
'item_id' => 4821,
'comment' => 'Spoke with the customer — they need a revised quote by Friday.'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-WP-Nonce: <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://{domain}/wp-json/sagescreen/v1/intake/add-comment"
payload := strings.NewReader("{\n \"item_id\": 4821,\n \"comment\": \"Spoke with the customer — they need a revised quote by Friday.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-WP-Nonce", "<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://{domain}/wp-json/sagescreen/v1/intake/add-comment")
.header("X-WP-Nonce", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"item_id\": 4821,\n \"comment\": \"Spoke with the customer — they need a revised quote by Friday.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}/wp-json/sagescreen/v1/intake/add-comment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-WP-Nonce"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"item_id\": 4821,\n \"comment\": \"Spoke with the customer — they need a revised quote by Friday.\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"author_name": "John Doe",
"body": "Spoke with the customer — they need a revised quote by Friday.",
"created_at": "Feb 19, 2026 2:30 PM"
}
}Intake
Add a comment to an intake item
Appends a comment to the item’s intake_comments JSON meta.
Body is sanitized and truncated to 1 000 characters.
Item must be intake_open. Caller must be owner or admin.
POST
/
intake
/
add-comment
Add a comment to an intake item
curl --request POST \
--url https://{domain}/wp-json/sagescreen/v1/intake/add-comment \
--header 'Content-Type: application/json' \
--header 'X-WP-Nonce: <api-key>' \
--data '
{
"item_id": 4821,
"comment": "Spoke with the customer — they need a revised quote by Friday."
}
'import requests
url = "https://{domain}/wp-json/sagescreen/v1/intake/add-comment"
payload = {
"item_id": 4821,
"comment": "Spoke with the customer — they need a revised quote by Friday."
}
headers = {
"X-WP-Nonce": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-WP-Nonce': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
item_id: 4821,
comment: 'Spoke with the customer — they need a revised quote by Friday.'
})
};
fetch('https://{domain}/wp-json/sagescreen/v1/intake/add-comment', 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://{domain}/wp-json/sagescreen/v1/intake/add-comment",
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([
'item_id' => 4821,
'comment' => 'Spoke with the customer — they need a revised quote by Friday.'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-WP-Nonce: <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://{domain}/wp-json/sagescreen/v1/intake/add-comment"
payload := strings.NewReader("{\n \"item_id\": 4821,\n \"comment\": \"Spoke with the customer — they need a revised quote by Friday.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-WP-Nonce", "<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://{domain}/wp-json/sagescreen/v1/intake/add-comment")
.header("X-WP-Nonce", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"item_id\": 4821,\n \"comment\": \"Spoke with the customer — they need a revised quote by Friday.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}/wp-json/sagescreen/v1/intake/add-comment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-WP-Nonce"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"item_id\": 4821,\n \"comment\": \"Spoke with the customer — they need a revised quote by Friday.\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"author_name": "John Doe",
"body": "Spoke with the customer — they need a revised quote by Friday.",
"created_at": "Feb 19, 2026 2:30 PM"
}
}Authorizations
WordPress REST nonce (wp_rest action)
Body
application/json
⌘I