curl -X POST "https://api.signalmd.dev/v1/agents/6f1d2c3b-4a5e-4f60-8b7a-9c0d1e2f3a4b/tests/3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f/criteria-proposals" \
-H "Authorization: Bearer $SIGNAL_API_KEY"import requests
url = "https://api.signalmd.dev/v1/agents/{agentId}/tests/{testId}/criteria-proposals"
payload = {
"spec": {},
"why": "<string>",
"goalId": "3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({spec: {}, why: '<string>', goalId: '3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f'})
};
fetch('https://api.signalmd.dev/v1/agents/{agentId}/tests/{testId}/criteria-proposals', 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://api.signalmd.dev/v1/agents/{agentId}/tests/{testId}/criteria-proposals",
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([
'spec' => [
],
'why' => '<string>',
'goalId' => '3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://api.signalmd.dev/v1/agents/{agentId}/tests/{testId}/criteria-proposals"
payload := strings.NewReader("{\n \"spec\": {},\n \"why\": \"<string>\",\n \"goalId\": \"3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.signalmd.dev/v1/agents/{agentId}/tests/{testId}/criteria-proposals")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"spec\": {},\n \"why\": \"<string>\",\n \"goalId\": \"3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.signalmd.dev/v1/agents/{agentId}/tests/{testId}/criteria-proposals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"spec\": {},\n \"why\": \"<string>\",\n \"goalId\": \"3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f\"\n}"
response = http.request(request)
puts response.read_body{
"object": "criteria_proposal",
"id": "3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"testId": "3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"testTitle": "<string>",
"baseRevision": 123,
"currentRevision": 123,
"status": "pending",
"why": "<string>",
"diff": {
"added": [
"<string>"
],
"removed": [
"<string>"
],
"changed": [
{
"id": "<string>",
"from": "<unknown>",
"to": "<unknown>"
}
]
},
"lines": {
"added": [
{
"id": "<string>",
"text": "<string>"
}
],
"removed": [
{
"id": "<string>",
"text": "<string>"
}
],
"changed": [
{
"id": "<string>",
"from": "<string>",
"to": "<string>"
}
]
},
"spec": {
"specVersion": 1,
"source": {
"kind": "production",
"basedOnTestId": "3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"basedOnCallId": "3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"briefLine": {
"section": "out_of_scope",
"key": "<string>",
"text": "<string>"
},
"generated": {
"generationId": "<string>",
"kind": "from_call",
"cell": "<string>"
}
},
"intentSlug": "<string>",
"lane": "hearing",
"tier": "text",
"start": {
"direction": "inbound",
"agentSpeaksFirst": true,
"variables": {},
"metadata": {}
},
"caller": {
"persona": "<string>",
"goal": "<string>",
"lines": [
"<string>"
],
"behaviours": [
{
"kind": "refuses",
"atLine": 123,
"detail": "<string>"
}
]
},
"fixtures": {},
"criteria": [
{
"id": "<string>",
"decidedBy": "detector",
"ref": "<string>",
"text": "<string>",
"polarity": "must"
}
],
"expect": "pass",
"guard": true,
"sets": [
"<string>"
],
"tags": [
"<string>"
],
"testId": "3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"revision": 123,
"title": "<string>"
},
"proposedBy": "<string>",
"principalKind": "person",
"decidedBy": "<string>",
"decidedAt": "2026-10-02T14:03:07.120Z",
"resultingRevision": 123,
"goalId": "3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"createdAt": "2026-10-02T14:03:07.120Z"
}{
"error": {
"type": "not_found_error",
"code": "agent_not_found",
"message": "Agent not found.",
"param": null,
"requestId": "req_8c1f0e2b4a6d9e3f7a5c1b0d"
}
}{
"error": {
"type": "not_found_error",
"code": "agent_not_found",
"message": "Agent not found.",
"param": null,
"requestId": "req_8c1f0e2b4a6d9e3f7a5c1b0d"
}
}{
"error": {
"type": "not_found_error",
"code": "agent_not_found",
"message": "Agent not found.",
"param": null,
"requestId": "req_8c1f0e2b4a6d9e3f7a5c1b0d"
}
}{
"error": {
"type": "not_found_error",
"code": "agent_not_found",
"message": "Agent not found.",
"param": null,
"requestId": "req_8c1f0e2b4a6d9e3f7a5c1b0d"
}
}{
"error": {
"type": "not_found_error",
"code": "agent_not_found",
"message": "Agent not found.",
"param": null,
"requestId": "req_8c1f0e2b4a6d9e3f7a5c1b0d"
}
}{
"error": {
"type": "not_found_error",
"code": "agent_not_found",
"message": "Agent not found.",
"param": null,
"requestId": "req_8c1f0e2b4a6d9e3f7a5c1b0d"
}
}{
"error": {
"type": "not_found_error",
"code": "agent_not_found",
"message": "Agent not found.",
"param": null,
"requestId": "req_8c1f0e2b4a6d9e3f7a5c1b0d"
}
}Propose a criteria change
Files a change to the test’s criteria for a person to approve or reject in SignalMD, and changes nothing now. Send the test as it should be; a spec that leaves the criteria as they are is 422 no_criteria_change (edit the rest with PATCH). A newer proposal supersedes a pending one for the same test.
curl -X POST "https://api.signalmd.dev/v1/agents/6f1d2c3b-4a5e-4f60-8b7a-9c0d1e2f3a4b/tests/3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f/criteria-proposals" \
-H "Authorization: Bearer $SIGNAL_API_KEY"import requests
url = "https://api.signalmd.dev/v1/agents/{agentId}/tests/{testId}/criteria-proposals"
payload = {
"spec": {},
"why": "<string>",
"goalId": "3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({spec: {}, why: '<string>', goalId: '3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f'})
};
fetch('https://api.signalmd.dev/v1/agents/{agentId}/tests/{testId}/criteria-proposals', 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://api.signalmd.dev/v1/agents/{agentId}/tests/{testId}/criteria-proposals",
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([
'spec' => [
],
'why' => '<string>',
'goalId' => '3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://api.signalmd.dev/v1/agents/{agentId}/tests/{testId}/criteria-proposals"
payload := strings.NewReader("{\n \"spec\": {},\n \"why\": \"<string>\",\n \"goalId\": \"3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.signalmd.dev/v1/agents/{agentId}/tests/{testId}/criteria-proposals")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"spec\": {},\n \"why\": \"<string>\",\n \"goalId\": \"3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.signalmd.dev/v1/agents/{agentId}/tests/{testId}/criteria-proposals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"spec\": {},\n \"why\": \"<string>\",\n \"goalId\": \"3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f\"\n}"
response = http.request(request)
puts response.read_body{
"object": "criteria_proposal",
"id": "3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"testId": "3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"testTitle": "<string>",
"baseRevision": 123,
"currentRevision": 123,
"status": "pending",
"why": "<string>",
"diff": {
"added": [
"<string>"
],
"removed": [
"<string>"
],
"changed": [
{
"id": "<string>",
"from": "<unknown>",
"to": "<unknown>"
}
]
},
"lines": {
"added": [
{
"id": "<string>",
"text": "<string>"
}
],
"removed": [
{
"id": "<string>",
"text": "<string>"
}
],
"changed": [
{
"id": "<string>",
"from": "<string>",
"to": "<string>"
}
]
},
"spec": {
"specVersion": 1,
"source": {
"kind": "production",
"basedOnTestId": "3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"basedOnCallId": "3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"briefLine": {
"section": "out_of_scope",
"key": "<string>",
"text": "<string>"
},
"generated": {
"generationId": "<string>",
"kind": "from_call",
"cell": "<string>"
}
},
"intentSlug": "<string>",
"lane": "hearing",
"tier": "text",
"start": {
"direction": "inbound",
"agentSpeaksFirst": true,
"variables": {},
"metadata": {}
},
"caller": {
"persona": "<string>",
"goal": "<string>",
"lines": [
"<string>"
],
"behaviours": [
{
"kind": "refuses",
"atLine": 123,
"detail": "<string>"
}
]
},
"fixtures": {},
"criteria": [
{
"id": "<string>",
"decidedBy": "detector",
"ref": "<string>",
"text": "<string>",
"polarity": "must"
}
],
"expect": "pass",
"guard": true,
"sets": [
"<string>"
],
"tags": [
"<string>"
],
"testId": "3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"revision": 123,
"title": "<string>"
},
"proposedBy": "<string>",
"principalKind": "person",
"decidedBy": "<string>",
"decidedAt": "2026-10-02T14:03:07.120Z",
"resultingRevision": 123,
"goalId": "3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"createdAt": "2026-10-02T14:03:07.120Z"
}{
"error": {
"type": "not_found_error",
"code": "agent_not_found",
"message": "Agent not found.",
"param": null,
"requestId": "req_8c1f0e2b4a6d9e3f7a5c1b0d"
}
}{
"error": {
"type": "not_found_error",
"code": "agent_not_found",
"message": "Agent not found.",
"param": null,
"requestId": "req_8c1f0e2b4a6d9e3f7a5c1b0d"
}
}{
"error": {
"type": "not_found_error",
"code": "agent_not_found",
"message": "Agent not found.",
"param": null,
"requestId": "req_8c1f0e2b4a6d9e3f7a5c1b0d"
}
}{
"error": {
"type": "not_found_error",
"code": "agent_not_found",
"message": "Agent not found.",
"param": null,
"requestId": "req_8c1f0e2b4a6d9e3f7a5c1b0d"
}
}{
"error": {
"type": "not_found_error",
"code": "agent_not_found",
"message": "Agent not found.",
"param": null,
"requestId": "req_8c1f0e2b4a6d9e3f7a5c1b0d"
}
}{
"error": {
"type": "not_found_error",
"code": "agent_not_found",
"message": "Agent not found.",
"param": null,
"requestId": "req_8c1f0e2b4a6d9e3f7a5c1b0d"
}
}{
"error": {
"type": "not_found_error",
"code": "agent_not_found",
"message": "Agent not found.",
"param": null,
"requestId": "req_8c1f0e2b4a6d9e3f7a5c1b0d"
}
}Authorizations
An API key (sig_...), or a session token from the web app.
Path Parameters
The agent's id.
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f"
The test's id.
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f"
Body
Response
The proposal, pending.
criteria_proposal ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f"
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f"
The revision it was written against.
The test's revision now. Approving a proposal on an older one applies its criteria only.
pending, approved, rejected, superseded Criterion ids added, removed and changed against the base revision. Rewording counts as a change.
Show child attributes
Show child attributes
The diff in the brief's current words.
Show child attributes
Show child attributes
The test as proposed.
Show child attributes
Show child attributes
Who recorded it: a person, an API key, or the in-app copilot.
person, key, copilot "2026-10-02T14:03:07.120Z"
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f"
"2026-10-02T14:03:07.120Z"
Was this page helpful?