curl --request POST \
--url https://api.getnexor.ai/api/public/rules/recontact \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<unknown>",
"stale_after_hours": 123,
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"trigger_status_key": "<unknown>",
"stale_reference": "last_message_at",
"cooldown_hours": 24,
"max_attempts": 5,
"on_exhausted": "mark_cold",
"priority": 5,
"prompt_hint": "<unknown>",
"conditions": "<unknown>",
"is_active": "<unknown>"
}
'import requests
url = "https://api.getnexor.ai/api/public/rules/recontact"
payload = {
"name": "<unknown>",
"stale_after_hours": 123,
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"trigger_status_key": "<unknown>",
"stale_reference": "last_message_at",
"cooldown_hours": 24,
"max_attempts": 5,
"on_exhausted": "mark_cold",
"priority": 5,
"prompt_hint": "<unknown>",
"conditions": "<unknown>",
"is_active": "<unknown>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<unknown>',
stale_after_hours: 123,
workflow_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
trigger_status_key: '<unknown>',
stale_reference: 'last_message_at',
cooldown_hours: 24,
max_attempts: 5,
on_exhausted: 'mark_cold',
priority: 5,
prompt_hint: '<unknown>',
conditions: '<unknown>',
is_active: '<unknown>'
})
};
fetch('https://api.getnexor.ai/api/public/rules/recontact', 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.getnexor.ai/api/public/rules/recontact",
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([
'name' => '<unknown>',
'stale_after_hours' => 123,
'workflow_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'trigger_status_key' => '<unknown>',
'stale_reference' => 'last_message_at',
'cooldown_hours' => 24,
'max_attempts' => 5,
'on_exhausted' => 'mark_cold',
'priority' => 5,
'prompt_hint' => '<unknown>',
'conditions' => '<unknown>',
'is_active' => '<unknown>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <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://api.getnexor.ai/api/public/rules/recontact"
payload := strings.NewReader("{\n \"name\": \"<unknown>\",\n \"stale_after_hours\": 123,\n \"workflow_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"trigger_status_key\": \"<unknown>\",\n \"stale_reference\": \"last_message_at\",\n \"cooldown_hours\": 24,\n \"max_attempts\": 5,\n \"on_exhausted\": \"mark_cold\",\n \"priority\": 5,\n \"prompt_hint\": \"<unknown>\",\n \"conditions\": \"<unknown>\",\n \"is_active\": \"<unknown>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<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://api.getnexor.ai/api/public/rules/recontact")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<unknown>\",\n \"stale_after_hours\": 123,\n \"workflow_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"trigger_status_key\": \"<unknown>\",\n \"stale_reference\": \"last_message_at\",\n \"cooldown_hours\": 24,\n \"max_attempts\": 5,\n \"on_exhausted\": \"mark_cold\",\n \"priority\": 5,\n \"prompt_hint\": \"<unknown>\",\n \"conditions\": \"<unknown>\",\n \"is_active\": \"<unknown>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getnexor.ai/api/public/rules/recontact")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<unknown>\",\n \"stale_after_hours\": 123,\n \"workflow_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"trigger_status_key\": \"<unknown>\",\n \"stale_reference\": \"last_message_at\",\n \"cooldown_hours\": 24,\n \"max_attempts\": 5,\n \"on_exhausted\": \"mark_cold\",\n \"priority\": 5,\n \"prompt_hint\": \"<unknown>\",\n \"conditions\": \"<unknown>\",\n \"is_active\": \"<unknown>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"rule": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"trigger_status_category": "<string>",
"trigger_status_key": "<string>",
"stale_after_hours": 123,
"stale_reference": "last_message_at",
"conditions": "<unknown>",
"max_attempts": 123,
"cooldown_hours": 123,
"on_exhausted": "mark_cold",
"prompt_hint": "<string>",
"priority": 5,
"is_active": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"trigger_event": "<string>",
"template_name": "<string>",
"channel_override": "<string>",
"inherits_workflow_policy": true,
"cadence_owned": true
},
"status": "updated"
}{
"success": true,
"rule": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"trigger_status_category": "<string>",
"trigger_status_key": "<string>",
"stale_after_hours": 123,
"stale_reference": "last_message_at",
"conditions": "<unknown>",
"max_attempts": 123,
"cooldown_hours": 123,
"on_exhausted": "mark_cold",
"prompt_hint": "<string>",
"priority": 5,
"is_active": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"trigger_event": "<string>",
"template_name": "<string>",
"channel_override": "<string>",
"inherits_workflow_policy": true,
"cadence_owned": true
},
"status": "created"
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"field": "<string>",
"value": "<unknown>",
"allowed": [
"<unknown>"
]
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"field": "<string>",
"value": "<unknown>",
"allowed": [
"<unknown>"
]
}{
"error": "CADENCE_OWNED_STAGE",
"message": "<string>",
"status_key": "<string>",
"cadence_owned_stage_keys": [
"<string>"
],
"suggestion": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "Database error",
"message": "Rule operation failed"
}Create or Update a Recontact Rule
This operation lets you create or update a recontact rule for the authenticated Nexor account. This reference documents verified path, query, and top-level JSON body fields, observed response status codes, and top-level response fields. Provider-owned or deeply nested response shapes may remain open.
curl --request POST \
--url https://api.getnexor.ai/api/public/rules/recontact \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<unknown>",
"stale_after_hours": 123,
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"trigger_status_key": "<unknown>",
"stale_reference": "last_message_at",
"cooldown_hours": 24,
"max_attempts": 5,
"on_exhausted": "mark_cold",
"priority": 5,
"prompt_hint": "<unknown>",
"conditions": "<unknown>",
"is_active": "<unknown>"
}
'import requests
url = "https://api.getnexor.ai/api/public/rules/recontact"
payload = {
"name": "<unknown>",
"stale_after_hours": 123,
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"trigger_status_key": "<unknown>",
"stale_reference": "last_message_at",
"cooldown_hours": 24,
"max_attempts": 5,
"on_exhausted": "mark_cold",
"priority": 5,
"prompt_hint": "<unknown>",
"conditions": "<unknown>",
"is_active": "<unknown>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<unknown>',
stale_after_hours: 123,
workflow_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
trigger_status_key: '<unknown>',
stale_reference: 'last_message_at',
cooldown_hours: 24,
max_attempts: 5,
on_exhausted: 'mark_cold',
priority: 5,
prompt_hint: '<unknown>',
conditions: '<unknown>',
is_active: '<unknown>'
})
};
fetch('https://api.getnexor.ai/api/public/rules/recontact', 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.getnexor.ai/api/public/rules/recontact",
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([
'name' => '<unknown>',
'stale_after_hours' => 123,
'workflow_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'trigger_status_key' => '<unknown>',
'stale_reference' => 'last_message_at',
'cooldown_hours' => 24,
'max_attempts' => 5,
'on_exhausted' => 'mark_cold',
'priority' => 5,
'prompt_hint' => '<unknown>',
'conditions' => '<unknown>',
'is_active' => '<unknown>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <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://api.getnexor.ai/api/public/rules/recontact"
payload := strings.NewReader("{\n \"name\": \"<unknown>\",\n \"stale_after_hours\": 123,\n \"workflow_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"trigger_status_key\": \"<unknown>\",\n \"stale_reference\": \"last_message_at\",\n \"cooldown_hours\": 24,\n \"max_attempts\": 5,\n \"on_exhausted\": \"mark_cold\",\n \"priority\": 5,\n \"prompt_hint\": \"<unknown>\",\n \"conditions\": \"<unknown>\",\n \"is_active\": \"<unknown>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<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://api.getnexor.ai/api/public/rules/recontact")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<unknown>\",\n \"stale_after_hours\": 123,\n \"workflow_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"trigger_status_key\": \"<unknown>\",\n \"stale_reference\": \"last_message_at\",\n \"cooldown_hours\": 24,\n \"max_attempts\": 5,\n \"on_exhausted\": \"mark_cold\",\n \"priority\": 5,\n \"prompt_hint\": \"<unknown>\",\n \"conditions\": \"<unknown>\",\n \"is_active\": \"<unknown>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getnexor.ai/api/public/rules/recontact")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<unknown>\",\n \"stale_after_hours\": 123,\n \"workflow_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"trigger_status_key\": \"<unknown>\",\n \"stale_reference\": \"last_message_at\",\n \"cooldown_hours\": 24,\n \"max_attempts\": 5,\n \"on_exhausted\": \"mark_cold\",\n \"priority\": 5,\n \"prompt_hint\": \"<unknown>\",\n \"conditions\": \"<unknown>\",\n \"is_active\": \"<unknown>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"rule": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"trigger_status_category": "<string>",
"trigger_status_key": "<string>",
"stale_after_hours": 123,
"stale_reference": "last_message_at",
"conditions": "<unknown>",
"max_attempts": 123,
"cooldown_hours": 123,
"on_exhausted": "mark_cold",
"prompt_hint": "<string>",
"priority": 5,
"is_active": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"trigger_event": "<string>",
"template_name": "<string>",
"channel_override": "<string>",
"inherits_workflow_policy": true,
"cadence_owned": true
},
"status": "updated"
}{
"success": true,
"rule": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"trigger_status_category": "<string>",
"trigger_status_key": "<string>",
"stale_after_hours": 123,
"stale_reference": "last_message_at",
"conditions": "<unknown>",
"max_attempts": 123,
"cooldown_hours": 123,
"on_exhausted": "mark_cold",
"prompt_hint": "<string>",
"priority": 5,
"is_active": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"trigger_event": "<string>",
"template_name": "<string>",
"channel_override": "<string>",
"inherits_workflow_policy": true,
"cadence_owned": true
},
"status": "created"
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"field": "<string>",
"value": "<unknown>",
"allowed": [
"<unknown>"
]
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"field": "<string>",
"value": "<unknown>",
"allowed": [
"<unknown>"
]
}{
"error": "CADENCE_OWNED_STAGE",
"message": "<string>",
"status_key": "<string>",
"cadence_owned_stage_keys": [
"<string>"
],
"suggestion": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "Database error",
"message": "Rule operation failed"
}Authorizations
API key for authentication. Keys are prefixed with nxr_live_.
Body
Required truthy value; type and length are not validated before the text column.
Required finite number; no positive/range check, and fractions can fail the integer column.
No existence check; any non-cadence key can be stored.
last_message_at, last_response_at, last_touchpoint_at, status_changed_at, started_at Finite values accepted without range check; otherwise defaults.
Finite values accepted without range check; otherwise defaults.
mark_cold, pause_run, nothing DB enforces 1..10; handler only requires finite when supplied.
1 <= x <= 10No handler type/length validation before text coercion.
Defaults to {}. Any JSON value is accepted by the handler and stored as jsonb.
Defaults true; no handler type validation before boolean coercion.