Get a single email
curl --request GET \
--url https://tempinbox.dev/api/mail/{uuid} \
--header 'Authorization: Bearer <token>'import requests
url = "https://tempinbox.dev/api/mail/{uuid}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://tempinbox.dev/api/mail/{uuid}', 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://tempinbox.dev/api/mail/{uuid}",
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://tempinbox.dev/api/mail/{uuid}"
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://tempinbox.dev/api/mail/{uuid}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://tempinbox.dev/api/mail/{uuid}")
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": 42,
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"source": "[email protected]",
"address": "[email protected]",
"metadata": "{\"subject\":\"Your verification code is 847291\"}",
"created_at": "2026-05-28T10:00:00Z",
"message_id": "<[email protected]>",
"raw": "From: [email protected]\r\nTo: [email protected]\r\nSubject: Your code\r\n\r\n847291"
}"<string>""<string>"Mails
Get a single email
Returns the full email including the raw RFC 2822 body. Parse raw client-side to extract subject, body HTML, OTP codes, and attachments. metadata is a JSON string — parse it before reading fields.
GET
/
api
/
mail
/
{uuid}
Get a single email
curl --request GET \
--url https://tempinbox.dev/api/mail/{uuid} \
--header 'Authorization: Bearer <token>'import requests
url = "https://tempinbox.dev/api/mail/{uuid}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://tempinbox.dev/api/mail/{uuid}', 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://tempinbox.dev/api/mail/{uuid}",
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://tempinbox.dev/api/mail/{uuid}"
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://tempinbox.dev/api/mail/{uuid}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://tempinbox.dev/api/mail/{uuid}")
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": 42,
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"source": "[email protected]",
"address": "[email protected]",
"metadata": "{\"subject\":\"Your verification code is 847291\"}",
"created_at": "2026-05-28T10:00:00Z",
"message_id": "<[email protected]>",
"raw": "From: [email protected]\r\nTo: [email protected]\r\nSubject: Your code\r\n\r\n847291"
}"<string>""<string>"Authorizations
Address-bound JWT. Returned by POST /api/new_address, or copy it from the browser (DevTools → Application → Cookies → jwt) for automation.
Path Parameters
Email UUID from the list endpoint
Response
Full email
Example:
42
Example:
"550e8400-e29b-41d4-a716-446655440000"
Example:
Example:
JSON string — parse before reading fields like subject
Example:
"{\"subject\":\"Your verification code is 847291\"}"
Example:
"2026-05-28T10:00:00Z"
Example:
Full raw RFC 2822 message. Parse client-side for body, OTP codes, and attachments.
Example:
"From: [email protected]\r\nTo: [email protected]\r\nSubject: Your code\r\n\r\n847291"