List replies to a sent email
Inbound messages on the conversation containing this send (replies,
bounces, auto-replies). Requires inbox sync to be enabled on the
sending mailbox. Also surfaces replied_at / bounced_at stamped on
the job by inbox sync.
curl -X GET "https://api.supasend.io/v1/send/507f1f77bcf86cd799439011/replies?kind=reply&include_bodies=false&fresh=false&limit=50&offset=0" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY"
import requests
import json
url = "https://api.supasend.io/v1/send/507f1f77bcf86cd799439011/replies?kind=reply&include_bodies=false&fresh=false&limit=50&offset=0"
headers = {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://api.supasend.io/v1/send/507f1f77bcf86cd799439011/replies?kind=reply&include_bodies=false&fresh=false&limit=50&offset=0", {
method: "GET",
headers: {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://api.supasend.io/v1/send/507f1f77bcf86cd799439011/replies?kind=reply&include_bodies=false&fresh=false&limit=50&offset=0", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-API-Key", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://api.supasend.io/v1/send/507f1f77bcf86cd799439011/replies?kind=reply&include_bodies=false&fresh=false&limit=50&offset=0')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
request['X-API-Key'] = 'YOUR_API_KEY'
response = http.request(request)
puts response.body
{
"email_job_id": "user@example.com",
"thread_id": "example_string",
"replied_at": "2024-12-25T10:00:00Z",
"bounced_at": "2024-12-25T10:00:00Z",
"mailbox_id": "example_string",
"inbox_sync_enabled": true,
"warning": "example_string",
"inbox_last_error": "example_string",
"replies": [
{
"id": "example_string",
"mailbox_id": "example_string",
"thread_id": "example_string",
"kind": "reply",
"email_job_id": "user@example.com",
"message_id": "example_string",
"in_reply_to": "example_string",
"references": [
"example_string"
],
"from": {
"name": "John Doe",
"email": "user@example.com"
},
"to": [
{
"name": "John Doe",
"email": "user@example.com"
}
],
"cc": [
{
"name": "John Doe",
"email": "user@example.com"
}
],
"reply_to": "example_string",
"subject": "example_string",
"snippet": "example_string",
"body_text": "example_string",
"body_html": "example_string",
"reply_text": "example_string",
"reply_html": "example_string",
"body_truncated": true,
"attachments": [
{
"index": 42,
"filename": "John Doe",
"content_type": "example_string",
"size": 42,
"is_inline": true,
"content_id": "example_string"
}
],
"is_read": true,
"received_at": "2024-12-25T10:00:00Z",
"created_at": "2024-12-25T10:00:00Z"
}
],
"sync": [
{
"mailbox_id": "example_string",
"stored": 42,
"remaining": 42,
"error": "example_string",
"skipped": "example_string"
}
]
}
{
"error": "Unauthorized",
"message": "Authentication required. Please provide a valid API token",
"code": 401
}
{
"error": "Not Found",
"message": "The requested resource was not found",
"code": 404
}
/v1/send/{id}/repliesTarget server for requests. Edit to use your own host.
API key in the format sk_live_<64 hex characters>
sk_live_<64 hex characters>MongoDB ObjectID
Include body_text, body_html and reply_html on list rows. Off by
default — rows carry snippet and reply_text (the new content with
quoted history stripped), which is what a list view needs. Fetch a
single message for the full bodies.
Pull new mail from the provider (Google / Outlook / IMAP) before
answering, so one call does "fetch from the mailbox and show me".
Bounded to ~10 seconds; the response's sync array reports what
happened per mailbox. Without it, results reflect the last
scheduled pull (every 2 minutes by default).
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. API key in the format sk_live_\<64 hex characters\>
Path Parameters
Query Parameters
replyinboundbulkbounceauto_replyInclude body_text, body_html and reply_html on list rows. Off by
default — rows carry snippet and reply_text (the new content with
quoted history stripped), which is what a list view needs. Fetch a
single message for the full bodies.
Pull new mail from the provider (Google / Outlook / IMAP) before
answering, so one call does "fetch from the mailbox and show me".
Bounded to ~10 seconds; the response's sync array reports what
happened per mailbox. Without it, results reflect the last
scheduled pull (every 2 minutes by default).
Responses
false means nothing is being fetched for this mailbox — see warning
Present when reply fetching is off for the sending mailbox
Present when the last provider pull failed (e.g. Outlook needs reconnecting)
Present only when fresh=true was passed — one entry per mailbox considered