Getting Replies for a Lead

Send a GET request to YOUR_URL/api/leads/{lead_id}/replies where {lead_id} is the lead ID or email to fetch replies from. This request requires the following parameter:
lead_id
integer
required
The ID or email of the lead
And you can filter the replies using these optional parameters:

Responding to Messages

Send a POST request to YOUR_URL/api/replies/{reply_id}/reply where {reply_id} is the ID of the parent reply to respond to. This request has the following parameters:
reply_id
integer
required
The ID of the parent reply.
message
string
required
The contents of the reply
sender_email_id
integer
required
The ID of the sender email
to_emails
array
required
Array of people to send this email to.The name field in the object can be nulled (left empty).Example: [ { "name": "John Doe", "email_address": "john@example.com" } ]
inject_previous_email_body
boolean|null
Whether to inject the body of the previous email into this email. If nothing sent, false is assumed
content_type
string
Type of the email (html or text)
cc_emails
array
An array of people to send a copy of this email to (Carbon Copy).The name field in the object can be nulled (left empty).Example: [ { "name": "John Doe", "email_address": "john@example.com" } ]
bcc_emails
array
An array of people to send a blind copy of this email to (Blind Carbon Copy).The name field in the object can be nulled (left empty).Example: [ { "name": "John Doe", "email_address": "john@example.com" } ]

Attaching Leads to Untracked Replies

Untracked replies in the master inbox will show up with a button to Attach Contact. This action can be done on a bigger scale using the API.

Getting all sent scheduled emails for a lead

Send a GET request to the endpoint /api/leads/{lead_id}/sent-emails where {lead_id} could be the ID or the email of the lead.

Attaching scheduled emails to a reply

Once you have the scheduled email IDs you can attach them to replies with their ID. Send a POST request to the endpoint api/replies/{reply_id}/attach-email-to-reply This request takes 1 JSON body parameter:
scheduled_email_id
integer
required
The ID of the scheduled email you to attach to the reply.