curl --request POST \
--url https://api.instantly.ai/api/v2/ai-agents/inbox-manager/{id}/replies/{reply_id}/send \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.instantly.ai/api/v2/ai-agents/inbox-manager/{id}/replies/{reply_id}/send"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.instantly.ai/api/v2/ai-agents/inbox-manager/{id}/replies/{reply_id}/send', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.instantly.ai/api/v2/ai-agents/inbox-manager/{id}/replies/{reply_id}/send")
.header("Authorization", "Bearer <token>")
.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}/send",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.instantly.ai/api/v2/ai-agents/inbox-manager/{id}/replies/{reply_id}/send"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "01a218ad-c6b4-7fe6-b8a1-0e603380dcfe",
"timestamp_created": "2026-11-26T16:26:11.508Z",
"timestamp_email": "2026-11-26T16:26:11.508Z",
"message_id": "<example123@mail.gmail.com>",
"subject": "Re: Your inquiry",
"to_address_email_list": "recipient@example.com",
"body": {
"text": "This is a test email",
"html": "This is a test email.<br/><br/>Second line."
},
"organization_id": "01a218ad-c6b4-7fe6-b8a1-0e618274cd3d",
"eaccount": "eaccount-123",
"from_address_email": "sender@example.com",
"cc_address_email_list": "cc@example.com",
"bcc_address_email_list": "bcc@example.com",
"reply_to": "replyto@example.com",
"campaign_id": "01a218ad-c6b4-7fe6-b8a1-0e629565359c",
"subsequence_id": "01a218ad-c6b4-7fe6-b8a1-0e63f2ab6286",
"list_id": "01a218ad-c6b4-7fe6-b8a1-0e64bc231783",
"lead": "jondoe@example.com",
"lead_id": "01a218ad-c6b4-7fe6-b8a1-0e65f5139808",
"ue_type": 3,
"step": "step-123",
"is_unread": 1,
"is_auto_reply": 0,
"reminder_ts": "2026-11-26T16:26:11.508Z",
"ai_interest_value": 0.75,
"ai_assisted": 1,
"is_focused": 1,
"i_status": 0,
"thread_id": "01a218ad-c6b4-7fe6-b8a1-0e661aeb4b36",
"content_preview": "This is a preview of the email content.",
"body_fallback_reason": "too_large",
"attachment_json": {
"files": [
{
"filename": "attachment",
"size": 1927,
"type": "text/css",
"url": "https://cdn.instantly.ai/example-attachment/",
"error": null
}
]
},
"from_address_json": "<array>",
"to_address_json": "<array>",
"cc_address_json": "<array>",
"ai_agent_id": "01a218ad-c6b4-7fe6-b8a1-0e672006e03b"
}{
"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": 403,
"error": "Forbidden",
"message": "Forbidden"
}{
"statusCode": 404,
"error": "Not Found",
"message": "Resource not found"
}{
"statusCode": 409,
"error": "Conflict",
"code": "reply_already_sent",
"message": "This reply was already sent, or another request is sending it."
}{
"statusCode": 429,
"error": "Too Many Requests",
"message": "Rate limit exceeded"
}{
"statusCode": 500,
"error": "Internal Server Error",
"message": "The send outcome is unknown: the email may already have gone out. The draft will not be sent again; check the thread before sending anything else."
}{
"statusCode": 503,
"error": "Service Unavailable",
"message": "A temporary error stopped this draft before it went out, so nothing was sent. Try again."
}Send an AI Inbox Manager reply draft
Send a reply draft that an AI Inbox Manager holds for review (action_pending is true). It goes out as the agent’s own reply would: in the lead’s thread, from the email account the lead wrote to, to the sender of the lead’s email with everyone else on that email in copy, and with the files the agent attached to the draft. Once sent, the reply leaves the action_pending=true list and the Unibox, and the agent’s follow-ups continue as after a Unibox send.
Sending answers 409 with a code when the reply was already sent or scheduled, no longer waits for review, has no draft, needs a person to check it first, was overtaken by a newer email from the lead, or answers an email that already got a reply. If a temporary error stops the draft before it goes out, the request answers 503: nothing was sent, and you can send it again. If the send outcome is unknown, the email may already have gone out: the request answers 500 and the draft is never sent again, so check the thread before sending anything else. Sending requires a plan that allows sending from the Unibox.
Requires all of the following scope groups:
- One of
ai_sdr_replies:update,ai_sdr_replies:all,all:update,all:all - One of
emails:create,emails:all,all:create,all:all
curl --request POST \
--url https://api.instantly.ai/api/v2/ai-agents/inbox-manager/{id}/replies/{reply_id}/send \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.instantly.ai/api/v2/ai-agents/inbox-manager/{id}/replies/{reply_id}/send"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.instantly.ai/api/v2/ai-agents/inbox-manager/{id}/replies/{reply_id}/send', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.instantly.ai/api/v2/ai-agents/inbox-manager/{id}/replies/{reply_id}/send")
.header("Authorization", "Bearer <token>")
.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}/send",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.instantly.ai/api/v2/ai-agents/inbox-manager/{id}/replies/{reply_id}/send"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "01a218ad-c6b4-7fe6-b8a1-0e603380dcfe",
"timestamp_created": "2026-11-26T16:26:11.508Z",
"timestamp_email": "2026-11-26T16:26:11.508Z",
"message_id": "<example123@mail.gmail.com>",
"subject": "Re: Your inquiry",
"to_address_email_list": "recipient@example.com",
"body": {
"text": "This is a test email",
"html": "This is a test email.<br/><br/>Second line."
},
"organization_id": "01a218ad-c6b4-7fe6-b8a1-0e618274cd3d",
"eaccount": "eaccount-123",
"from_address_email": "sender@example.com",
"cc_address_email_list": "cc@example.com",
"bcc_address_email_list": "bcc@example.com",
"reply_to": "replyto@example.com",
"campaign_id": "01a218ad-c6b4-7fe6-b8a1-0e629565359c",
"subsequence_id": "01a218ad-c6b4-7fe6-b8a1-0e63f2ab6286",
"list_id": "01a218ad-c6b4-7fe6-b8a1-0e64bc231783",
"lead": "jondoe@example.com",
"lead_id": "01a218ad-c6b4-7fe6-b8a1-0e65f5139808",
"ue_type": 3,
"step": "step-123",
"is_unread": 1,
"is_auto_reply": 0,
"reminder_ts": "2026-11-26T16:26:11.508Z",
"ai_interest_value": 0.75,
"ai_assisted": 1,
"is_focused": 1,
"i_status": 0,
"thread_id": "01a218ad-c6b4-7fe6-b8a1-0e661aeb4b36",
"content_preview": "This is a preview of the email content.",
"body_fallback_reason": "too_large",
"attachment_json": {
"files": [
{
"filename": "attachment",
"size": 1927,
"type": "text/css",
"url": "https://cdn.instantly.ai/example-attachment/",
"error": null
}
]
},
"from_address_json": "<array>",
"to_address_json": "<array>",
"cc_address_json": "<array>",
"ai_agent_id": "01a218ad-c6b4-7fe6-b8a1-0e672006e03b"
}{
"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": 403,
"error": "Forbidden",
"message": "Forbidden"
}{
"statusCode": 404,
"error": "Not Found",
"message": "Resource not found"
}{
"statusCode": 409,
"error": "Conflict",
"code": "reply_already_sent",
"message": "This reply was already sent, or another request is sending it."
}{
"statusCode": 429,
"error": "Too Many Requests",
"message": "Rate limit exceeded"
}{
"statusCode": 500,
"error": "Internal Server Error",
"message": "The send outcome is unknown: the email may already have gone out. The draft will not be sent again; check the thread before sending anything else."
}{
"statusCode": 503,
"error": "Service Unavailable",
"message": "A temporary error stopped this draft before it went out, so nothing was sent. Try again."
}Authorizations
Path Parameters
Response
The sent email
A campaign email, a reply, a manually sent email, or any other email that's visible in the Unibox
Timestamp when the email was added to our database. This is not the timestamp of the email itself, since the email could have been sent at a different time. Please check the timestamp_email field for the timestamp of the email.
"2026-11-26T16:26:11.508Z"
Set only when body is not the full email body. too_large: the body was too large to include in a list response. unavailable: the body could not be read for this response. In both cases body holds at most a plain-text excerpt (text, no html) and may be empty. Get the full body from GET /api/v2/emails/{id}.
too_large, unavailable "too_large"