curl --request GET \
--url https://api.thepurplebox.io/v1/emails/{email_id} \
--header 'Authorization: Bearer <token>'{
"status": 200,
"message": "email retrieved successfully.",
"data": {
"id": "xxxxx",
"message_id": "[email protected]",
"from_address": "[email protected]",
"to_addresses": [
"[email protected]"
],
"subject": "Test from http client",
"size": 280,
"inline": 0,
"attachments": 0,
"api_key_id": 2,
"snippet": "hello world",
"created_at": "2025-11-18T18:42:21.819994Z",
"team_id": "xxxxx",
"metadata": {
"from": "[email protected]",
"to": [
"[email protected]"
],
"cc": null,
"bcc": null,
"reply_to": null,
"text": "hello world",
"html": ""
},
"opened_at": null,
"delivered_at": "2025-11-18T18:42:23.494Z",
"click_count": 0,
"status": "delivered",
"credits_used": 1,
"logs": [
{
"email_id": "xxxxx",
"team_id": "xxxxx",
"status": "delivered",
"from": "[email protected]",
"to": "[email protected]",
"subject": "Test from http client",
"response": "250 2.0.0 OK xxxxx 6a1803df08f44-882866ae38bsi47823636d6.1634 - gsmtp",
"code": "250",
"mx_hostname": "gmail-smtp-in.l.google.com",
"time": 1763491342,
"queued_at": "2025-11-18T18:42:23.494Z",
"recipient": "[email protected]",
"recipient_type": "to"
},
{
"email_id": "xxxxx",
"team_id": "xxxxx",
"status": "queued",
"from": "[email protected]",
"to": "[email protected]",
"subject": "Test from http client",
"response": "250 Message queued as xxxxx",
"code": "250",
"mx_hostname": "",
"time": 1763491343,
"queued_at": "2025-11-18T18:42:23Z",
"recipient": "[email protected]",
"recipient_type": "to"
},
{
"email_id": "xxxxx",
"team_id": "xxxxx",
"status": "processing",
"from": "[email protected]",
"to": "[email protected]",
"subject": "Test from http client",
"response": "250 2.0.0 Ok: queued as xxxxx",
"code": "250",
"mx_hostname": "",
"time": 1763491341,
"queued_at": "",
"recipient": "[email protected]",
"recipient_type": "to"
}
]
}
}
Retrieve detailed information about a specific email, including full content and delivery logs.
curl --request GET \
--url https://api.thepurplebox.io/v1/emails/{email_id} \
--header 'Authorization: Bearer <token>'{
"status": 200,
"message": "email retrieved successfully.",
"data": {
"id": "xxxxx",
"message_id": "[email protected]",
"from_address": "[email protected]",
"to_addresses": [
"[email protected]"
],
"subject": "Test from http client",
"size": 280,
"inline": 0,
"attachments": 0,
"api_key_id": 2,
"snippet": "hello world",
"created_at": "2025-11-18T18:42:21.819994Z",
"team_id": "xxxxx",
"metadata": {
"from": "[email protected]",
"to": [
"[email protected]"
],
"cc": null,
"bcc": null,
"reply_to": null,
"text": "hello world",
"html": ""
},
"opened_at": null,
"delivered_at": "2025-11-18T18:42:23.494Z",
"click_count": 0,
"status": "delivered",
"credits_used": 1,
"logs": [
{
"email_id": "xxxxx",
"team_id": "xxxxx",
"status": "delivered",
"from": "[email protected]",
"to": "[email protected]",
"subject": "Test from http client",
"response": "250 2.0.0 OK xxxxx 6a1803df08f44-882866ae38bsi47823636d6.1634 - gsmtp",
"code": "250",
"mx_hostname": "gmail-smtp-in.l.google.com",
"time": 1763491342,
"queued_at": "2025-11-18T18:42:23.494Z",
"recipient": "[email protected]",
"recipient_type": "to"
},
{
"email_id": "xxxxx",
"team_id": "xxxxx",
"status": "queued",
"from": "[email protected]",
"to": "[email protected]",
"subject": "Test from http client",
"response": "250 Message queued as xxxxx",
"code": "250",
"mx_hostname": "",
"time": 1763491343,
"queued_at": "2025-11-18T18:42:23Z",
"recipient": "[email protected]",
"recipient_type": "to"
},
{
"email_id": "xxxxx",
"team_id": "xxxxx",
"status": "processing",
"from": "[email protected]",
"to": "[email protected]",
"subject": "Test from http client",
"response": "250 2.0.0 Ok: queued as xxxxx",
"code": "250",
"mx_hostname": "",
"time": 1763491341,
"queued_at": "",
"recipient": "[email protected]",
"recipient_type": "to"
}
]
}
}
application/json200 when the email is retrieved successfully.Show properties
Show properties
processing, queued, delivered, failed, bounced, complaint.Show properties
processing, queued, delivered, failed, bounced.250 for success).to, cc, bcc.{
"status": 200,
"message": "email retrieved successfully.",
"data": {
"id": "xxxxx",
"message_id": "[email protected]",
"from_address": "[email protected]",
"to_addresses": [
"[email protected]"
],
"subject": "Test from http client",
"size": 280,
"inline": 0,
"attachments": 0,
"api_key_id": 2,
"snippet": "hello world",
"created_at": "2025-11-18T18:42:21.819994Z",
"team_id": "xxxxx",
"metadata": {
"from": "[email protected]",
"to": [
"[email protected]"
],
"cc": null,
"bcc": null,
"reply_to": null,
"text": "hello world",
"html": ""
},
"opened_at": null,
"delivered_at": "2025-11-18T18:42:23.494Z",
"click_count": 0,
"status": "delivered",
"credits_used": 1,
"logs": [
{
"email_id": "xxxxx",
"team_id": "xxxxx",
"status": "delivered",
"from": "[email protected]",
"to": "[email protected]",
"subject": "Test from http client",
"response": "250 2.0.0 OK xxxxx 6a1803df08f44-882866ae38bsi47823636d6.1634 - gsmtp",
"code": "250",
"mx_hostname": "gmail-smtp-in.l.google.com",
"time": 1763491342,
"queued_at": "2025-11-18T18:42:23.494Z",
"recipient": "[email protected]",
"recipient_type": "to"
},
{
"email_id": "xxxxx",
"team_id": "xxxxx",
"status": "queued",
"from": "[email protected]",
"to": "[email protected]",
"subject": "Test from http client",
"response": "250 Message queued as xxxxx",
"code": "250",
"mx_hostname": "",
"time": 1763491343,
"queued_at": "2025-11-18T18:42:23Z",
"recipient": "[email protected]",
"recipient_type": "to"
},
{
"email_id": "xxxxx",
"team_id": "xxxxx",
"status": "processing",
"from": "[email protected]",
"to": "[email protected]",
"subject": "Test from http client",
"response": "250 2.0.0 Ok: queued as xxxxx",
"code": "250",
"mx_hostname": "",
"time": 1763491341,
"queued_at": "",
"recipient": "[email protected]",
"recipient_type": "to"
}
]
}
}