Update Lead
curl --request PATCH \
--url https://api.opennous.cloud/v2/leads/{id}import requests
url = "https://api.opennous.cloud/v2/leads/{id}"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://api.opennous.cloud/v2/leads/{id}', 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.opennous.cloud/v2/leads/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.opennous.cloud/v2/leads/{id}"
req, _ := http.NewRequest("PATCH", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.opennous.cloud/v2/leads/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.opennous.cloud/v2/leads/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
response = http.request(request)
puts response.read_bodyLeads
Update Lead
Patch a lead row mid-workflow. The morning-loop fix — record sent_at the instant you fire the email so the next iteration’s filter excludes the row.
PATCH
/
v2
/
leads
/
{id}
Update Lead
curl --request PATCH \
--url https://api.opennous.cloud/v2/leads/{id}import requests
url = "https://api.opennous.cloud/v2/leads/{id}"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://api.opennous.cloud/v2/leads/{id}', 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.opennous.cloud/v2/leads/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.opennous.cloud/v2/leads/{id}"
req, _ := http.NewRequest("PATCH", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.opennous.cloud/v2/leads/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.opennous.cloud/v2/leads/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
response = http.request(request)
puts response.read_bodycurl -X PATCH https://api.opennous.cloud/v2/leads/9f1e... \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{ "sent_at": "2026-05-27T08:01:11Z", "status": "sent" }'
Body
Pass any subset ofstatus, reply_outcome, replied_at, sent_at, send_variant, scorecard_score, contact_id, features, fields.
Response
{
"lead": {
"id": "9f1e...",
"sent_at": "2026-05-27T08:01:11Z",
"status": "sent",
"...": "..."
}
}
The morning-loop pattern
This is the canonical n8n shape for chasing non-responders.- Pull the batch.
GET /v2/leads?list_id=...&sent_before=2d&has_replied=false. - Loop over each row. Draft the follow-up via your prompt of choice.
- Send the email through Smartlead or Gmail.
- Immediately PATCH the row.
{ "sent_at": "<now>", "status": "sent" }. The next iteration’s filter excludes the row. - Also write an observation against the entity with the upstream
message_idasexternal_id. The async webhook from your sending tool will arrive minutes later and hit the sameexternal_id, so the activity is recorded once.
external_id makes the double-write safe.