curl --request POST \
--url https://api.reply.io/v3/contacts/{id}/send-direct-email-follow-up \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"follows": "email-48213",
"body": "<string>",
"emailAccountId": 123,
"sendAfter": "2023-11-07T05:31:56Z",
"scheduleId": 123,
"useContactTimeZone": true,
"trackLinks": true,
"trackOpens": true
}
'import requests
url = "https://api.reply.io/v3/contacts/{id}/send-direct-email-follow-up"
payload = {
"follows": "email-48213",
"body": "<string>",
"emailAccountId": 123,
"sendAfter": "2023-11-07T05:31:56Z",
"scheduleId": 123,
"useContactTimeZone": True,
"trackLinks": True,
"trackOpens": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
follows: 'email-48213',
body: JSON.stringify('<string>'),
emailAccountId: 123,
sendAfter: '2023-11-07T05:31:56Z',
scheduleId: 123,
useContactTimeZone: true,
trackLinks: true,
trackOpens: true
})
};
fetch('https://api.reply.io/v3/contacts/{id}/send-direct-email-follow-up', 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.reply.io/v3/contacts/{id}/send-direct-email-follow-up",
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([
'follows' => 'email-48213',
'body' => '<string>',
'emailAccountId' => 123,
'sendAfter' => '2023-11-07T05:31:56Z',
'scheduleId' => 123,
'useContactTimeZone' => true,
'trackLinks' => true,
'trackOpens' => true
]),
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.reply.io/v3/contacts/{id}/send-direct-email-follow-up"
payload := strings.NewReader("{\n \"follows\": \"email-48213\",\n \"body\": \"<string>\",\n \"emailAccountId\": 123,\n \"sendAfter\": \"2023-11-07T05:31:56Z\",\n \"scheduleId\": 123,\n \"useContactTimeZone\": true,\n \"trackLinks\": true,\n \"trackOpens\": true\n}")
req, _ := http.NewRequest("POST", 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))
}HttpResponse<String> response = Unirest.post("https://api.reply.io/v3/contacts/{id}/send-direct-email-follow-up")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"follows\": \"email-48213\",\n \"body\": \"<string>\",\n \"emailAccountId\": 123,\n \"sendAfter\": \"2023-11-07T05:31:56Z\",\n \"scheduleId\": 123,\n \"useContactTimeZone\": true,\n \"trackLinks\": true,\n \"trackOpens\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reply.io/v3/contacts/{id}/send-direct-email-follow-up")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"follows\": \"email-48213\",\n \"body\": \"<string>\",\n \"emailAccountId\": 123,\n \"sendAfter\": \"2023-11-07T05:31:56Z\",\n \"scheduleId\": 123,\n \"useContactTimeZone\": true,\n \"trackLinks\": true,\n \"trackOpens\": true\n}"
response = http.request(request)
puts response.read_body{
"status": "new",
"messageId": null,
"reference": "email-48230",
"state": "queued",
"sendAfter": "2026-11-24T09:00:00Z",
"estimatedSendAt": null,
"renderedSubject": null,
"renderedBody": null
}Send a direct email as a follow-up
Coming soon. This endpoint will be available by early December 2026.
contacts:operate scope (or a broader one that includes it).
Send a one-off email to a contact as a reply in the thread of an earlier direct email send, from a connected account. The request is that of POST /v3/contacts/{id}/send-direct-email without subject, plus follows: the reference (email-<id>) the earlier send’s route answered with. The reply is still tracked on the contact.
The follow-up goes under the thread’s subject, Re: and the earlier subject as it went; a subject in the request is refused. Its In-Reply-To is the earlier letter’s Message-ID, and the earlier letter is quoted beneath the text. It goes from the email account the earlier letter went from: that account is used when emailAccountId is absent, and naming another is refused.
A follow-up always answers a reference, whether or not the request carried sendAfter, scheduleId or an Idempotency-Key; read or cancel it under /v3/direct-sends/{reference}. With none of sendAfter and scheduleId it is due at once, which is refused while the earlier send has not gone out yet. To follow an earlier send that waits for its moment, give sendAfter or scheduleId. When both sends have an exact moment, sendAfter must be later than the earlier send’s; an earlier send made with scheduleId has an exact moment once it is queued for its schedule’s opening. When either send still waits for a schedule, the follow-up is checked when it comes due.
The follow-up is checked again when it comes due, against the send it follows:
- The earlier send has gone out: the follow-up goes in its thread.
- The earlier send was cancelled or failed for good: the follow-up fails with
failureCodecontact.followedSendNeverSent. - The earlier send still waits for a later moment or a schedule: the follow-up fails with
contact.followedSendNotSent. The exception is an earlier send moved to the next UTC day that same day because its email account reached its daily limit. The follow-up goes from that account too, so it moves as an email over the daily limit does; if it cannot move, it readsfailedwithcontact.dailyLimitReached. - The earlier send is due but has not gone out yet, or is being sent: the follow-up waits for it, without spending its own attempts, for up to 45 minutes after its own moment; past that it is tried at most three more times, and if the earlier send has still not gone out, the follow-up fails with
contact.followedSendNotSent.
The earlier send is never held back by its follow-up, and the API does not hold a follow-up taken for later when the contact replies or the earlier letter bounces: cancel it with POST /v3/direct-sends/{reference}/cancel if it should not go. On an Office 365 email account that sends through Microsoft’s API, a follow-up whose earlier letter cannot be found in that mailbox fails with contact.followUpNotPlaced; it is never sent as a new letter. If the mailbox cannot be searched at that moment, nothing is sent and the follow-up fails as any send does: at once with 400 contact.emailSendingFailed, or, for one taken for later, it is tried again.
The Idempotency-Key header and its 409 answers, the email account’s daily sending limit and the Retry-After answers are those of send-direct-email.
curl --request POST \
--url https://api.reply.io/v3/contacts/{id}/send-direct-email-follow-up \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"follows": "email-48213",
"body": "<string>",
"emailAccountId": 123,
"sendAfter": "2023-11-07T05:31:56Z",
"scheduleId": 123,
"useContactTimeZone": true,
"trackLinks": true,
"trackOpens": true
}
'import requests
url = "https://api.reply.io/v3/contacts/{id}/send-direct-email-follow-up"
payload = {
"follows": "email-48213",
"body": "<string>",
"emailAccountId": 123,
"sendAfter": "2023-11-07T05:31:56Z",
"scheduleId": 123,
"useContactTimeZone": True,
"trackLinks": True,
"trackOpens": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
follows: 'email-48213',
body: JSON.stringify('<string>'),
emailAccountId: 123,
sendAfter: '2023-11-07T05:31:56Z',
scheduleId: 123,
useContactTimeZone: true,
trackLinks: true,
trackOpens: true
})
};
fetch('https://api.reply.io/v3/contacts/{id}/send-direct-email-follow-up', 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.reply.io/v3/contacts/{id}/send-direct-email-follow-up",
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([
'follows' => 'email-48213',
'body' => '<string>',
'emailAccountId' => 123,
'sendAfter' => '2023-11-07T05:31:56Z',
'scheduleId' => 123,
'useContactTimeZone' => true,
'trackLinks' => true,
'trackOpens' => true
]),
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.reply.io/v3/contacts/{id}/send-direct-email-follow-up"
payload := strings.NewReader("{\n \"follows\": \"email-48213\",\n \"body\": \"<string>\",\n \"emailAccountId\": 123,\n \"sendAfter\": \"2023-11-07T05:31:56Z\",\n \"scheduleId\": 123,\n \"useContactTimeZone\": true,\n \"trackLinks\": true,\n \"trackOpens\": true\n}")
req, _ := http.NewRequest("POST", 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))
}HttpResponse<String> response = Unirest.post("https://api.reply.io/v3/contacts/{id}/send-direct-email-follow-up")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"follows\": \"email-48213\",\n \"body\": \"<string>\",\n \"emailAccountId\": 123,\n \"sendAfter\": \"2023-11-07T05:31:56Z\",\n \"scheduleId\": 123,\n \"useContactTimeZone\": true,\n \"trackLinks\": true,\n \"trackOpens\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reply.io/v3/contacts/{id}/send-direct-email-follow-up")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"follows\": \"email-48213\",\n \"body\": \"<string>\",\n \"emailAccountId\": 123,\n \"sendAfter\": \"2023-11-07T05:31:56Z\",\n \"scheduleId\": 123,\n \"useContactTimeZone\": true,\n \"trackLinks\": true,\n \"trackOpens\": true\n}"
response = http.request(request)
puts response.read_body{
"status": "new",
"messageId": null,
"reference": "email-48230",
"state": "queued",
"sendAfter": "2026-11-24T09:00:00Z",
"estimatedSendAt": null,
"renderedSubject": null,
"renderedBody": null
}Authorizations
Headers
Makes the send safe to retry, as on send-direct-email. A repeat of a completed request with the same key and the same request answers the first answer again, with the same reference, and sends nothing. Any repeat while the first is still running answers 409 contact.idempotencyKeyInUse; once it has completed, the same key with a different request answers 409 contact.idempotencyKeyReused, naming the send the key was first used for. A request that failed, or ended with an unexpected error (a 500), releases its key, so a repeat is a new attempt; after an unexpected error the first attempt may have sent, so check the contact's activity before repeating. Keys are kept for 24 hours, per user; 1 to 255 printable ASCII characters, and a malformed key answers 400 with the pointer /Idempotency-Key.
1 - 255Body
The reference of the direct email send this one follows, email-<id>, as the send route of that email answered. Only a send that answered a reference can be followed; an email sent at once without an Idempotency-Key, sendAfter or scheduleId answers none. Any other form answers 400 with the pointer /follows. A send that does not exist, or belongs to another team, answers 404 contact.followedSendNotFound; one made by a teammate you may not act for answers 403 contact.followedSendNotOwned; one to another contact answers 400 contact.followedSendOtherContact.
"email-48213"
Email body (HTML), a template rendered for the contact with the same variables as a sequence step, as on send-direct-email. A body that uses variables with no value for the contact answers 400 contact.missingVariables, naming them in missingVariables; any other template that cannot be rendered answers 400 contact.renderingFailed. A follow-up for later is rendered again, with the contact's values of that moment, when it goes out.
Response
Follow-up accepted. Every field is always present, null when it does not apply. reference and state are always set: use reference with GET /v3/direct-sends/{reference} and its cancel. Read messageId, renderedSubject and renderedBody with GET /v3/direct-sends/{reference} once the follow-up has gone out.
Where a direct send stands.
| Value | Meaning |
|---|---|
queued | Accepted and waiting for its moment; it can still be cancelled. |
waitingForSchedule | Accepted and waiting for its schedule to open, more than ten minutes after acceptance; estimatedSendAt says when. A schedule open sooner queues the send at once (queued). It can still be cancelled. |
sending | Being sent right now - for a LinkedIn send, handed to the account's queue and waiting or running there. It can no longer be cancelled, except a LinkedIn send for later that waits in the account's queue and has not been started. |
sent | Gone out. |
failed | Did not go out, or its outcome is unknown; failureCode and failureReason say why. |
cancelled | Cancelled while queued; it will not go out. |
queued, waitingForSchedule, sending, sent, failed, cancelled When the schedule next opens, as read at acceptance, for a follow-up left waiting for it; it goes out within about 10 minutes of it. Null for a follow-up not waiting for a schedule. A schedule changed meanwhile moves it; GET /v3/direct-sends/{reference} reads it again.