Skip to main content
GET
https://api.thepurplebox.io
/
v1
/
emails
List Emails
curl --request GET \
  --url https://api.thepurplebox.io/v1/emails \
  --header 'Authorization: Bearer <token>'
{
    "status": 200,
    "message": "emails retrieved successfully.",
    "data": {
        "data": [
            {
                "id": "xxxxx",
                "message_id": "[email protected]",
                "from_address": "[email protected]",
                "to_addresses": [
                    "[email protected]"
                ],
                "subject": "Complete Your Sign-In to thePurpleBox",
                "size": 8915,
                "inline": 0,
                "attachments": 0,
                "api_key_id": 2,
                "snippet": "Complete Your Sign-In Hey [email protected], We noticed a sign-in attempt to your purplebox account...",
                "created_at": "2025-11-21T10:51:55.330945Z",
                "team_id": "xxxxx",
                "metadata": {
                    "from": "[email protected]",
                    "to": [
                        "[email protected]"
                    ],
                    "cc": null,
                    "bcc": null,
                    "reply_to": null,
                    "text": "",
                    "html": ""
                },
                "opened_at": null,
                "delivered_at": null,
                "click_count": 0,
                "status": "processing",
                "credits_used": 1
            }
        ],
        "pagination": {
            "page": 1,
            "total_records": 11,
            "total_pages": 2,
            "limit": 10
        }
    }
}

Headers

Content-Type
string
application/json

Query Parameters

page
number
default:"1"
Page number for pagination.
limit
number
default:"10"
Number of emails to return per page.
Search query to filter emails by subject, recipient, or sender.
start_date
string
Filter emails created on or after this date (ISO 8601 format, e.g., 2025-11-01T00:00:00Z).
end_date
string
Filter emails created on or before this date (ISO 8601 format, e.g., 2025-11-30T23:59:59Z).
statuses
string
Filter by email status. Can be a single status or comma-separated list. Possible values: processing, queued, delivered, failed, bounced, complaint.
api_key_id
number
Filter emails sent using a specific API key ID.

Response

status
number
HTTP status code. Returns 200 when emails are retrieved successfully.
message
string
A human-readable message describing the result of the operation.
data
object
Contains the paginated list of emails and pagination metadata.
{
    "status": 200,
    "message": "emails retrieved successfully.",
    "data": {
        "data": [
            {
                "id": "xxxxx",
                "message_id": "[email protected]",
                "from_address": "[email protected]",
                "to_addresses": [
                    "[email protected]"
                ],
                "subject": "Complete Your Sign-In to thePurpleBox",
                "size": 8915,
                "inline": 0,
                "attachments": 0,
                "api_key_id": 2,
                "snippet": "Complete Your Sign-In Hey [email protected], We noticed a sign-in attempt to your purplebox account...",
                "created_at": "2025-11-21T10:51:55.330945Z",
                "team_id": "xxxxx",
                "metadata": {
                    "from": "[email protected]",
                    "to": [
                        "[email protected]"
                    ],
                    "cc": null,
                    "bcc": null,
                    "reply_to": null,
                    "text": "",
                    "html": ""
                },
                "opened_at": null,
                "delivered_at": null,
                "click_count": 0,
                "status": "processing",
                "credits_used": 1
            }
        ],
        "pagination": {
            "page": 1,
            "total_records": 11,
            "total_pages": 2,
            "limit": 10
        }
    }
}