GetEmailAPI mirrors erdo_get_email, returning one message with both bodies as
curl --request GET \
--url https://api.erdo.ai/v1/emails/{emailID} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.erdo.ai/v1/emails/{emailID}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.erdo.ai/v1/emails/{emailID}', 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.erdo.ai/v1/emails/{emailID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.erdo.ai/v1/emails/{emailID}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.erdo.ai/v1/emails/{emailID}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erdo.ai/v1/emails/{emailID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"context": {},
"created_at": "2023-11-07T05:31:56Z",
"delivered_at": "2023-11-07T05:31:56Z",
"from": "<string>",
"html_content": "<string>",
"id": "<string>",
"last_delivery_event_at": "2023-11-07T05:31:56Z",
"plain_text": "<string>",
"reply_to": "<string>",
"sent_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"status_reason": "<string>",
"subject": "<string>",
"to": "<string>",
"to_name": "<string>"
}{
"code": "not_found",
"details": {},
"message": "<string>"
}API Reference
GetEmailAPI mirrors erdo_get_email, returning one message with both bodies as
they were sent.
GET
/
v1
/
emails
/
{emailID}
GetEmailAPI mirrors erdo_get_email, returning one message with both bodies as
curl --request GET \
--url https://api.erdo.ai/v1/emails/{emailID} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.erdo.ai/v1/emails/{emailID}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.erdo.ai/v1/emails/{emailID}', 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.erdo.ai/v1/emails/{emailID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.erdo.ai/v1/emails/{emailID}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.erdo.ai/v1/emails/{emailID}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erdo.ai/v1/emails/{emailID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"context": {},
"created_at": "2023-11-07T05:31:56Z",
"delivered_at": "2023-11-07T05:31:56Z",
"from": "<string>",
"html_content": "<string>",
"id": "<string>",
"last_delivery_event_at": "2023-11-07T05:31:56Z",
"plain_text": "<string>",
"reply_to": "<string>",
"sent_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"status_reason": "<string>",
"subject": "<string>",
"to": "<string>",
"to_name": "<string>"
}{
"code": "not_found",
"details": {},
"message": "<string>"
}Authorizations
An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).
Path Parameters
Response
Success response
Show child attributes
Show child attributes
event, even when a later event changes Status.
domain when it has one, otherwise the Erdo default. Recorded at send time, so it stays true after the domain configuration changes or the domain is removed. Empty for anything sent before this was captured.
(delivered, bounced, ...) arrived; nil when none ever has.
domain that sends but doesn't receive points them at a real mailbox).

