Skip to main content
POST
Send a direct email as a follow-up

Authorizations

Authorization
string
header
required

Authenticate every request with a Bearer token. Pass your Reply API key in the Authorization header:

Get your API key from the Reply dashboard: Settings → API Key.

Headers

Idempotency-Key
string

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.

Required string length: 1 - 255

Path Parameters

id
integer
required

Contact ID. The contact of the send named by follows.

Body

application/json
follows
string
required

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.

Example:

"email-48213"

body
string
required

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.

emailAccountId
integer<int64> | null

Email account ID to send from. Absent, the email account the earlier letter went from. Any other email account answers 400 contact.followedSendOtherMailbox.

sendAfter
string<date-time> | null

Do not send before this UTC moment, at most 30 days ahead. A moment already past sends now. With scheduleId, the first opening of the schedule from this moment.

scheduleId
integer | null

Send at this schedule's next opening, as on send-direct-email. A schedule you cannot read answers 404 contact.scheduleNotFound; one with no active day that has a time range answers 409 contact.scheduleHasNoSlot.

useContactTimeZone
boolean | null

Read the schedule in the contact's time zone (true) or in the schedule's own (false); absent, as the schedule is set. Only with scheduleId. true for a contact with no time zone answers 409 contact.contactTimeZoneMissing.

Wrap the body's links to track clicks. Off when absent.

trackOpens
boolean | null

Add the open-tracking pixel. Off when absent.

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.

status
enum<string>
required

Sending status - new while the follow-up waits for sendAfter or its schedule.

Available options:
new,
sent
messageId
string | null
required

Message ID of the sent email; null while it waits for sendAfter or its schedule.

reference
string
required

The follow-up's reference, email-<id>.

state
enum<string>
required

Where a direct send stands.

Available options:
queued,
waitingForSchedule,
sending,
sent,
failed,
cancelled
sendAfter
string<date-time> | null
required

UTC moment after which the follow-up is sent. Null for a follow-up waiting for its schedule; estimatedSendAt is set then.

estimatedSendAt
string<date-time> | null
required

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.

renderedSubject
string | null
required

The subject as sent, Re: and the earlier subject. Null unless the email went out within the request.

renderedBody
string | null
required

The body as sent, with the signature, the tracking and the earlier letter quoted beneath. Null unless the email went out within the request.