Force lead workflow status
curl --request POST \
--url https://api.getnexor.ai/api/public/leads/{id}/status \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"status_key": "<string>",
"reason": "<string>",
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"discard_reason_code": "<string>",
"discard_reason_label": "<string>",
"discard_reason_note": "<string>",
"discard_reason_subcode": "<string>",
"discard_reason_subcode_label": "<string>"
}
'import requests
url = "https://api.getnexor.ai/api/public/leads/{id}/status"
payload = {
"status_key": "<string>",
"reason": "<string>",
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"discard_reason_code": "<string>",
"discard_reason_label": "<string>",
"discard_reason_note": "<string>",
"discard_reason_subcode": "<string>",
"discard_reason_subcode_label": "<string>"
}
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({
status_key: '<string>',
reason: '<string>',
workflow_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
discard_reason_code: '<string>',
discard_reason_label: '<string>',
discard_reason_note: '<string>',
discard_reason_subcode: '<string>',
discard_reason_subcode_label: '<string>'
})
};
fetch('https://api.getnexor.ai/api/public/leads/{id}/status', 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/leads/{id}/status",
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([
'status_key' => '<string>',
'reason' => '<string>',
'workflow_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'discard_reason_code' => '<string>',
'discard_reason_label' => '<string>',
'discard_reason_note' => '<string>',
'discard_reason_subcode' => '<string>',
'discard_reason_subcode_label' => '<string>'
]),
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/leads/{id}/status"
payload := strings.NewReader("{\n \"status_key\": \"<string>\",\n \"reason\": \"<string>\",\n \"workflow_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"discard_reason_code\": \"<string>\",\n \"discard_reason_label\": \"<string>\",\n \"discard_reason_note\": \"<string>\",\n \"discard_reason_subcode\": \"<string>\",\n \"discard_reason_subcode_label\": \"<string>\"\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/leads/{id}/status")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"status_key\": \"<string>\",\n \"reason\": \"<string>\",\n \"workflow_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"discard_reason_code\": \"<string>\",\n \"discard_reason_label\": \"<string>\",\n \"discard_reason_note\": \"<string>\",\n \"discard_reason_subcode\": \"<string>\",\n \"discard_reason_subcode_label\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getnexor.ai/api/public/leads/{id}/status")
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 \"status_key\": \"<string>\",\n \"reason\": \"<string>\",\n \"workflow_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"discard_reason_code\": \"<string>\",\n \"discard_reason_label\": \"<string>\",\n \"discard_reason_note\": \"<string>\",\n \"discard_reason_subcode\": \"<string>\",\n \"discard_reason_subcode_label\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"changed": true,
"previous_status": "engaged",
"new_status": "qualified",
"workflow_run": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"workflow_id": "123e4567-e89b-12d3-a456-426614174000"
}
}
Set Lead Status
Force a lead’s status within its active workflow run. Safety note: The discard_reason_code, discard_reason_label, discard_reason_subcode, discard_reason_subcode_label, and discard_reason_note fields preserve structured discard provenance.
POST
/
leads
/
{id}
/
status
Force lead workflow status
curl --request POST \
--url https://api.getnexor.ai/api/public/leads/{id}/status \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"status_key": "<string>",
"reason": "<string>",
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"discard_reason_code": "<string>",
"discard_reason_label": "<string>",
"discard_reason_note": "<string>",
"discard_reason_subcode": "<string>",
"discard_reason_subcode_label": "<string>"
}
'import requests
url = "https://api.getnexor.ai/api/public/leads/{id}/status"
payload = {
"status_key": "<string>",
"reason": "<string>",
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"discard_reason_code": "<string>",
"discard_reason_label": "<string>",
"discard_reason_note": "<string>",
"discard_reason_subcode": "<string>",
"discard_reason_subcode_label": "<string>"
}
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({
status_key: '<string>',
reason: '<string>',
workflow_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
discard_reason_code: '<string>',
discard_reason_label: '<string>',
discard_reason_note: '<string>',
discard_reason_subcode: '<string>',
discard_reason_subcode_label: '<string>'
})
};
fetch('https://api.getnexor.ai/api/public/leads/{id}/status', 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/leads/{id}/status",
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([
'status_key' => '<string>',
'reason' => '<string>',
'workflow_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'discard_reason_code' => '<string>',
'discard_reason_label' => '<string>',
'discard_reason_note' => '<string>',
'discard_reason_subcode' => '<string>',
'discard_reason_subcode_label' => '<string>'
]),
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/leads/{id}/status"
payload := strings.NewReader("{\n \"status_key\": \"<string>\",\n \"reason\": \"<string>\",\n \"workflow_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"discard_reason_code\": \"<string>\",\n \"discard_reason_label\": \"<string>\",\n \"discard_reason_note\": \"<string>\",\n \"discard_reason_subcode\": \"<string>\",\n \"discard_reason_subcode_label\": \"<string>\"\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/leads/{id}/status")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"status_key\": \"<string>\",\n \"reason\": \"<string>\",\n \"workflow_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"discard_reason_code\": \"<string>\",\n \"discard_reason_label\": \"<string>\",\n \"discard_reason_note\": \"<string>\",\n \"discard_reason_subcode\": \"<string>\",\n \"discard_reason_subcode_label\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getnexor.ai/api/public/leads/{id}/status")
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 \"status_key\": \"<string>\",\n \"reason\": \"<string>\",\n \"workflow_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"discard_reason_code\": \"<string>\",\n \"discard_reason_label\": \"<string>\",\n \"discard_reason_note\": \"<string>\",\n \"discard_reason_subcode\": \"<string>\",\n \"discard_reason_subcode_label\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"changed": true,
"previous_status": "engaged",
"new_status": "qualified",
"workflow_run": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"workflow_id": "123e4567-e89b-12d3-a456-426614174000"
}
}
Authorizations
API key for authentication. Keys are prefixed with nxr_live_.
Path Parameters
Lead ID
Body
application/json
Target workflow status key (e.g. 'qualified', 'lost'). Must exist in the lead's workflow. List valid keys via GET /workflows/{id}.
Optional human-readable reason, stored on the run and in the status history.
Optional. Required only when the lead has multiple active workflow runs.
Response
Status updated (or already in the target status)
Last modified on September 10, 2026
⌘I