curl
curl "https://api.deliveryman.ai/api/v2/send-history/?domain=draftss.com&limit=20&offset=0" \
-H "X-Api-Key: YOUR_API_KEY"import requests
url = "https://api.deliveryman.ai/api/v2/send-history/"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.deliveryman.ai/api/v2/send-history/', 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.deliveryman.ai/api/v2/send-history/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$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.deliveryman.ai/api/v2/send-history/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.deliveryman.ai/api/v2/send-history/")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deliveryman.ai/api/v2/send-history/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"from": "<string>",
"message_id": "<string>",
"to": "<string>",
"reply_to": "<string>",
"thread_message_id": "<string>",
"in_reply_to": "<string>",
"subject": "<string>",
"html_content": "<string>",
"plain_text_content": "<string>",
"opens": [
{
"opened_on": "2023-11-07T05:31:56Z"
}
],
"clicks": [
{
"link": "<string>",
"clicked_on": "2023-11-07T05:31:56Z"
}
],
"bounce": {
"reason": "<string>",
"bounced_on": "2023-11-07T05:31:56Z"
},
"replies": [
{
"from": "<string>",
"message_id": "<string>",
"rfc_message_id": "<string>",
"plain_text_content": "<string>",
"html_content": "<string>",
"received_on": "2023-11-07T05:31:56Z",
"headers": {
"message_id": "<string>",
"from": "<string>",
"to": "<string>",
"cc": "<string>",
"reply_to": "<string>",
"date": "<string>",
"in_reply_to": "<string>",
"references": "<string>"
},
"headers_complete": true,
"subject": "<string>",
"is_auto_reply": true
}
],
"open_tracking": true,
"click_tracking": true,
"status": "scheduled",
"failure_reason": "<string>",
"scheduled_for": "2023-11-07T05:31:56Z",
"sent_on": "2023-11-07T05:31:56Z",
"unsubscribed_on": "2023-11-07T05:31:56Z"
}
],
"total": 1
}{
"message": "<string>"
}Email
List Sent Emails
Returns emails sent through the API, newest first, with their opens, clicks, bounce, unsubscribe and replies.
Filter by domain or by a single email account (not both). Without a filter, emails from every domain in your account are returned. Supports pagination with limit and offset.
GET
/
api
/
v2
/
send-history
/
curl
curl "https://api.deliveryman.ai/api/v2/send-history/?domain=draftss.com&limit=20&offset=0" \
-H "X-Api-Key: YOUR_API_KEY"import requests
url = "https://api.deliveryman.ai/api/v2/send-history/"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.deliveryman.ai/api/v2/send-history/', 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.deliveryman.ai/api/v2/send-history/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$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.deliveryman.ai/api/v2/send-history/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.deliveryman.ai/api/v2/send-history/")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deliveryman.ai/api/v2/send-history/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"from": "<string>",
"message_id": "<string>",
"to": "<string>",
"reply_to": "<string>",
"thread_message_id": "<string>",
"in_reply_to": "<string>",
"subject": "<string>",
"html_content": "<string>",
"plain_text_content": "<string>",
"opens": [
{
"opened_on": "2023-11-07T05:31:56Z"
}
],
"clicks": [
{
"link": "<string>",
"clicked_on": "2023-11-07T05:31:56Z"
}
],
"bounce": {
"reason": "<string>",
"bounced_on": "2023-11-07T05:31:56Z"
},
"replies": [
{
"from": "<string>",
"message_id": "<string>",
"rfc_message_id": "<string>",
"plain_text_content": "<string>",
"html_content": "<string>",
"received_on": "2023-11-07T05:31:56Z",
"headers": {
"message_id": "<string>",
"from": "<string>",
"to": "<string>",
"cc": "<string>",
"reply_to": "<string>",
"date": "<string>",
"in_reply_to": "<string>",
"references": "<string>"
},
"headers_complete": true,
"subject": "<string>",
"is_auto_reply": true
}
],
"open_tracking": true,
"click_tracking": true,
"status": "scheduled",
"failure_reason": "<string>",
"scheduled_for": "2023-11-07T05:31:56Z",
"sent_on": "2023-11-07T05:31:56Z",
"unsubscribed_on": "2023-11-07T05:31:56Z"
}
],
"total": 1
}{
"message": "<string>"
}