curl --request GET \
--url https://api.mailbeast.ai/v1/emails/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mailbeast.ai/v1/emails/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mailbeast.ai/v1/emails/{id}', 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.mailbeast.ai/v1/emails/{id}",
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.mailbeast.ai/v1/emails/{id}"
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.mailbeast.ai/v1/emails/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mailbeast.ai/v1/emails/{id}")
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{
"id": "8c5a1e07-2b93-4d6f-a0e8-7c4b9d1f2a36",
"threadId": "13a265fd-f0f2-b1d1-d6fc-154e483183e7",
"messageId": "<[email protected]>",
"mailbox": {
"id": "3f1c2b7e-9a4d-4c8e-b1f6-5d2a7e0c3b94",
"email": "[email protected]"
},
"from": {
"email": "[email protected]",
"name": "John Carter"
},
"to": [
"[email protected]"
],
"cc": [],
"bcc": [],
"subject": "Re: Pricing question",
"snippet": "Thanks for the details, this works for us.",
"isUnread": true,
"type": "received",
"campaignId": "c1f3b0a2-6d4e-4f8b-9a1c-2e5d7f0a3b6c",
"leadId": "9d4e2f10-5b6a-4c73-8e19-0f2a7c4d8b31",
"hasAttachments": false,
"receivedAt": "2026-07-13T09:24:11.000Z",
"sentAt": "2026-07-13T09:24:09.000Z",
"body": {
"html": "<p>Thanks for the details, this works for us.</p>",
"text": "Thanks for the details, this works for us."
}
}{
"error": {
"type": "authentication_error",
"code": "unauthenticated",
"message": "Missing or invalid API key.",
"status": 401,
"requestId": "e4f1c0b2-6a3d-4b8e-9f21-0a1b2c3d4e5f"
}
}{
"error": {
"type": "authorization_error",
"code": "permission_denied",
"message": "This API key is missing the required scope.",
"status": 403,
"requestId": "e4f1c0b2-6a3d-4b8e-9f21-0a1b2c3d4e5f"
}
}{
"error": {
"type": "invalid_request_error",
"code": "not_found",
"message": "Resource not found.",
"status": 404,
"requestId": "e4f1c0b2-6a3d-4b8e-9f21-0a1b2c3d4e5f"
}
}{
"error": {
"type": "invalid_request_error",
"code": "body_too_large",
"message": "The message is too large to return its body inline.",
"status": 413,
"requestId": "e4f1c0b2-6a3d-4b8e-9f21-0a1b2c3d4e5f"
}
}{
"error": {
"type": "rate_limit_error",
"code": "rate_limited",
"message": "Too many requests. Retry after the interval in the Retry-After header.",
"status": 429,
"requestId": "e4f1c0b2-6a3d-4b8e-9f21-0a1b2c3d4e5f",
"retryAfter": 30
}
}{
"error": {
"type": "api_error",
"code": "upstream_unavailable",
"message": "A dependency is temporarily unavailable.",
"status": 503,
"requestId": "e4f1c0b2-6a3d-4b8e-9f21-0a1b2c3d4e5f"
}
}Get an email
Fetch one email with its body – the only endpoint that returns the body. A null body means none was stored; if the stored body can’t be read right now the call returns 503 rather than a false empty.
Requires one of the following scopes: emails:read, emails:all, all:read, all:all.
curl --request GET \
--url https://api.mailbeast.ai/v1/emails/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mailbeast.ai/v1/emails/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mailbeast.ai/v1/emails/{id}', 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.mailbeast.ai/v1/emails/{id}",
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.mailbeast.ai/v1/emails/{id}"
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.mailbeast.ai/v1/emails/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mailbeast.ai/v1/emails/{id}")
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{
"id": "8c5a1e07-2b93-4d6f-a0e8-7c4b9d1f2a36",
"threadId": "13a265fd-f0f2-b1d1-d6fc-154e483183e7",
"messageId": "<[email protected]>",
"mailbox": {
"id": "3f1c2b7e-9a4d-4c8e-b1f6-5d2a7e0c3b94",
"email": "[email protected]"
},
"from": {
"email": "[email protected]",
"name": "John Carter"
},
"to": [
"[email protected]"
],
"cc": [],
"bcc": [],
"subject": "Re: Pricing question",
"snippet": "Thanks for the details, this works for us.",
"isUnread": true,
"type": "received",
"campaignId": "c1f3b0a2-6d4e-4f8b-9a1c-2e5d7f0a3b6c",
"leadId": "9d4e2f10-5b6a-4c73-8e19-0f2a7c4d8b31",
"hasAttachments": false,
"receivedAt": "2026-07-13T09:24:11.000Z",
"sentAt": "2026-07-13T09:24:09.000Z",
"body": {
"html": "<p>Thanks for the details, this works for us.</p>",
"text": "Thanks for the details, this works for us."
}
}{
"error": {
"type": "authentication_error",
"code": "unauthenticated",
"message": "Missing or invalid API key.",
"status": 401,
"requestId": "e4f1c0b2-6a3d-4b8e-9f21-0a1b2c3d4e5f"
}
}{
"error": {
"type": "authorization_error",
"code": "permission_denied",
"message": "This API key is missing the required scope.",
"status": 403,
"requestId": "e4f1c0b2-6a3d-4b8e-9f21-0a1b2c3d4e5f"
}
}{
"error": {
"type": "invalid_request_error",
"code": "not_found",
"message": "Resource not found.",
"status": 404,
"requestId": "e4f1c0b2-6a3d-4b8e-9f21-0a1b2c3d4e5f"
}
}{
"error": {
"type": "invalid_request_error",
"code": "body_too_large",
"message": "The message is too large to return its body inline.",
"status": 413,
"requestId": "e4f1c0b2-6a3d-4b8e-9f21-0a1b2c3d4e5f"
}
}{
"error": {
"type": "rate_limit_error",
"code": "rate_limited",
"message": "Too many requests. Retry after the interval in the Retry-After header.",
"status": 429,
"requestId": "e4f1c0b2-6a3d-4b8e-9f21-0a1b2c3d4e5f",
"retryAfter": 30
}
}{
"error": {
"type": "api_error",
"code": "upstream_unavailable",
"message": "A dependency is temporarily unavailable.",
"status": 503,
"requestId": "e4f1c0b2-6a3d-4b8e-9f21-0a1b2c3d4e5f"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
"8c5a1e07-2b93-4d6f-a0e8-7c4b9d1f2a36"
Conversation this email belongs to. null when the email is not part of a conversation. An opaque identifier: pass it back as-is, do not parse or construct it.
"13a265fd-f0f2-b1d1-d6fc-154e483183e7"
RFC 5322 Message-ID as set by the sending server.
The mailbox of yours that sent or received this email.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
[]
[]
"Re: Pricing question"
Short preview of the message. Always present in list results.
"Thanks for the details, this works for us."
Read state. null when the email is not part of a conversation and therefore has no read state, which is not the same as read.
true
sent, received "received"
"c1f3b0a2-6d4e-4f8b-9a1c-2e5d7f0a3b6c"
"9d4e2f10-5b6a-4c73-8e19-0f2a7c4d8b31"
false
"2026-07-13T09:24:11.000Z"
"2026-07-13T09:24:09.000Z"
The message body. Returned only here, never in list results. A null field means that part was never stored for this message. It does NOT mean we failed to read it: if the stored body is unreadable right now, the call returns 503 instead, so a 200 always carries the real content.
Show child attributes
Show child attributes