List Inbound Emails
curl --request GET \
--url https://api.example.com/emails/inboundimport requests
url = "https://api.example.com/emails/inbound"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/emails/inbound', 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.example.com/emails/inbound",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/emails/inbound"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/emails/inbound")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/emails/inbound")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{}
],
"pagination": {},
"id": "<string>",
"from_email": "<string>",
"from_name": {},
"to_address": "<string>",
"subject": "<string>",
"reply_to": {},
"cc": {},
"bcc": {},
"received_at": "<string>",
"attachments": [
{}
]
}Inbound
List Inbound Emails
Get received emails on your verified domains
List Inbound Emails
curl --request GET \
--url https://api.example.com/emails/inboundimport requests
url = "https://api.example.com/emails/inbound"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/emails/inbound', 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.example.com/emails/inbound",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/emails/inbound"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/emails/inbound")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/emails/inbound")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{}
],
"pagination": {},
"id": "<string>",
"from_email": "<string>",
"from_name": {},
"to_address": "<string>",
"subject": "<string>",
"reply_to": {},
"cc": {},
"bcc": {},
"received_at": "<string>",
"attachments": [
{}
]
}Description
Retrieve a paginated list of inbound emails received on your verified domains.Query parameters
number
Results per page. Default: 20. Maximum: 100.
number
Page number. Default: 1.
string
Search by sender, recipient, or subject.
string
Filter emails received on or after this date.
string
Filter emails received on or before this date.
string
Sort field. Default:
received_at.string
Sort order. Default:
desc.Response
array
Array of inbound email records.
object
Pagination metadata.
Inbound Email
string
Unique inbound email ID.
string
Sender email address.
string | null
Sender name, if available.
string
Recipient address on your domain.
string
Email subject.
string | null
Reply-to address.
string[] | null
CC recipients.
string[] | null
BCC recipients.
string
ISO 8601 timestamp when the email was received.
array
Email attachments.
Examples
curl "https://api.usesendly.app/v1/emails/inbound?limit=25&page=1" \
-H "Authorization: Bearer se_your_api_key"
const response = await client.emails.inbound.list({
limit: 25,
page: 1,
sort_by: 'received_at',
sort_order: 'desc'
})
response.data.forEach(email => {
console.log(`From: ${email.from_name || email.from_email}`)
console.log(`Subject: ${email.subject}`)
})
Need help? Contact support@usesendly.app