Update an AI Inbox Manager reply
curl --request PATCH \
--url https://api.instantly.ai/api/v2/ai-agents/inbox-manager/{id}/replies/{reply_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"feedback_positive": true,
"feedback_text": "Great response!",
"action_pending": false
}
'import requests
url = "https://api.instantly.ai/api/v2/ai-agents/inbox-manager/{id}/replies/{reply_id}"
payload = {
"feedback_positive": True,
"feedback_text": "Great response!",
"action_pending": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
feedback_positive: true,
feedback_text: 'Great response!',
action_pending: false
})
};
fetch('https://api.instantly.ai/api/v2/ai-agents/inbox-manager/{id}/replies/{reply_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.patch("https://api.instantly.ai/api/v2/ai-agents/inbox-manager/{id}/replies/{reply_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"feedback_positive\": true,\n \"feedback_text\": \"Great response!\",\n \"action_pending\": false\n}")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.instantly.ai/api/v2/ai-agents/inbox-manager/{id}/replies/{reply_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'feedback_positive' => true,
'feedback_text' => 'Great response!',
'action_pending' => false
]),
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.instantly.ai/api/v2/ai-agents/inbox-manager/{id}/replies/{reply_id}"
payload := strings.NewReader("{\n \"feedback_positive\": true,\n \"feedback_text\": \"Great response!\",\n \"action_pending\": false\n}")
req, _ := http.NewRequest("PATCH", 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))
}{
"id": "01a1f0d3-24e2-79a6-b488-95a38f8fac5b",
"organization_id": "01a1f0d3-24e2-79a6-b488-95a42bb28ee0",
"timestamp_created": "2026-11-18T22:42:11.810Z",
"timestamp_updated": "2026-11-18T22:42:11.810Z",
"agent_id": "01a1f0d3-24e2-79a6-b488-95a57b70cc29",
"thread_id": "3c-zuFiJhv7cqJE5IoKkg6Pzh9",
"lead": "john@example.com",
"feedback_positive": true,
"feedback_text": "Great response!",
"html": "<p>Hello, John!</p>",
"requires_hitl": true,
"requires_hitl_reason": "Low confidence score detected",
"generation_lag_seconds": 2.5,
"is_automatic_email": false,
"in_reply_to": "reply_12345",
"usage_metadata": {},
"calendly_tool_used": false,
"confidence_score": 92,
"information_requested": "Please confirm your availability.",
"estimated_time_saved_seconds": 30,
"action_pending": true,
"sending_status": 1,
"is_followup": true,
"error_code": "SEND_FAILED"
}{
"statusCode": 400,
"error": "Bad Request",
"message": "body must have required property 'name'",
"code": "FST_ERR_VALIDATION"
}{
"statusCode": 401,
"error": "Unauthorized",
"message": "Missing Authorization header"
}{
"statusCode": 402,
"error": "Payment Required",
"message": "Workspace does not have an active paid plan"
}{
"statusCode": 404,
"error": "Not Found",
"message": "Resource not found"
}{
"statusCode": 429,
"error": "Too Many Requests",
"message": "Rate limit exceeded"
}AI Inbox Manager
Update an AI Inbox Manager reply
Update a reply generated by an AI Inbox Manager: leave feedback on the reply or mark its pending action as handled.
Requires one of the following scopes: ai_sdr_replies:update, ai_agents:all, all:update, all:all
PATCH
/
api
/
v2
/
ai-agents
/
inbox-manager
/
{id}
/
replies
/
{reply_id}
Update an AI Inbox Manager reply
curl --request PATCH \
--url https://api.instantly.ai/api/v2/ai-agents/inbox-manager/{id}/replies/{reply_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"feedback_positive": true,
"feedback_text": "Great response!",
"action_pending": false
}
'import requests
url = "https://api.instantly.ai/api/v2/ai-agents/inbox-manager/{id}/replies/{reply_id}"
payload = {
"feedback_positive": True,
"feedback_text": "Great response!",
"action_pending": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
feedback_positive: true,
feedback_text: 'Great response!',
action_pending: false
})
};
fetch('https://api.instantly.ai/api/v2/ai-agents/inbox-manager/{id}/replies/{reply_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.patch("https://api.instantly.ai/api/v2/ai-agents/inbox-manager/{id}/replies/{reply_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"feedback_positive\": true,\n \"feedback_text\": \"Great response!\",\n \"action_pending\": false\n}")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.instantly.ai/api/v2/ai-agents/inbox-manager/{id}/replies/{reply_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'feedback_positive' => true,
'feedback_text' => 'Great response!',
'action_pending' => false
]),
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.instantly.ai/api/v2/ai-agents/inbox-manager/{id}/replies/{reply_id}"
payload := strings.NewReader("{\n \"feedback_positive\": true,\n \"feedback_text\": \"Great response!\",\n \"action_pending\": false\n}")
req, _ := http.NewRequest("PATCH", 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))
}{
"id": "01a1f0d3-24e2-79a6-b488-95a38f8fac5b",
"organization_id": "01a1f0d3-24e2-79a6-b488-95a42bb28ee0",
"timestamp_created": "2026-11-18T22:42:11.810Z",
"timestamp_updated": "2026-11-18T22:42:11.810Z",
"agent_id": "01a1f0d3-24e2-79a6-b488-95a57b70cc29",
"thread_id": "3c-zuFiJhv7cqJE5IoKkg6Pzh9",
"lead": "john@example.com",
"feedback_positive": true,
"feedback_text": "Great response!",
"html": "<p>Hello, John!</p>",
"requires_hitl": true,
"requires_hitl_reason": "Low confidence score detected",
"generation_lag_seconds": 2.5,
"is_automatic_email": false,
"in_reply_to": "reply_12345",
"usage_metadata": {},
"calendly_tool_used": false,
"confidence_score": 92,
"information_requested": "Please confirm your availability.",
"estimated_time_saved_seconds": 30,
"action_pending": true,
"sending_status": 1,
"is_followup": true,
"error_code": "SEND_FAILED"
}{
"statusCode": 400,
"error": "Bad Request",
"message": "body must have required property 'name'",
"code": "FST_ERR_VALIDATION"
}{
"statusCode": 401,
"error": "Unauthorized",
"message": "Missing Authorization header"
}{
"statusCode": 402,
"error": "Payment Required",
"message": "Workspace does not have an active paid plan"
}{
"statusCode": 404,
"error": "Not Found",
"message": "Resource not found"
}{
"statusCode": 429,
"error": "Too Many Requests",
"message": "Rate limit exceeded"
}Authorizations
Path Parameters
Body
application/json
Response
The updated reply
A single AI-generated reply in the SDR inbox manager
Error code for the email sending process (nullable)
Available options:
NO_SENDING_ACCOUNT, ACCOUNT_INACTIVE, ACCOUNT_FETCH_FAILED, SEND_FAILED, HITL_NOT_SUPPORTED, RATE_LIMITED, AGENT_NOT_FOUND, LEAD_BLOCKED, FREE_TRIAL_LIMIT_REACHED, OUT_OF_CREDITS, MONTHLY_BUDGET_EXCEEDED Example:
"SEND_FAILED"