Receive a cell proposal
curl --request POST \
--url https://control.api.niadra.com/v1/config/proposals \
--header 'Content-Type: application/json' \
--header 'X-Niadra-Cell-Token: <api-key>' \
--data '
{
"cell_id": "cell-1",
"space_id": "0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23",
"type": "trigger-rules",
"document": [
{
"rule_id": "overdue_visit",
"condition": "promise.overdue",
"version": "1",
"enabled": true,
"params": {
"days": 1
},
"endpoint_id": "whe_crm",
"window_hours": 24,
"late_policy": "deliver_marked"
}
],
"reason": "Notify the CRM one day after a promised visit is missed"
}
'import requests
url = "https://control.api.niadra.com/v1/config/proposals"
payload = {
"cell_id": "cell-1",
"space_id": "0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23",
"type": "trigger-rules",
"document": [
{
"rule_id": "overdue_visit",
"condition": "promise.overdue",
"version": "1",
"enabled": True,
"params": { "days": 1 },
"endpoint_id": "whe_crm",
"window_hours": 24,
"late_policy": "deliver_marked"
}
],
"reason": "Notify the CRM one day after a promised visit is missed"
}
headers = {
"X-Niadra-Cell-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Niadra-Cell-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
cell_id: 'cell-1',
space_id: '0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23',
type: 'trigger-rules',
document: [
{
rule_id: 'overdue_visit',
condition: 'promise.overdue',
version: '1',
enabled: true,
params: {days: 1},
endpoint_id: 'whe_crm',
window_hours: 24,
late_policy: 'deliver_marked'
}
],
reason: 'Notify the CRM one day after a promised visit is missed'
})
};
fetch('https://control.api.niadra.com/v1/config/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://control.api.niadra.com/v1/config/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([
'cell_id' => 'cell-1',
'space_id' => '0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23',
'type' => 'trigger-rules',
'document' => [
[
'rule_id' => 'overdue_visit',
'condition' => 'promise.overdue',
'version' => '1',
'enabled' => true,
'params' => [
'days' => 1
],
'endpoint_id' => 'whe_crm',
'window_hours' => 24,
'late_policy' => 'deliver_marked'
]
],
'reason' => 'Notify the CRM one day after a promised visit is missed'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Niadra-Cell-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://control.api.niadra.com/v1/config/proposals"
payload := strings.NewReader("{\n \"cell_id\": \"cell-1\",\n \"space_id\": \"0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23\",\n \"type\": \"trigger-rules\",\n \"document\": [\n {\n \"rule_id\": \"overdue_visit\",\n \"condition\": \"promise.overdue\",\n \"version\": \"1\",\n \"enabled\": true,\n \"params\": {\n \"days\": 1\n },\n \"endpoint_id\": \"whe_crm\",\n \"window_hours\": 24,\n \"late_policy\": \"deliver_marked\"\n }\n ],\n \"reason\": \"Notify the CRM one day after a promised visit is missed\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Niadra-Cell-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://control.api.niadra.com/v1/config/proposals")
.header("X-Niadra-Cell-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"cell_id\": \"cell-1\",\n \"space_id\": \"0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23\",\n \"type\": \"trigger-rules\",\n \"document\": [\n {\n \"rule_id\": \"overdue_visit\",\n \"condition\": \"promise.overdue\",\n \"version\": \"1\",\n \"enabled\": true,\n \"params\": {\n \"days\": 1\n },\n \"endpoint_id\": \"whe_crm\",\n \"window_hours\": 24,\n \"late_policy\": \"deliver_marked\"\n }\n ],\n \"reason\": \"Notify the CRM one day after a promised visit is missed\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://control.api.niadra.com/v1/config/proposals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Niadra-Cell-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"cell_id\": \"cell-1\",\n \"space_id\": \"0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23\",\n \"type\": \"trigger-rules\",\n \"document\": [\n {\n \"rule_id\": \"overdue_visit\",\n \"condition\": \"promise.overdue\",\n \"version\": \"1\",\n \"enabled\": true,\n \"params\": {\n \"days\": 1\n },\n \"endpoint_id\": \"whe_crm\",\n \"window_hours\": 24,\n \"late_policy\": \"deliver_marked\"\n }\n ],\n \"reason\": \"Notify the CRM one day after a promised visit is missed\"\n}"
response = http.request(request)
puts response.read_body{
"diff_id": "0192f7b2-6071-7283-9e94-0f1a2b3c4d56",
"space_id": "0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23",
"type": "trigger-rules",
"document": [
{
"rule_id": "overdue_visit",
"condition": "promise.overdue",
"version": "1",
"enabled": true,
"params": {
"days": 1
},
"endpoint_id": "whe_crm",
"window_hours": 24,
"late_policy": "deliver_marked"
}
],
"reason": "Notify the CRM one day after a promised visit is missed",
"status": "proposed",
"base_version": 7,
"applied_version": null,
"author_id": null,
"author_label": "assistant@cell-1",
"created_at": "2026-09-22T18:10:00Z",
"decided_at": null,
"decided_by": null,
"rollback_of": null
}{
"code": "<string>",
"status": 123,
"title": "<string>",
"detail": "<string>",
"request_id": "<string>",
"type": "about:blank"
}Control: configuration
Receive a cell proposal
Where the cell delivers the diff proposed by the configuration assistant.
POST
/
v1
/
config
/
proposals
Receive a cell proposal
curl --request POST \
--url https://control.api.niadra.com/v1/config/proposals \
--header 'Content-Type: application/json' \
--header 'X-Niadra-Cell-Token: <api-key>' \
--data '
{
"cell_id": "cell-1",
"space_id": "0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23",
"type": "trigger-rules",
"document": [
{
"rule_id": "overdue_visit",
"condition": "promise.overdue",
"version": "1",
"enabled": true,
"params": {
"days": 1
},
"endpoint_id": "whe_crm",
"window_hours": 24,
"late_policy": "deliver_marked"
}
],
"reason": "Notify the CRM one day after a promised visit is missed"
}
'import requests
url = "https://control.api.niadra.com/v1/config/proposals"
payload = {
"cell_id": "cell-1",
"space_id": "0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23",
"type": "trigger-rules",
"document": [
{
"rule_id": "overdue_visit",
"condition": "promise.overdue",
"version": "1",
"enabled": True,
"params": { "days": 1 },
"endpoint_id": "whe_crm",
"window_hours": 24,
"late_policy": "deliver_marked"
}
],
"reason": "Notify the CRM one day after a promised visit is missed"
}
headers = {
"X-Niadra-Cell-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Niadra-Cell-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
cell_id: 'cell-1',
space_id: '0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23',
type: 'trigger-rules',
document: [
{
rule_id: 'overdue_visit',
condition: 'promise.overdue',
version: '1',
enabled: true,
params: {days: 1},
endpoint_id: 'whe_crm',
window_hours: 24,
late_policy: 'deliver_marked'
}
],
reason: 'Notify the CRM one day after a promised visit is missed'
})
};
fetch('https://control.api.niadra.com/v1/config/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://control.api.niadra.com/v1/config/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([
'cell_id' => 'cell-1',
'space_id' => '0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23',
'type' => 'trigger-rules',
'document' => [
[
'rule_id' => 'overdue_visit',
'condition' => 'promise.overdue',
'version' => '1',
'enabled' => true,
'params' => [
'days' => 1
],
'endpoint_id' => 'whe_crm',
'window_hours' => 24,
'late_policy' => 'deliver_marked'
]
],
'reason' => 'Notify the CRM one day after a promised visit is missed'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Niadra-Cell-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://control.api.niadra.com/v1/config/proposals"
payload := strings.NewReader("{\n \"cell_id\": \"cell-1\",\n \"space_id\": \"0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23\",\n \"type\": \"trigger-rules\",\n \"document\": [\n {\n \"rule_id\": \"overdue_visit\",\n \"condition\": \"promise.overdue\",\n \"version\": \"1\",\n \"enabled\": true,\n \"params\": {\n \"days\": 1\n },\n \"endpoint_id\": \"whe_crm\",\n \"window_hours\": 24,\n \"late_policy\": \"deliver_marked\"\n }\n ],\n \"reason\": \"Notify the CRM one day after a promised visit is missed\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Niadra-Cell-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://control.api.niadra.com/v1/config/proposals")
.header("X-Niadra-Cell-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"cell_id\": \"cell-1\",\n \"space_id\": \"0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23\",\n \"type\": \"trigger-rules\",\n \"document\": [\n {\n \"rule_id\": \"overdue_visit\",\n \"condition\": \"promise.overdue\",\n \"version\": \"1\",\n \"enabled\": true,\n \"params\": {\n \"days\": 1\n },\n \"endpoint_id\": \"whe_crm\",\n \"window_hours\": 24,\n \"late_policy\": \"deliver_marked\"\n }\n ],\n \"reason\": \"Notify the CRM one day after a promised visit is missed\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://control.api.niadra.com/v1/config/proposals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Niadra-Cell-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"cell_id\": \"cell-1\",\n \"space_id\": \"0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23\",\n \"type\": \"trigger-rules\",\n \"document\": [\n {\n \"rule_id\": \"overdue_visit\",\n \"condition\": \"promise.overdue\",\n \"version\": \"1\",\n \"enabled\": true,\n \"params\": {\n \"days\": 1\n },\n \"endpoint_id\": \"whe_crm\",\n \"window_hours\": 24,\n \"late_policy\": \"deliver_marked\"\n }\n ],\n \"reason\": \"Notify the CRM one day after a promised visit is missed\"\n}"
response = http.request(request)
puts response.read_body{
"diff_id": "0192f7b2-6071-7283-9e94-0f1a2b3c4d56",
"space_id": "0192f0a0-3d4e-7f50-8b61-7c8d9e0f1a23",
"type": "trigger-rules",
"document": [
{
"rule_id": "overdue_visit",
"condition": "promise.overdue",
"version": "1",
"enabled": true,
"params": {
"days": 1
},
"endpoint_id": "whe_crm",
"window_hours": 24,
"late_policy": "deliver_marked"
}
],
"reason": "Notify the CRM one day after a promised visit is missed",
"status": "proposed",
"base_version": 7,
"applied_version": null,
"author_id": null,
"author_label": "assistant@cell-1",
"created_at": "2026-09-22T18:10:00Z",
"decided_at": null,
"decided_by": null,
"rollback_of": null
}{
"code": "<string>",
"status": 123,
"title": "<string>",
"detail": "<string>",
"request_id": "<string>",
"type": "about:blank"
}Authorizations
Body
application/json
Response
The proposed diff.
The version the diff created when it was applied.
Set when a cell proposed the diff, such as assistant@cell-1.
The configuration version the diff was written against. A diff written against an outdated document is refused at approval.
The diff this one rolled back.
Available options:
pending, proposed, applied, rejected 
