Get All Transactional Emails

Retrieve a paginated list of all transactional emails sent via the SenderWiz platform.

📬 Get All Transactional Emails

Use this endpoint to fetch all transactional email records with pagination support.


🔹 HTTP Request

GET API-URL/transactional-emails

🧾 Query Parameters

Parameter
Default
Description

page

1

Current page to retrieve.

per_page

10

Items per page to retrieve.


🔐 Authorization Header

X-API-KEY: your-api-key-here

💻 PHP Example

// GET ALL ITEMS
$response = $endpoint->getEmails($pageNumber = 1, $perPage = 10);

// DISPLAY RESPONSE
echo '<pre>';
print_r($response->body);
echo '</pre>';

📦 Sample JSON Response

{
  "status": "success",
  "data": {
    "count": "3",
    "total_pages": 1,
    "current_page": 1,
    "next_page": null,
    "prev_page": null,
    "records": [
      {
        "email_uid": "em472plqxt71a",
        "customer_id": "101",
        "to_email": "alex.mason@demo.com",
        "to_name": "Alex Mason",
        "from_email": "nina.bryant@demo.com",
        "from_name": "Nina Bryant",
        "reply_to_email": "nina.bryant@demo.com",
        "reply_to_name": "Nina Bryant",
        "subject": "Welcome to our April Updates!",
        "body": "<strong>Hello Alex, thanks for joining us!<\/strong>",
        "plain_text": "Hello Alex, thanks for joining us!",
        "priority": "5",
        "retries": "0",
        "max_retries": "3",
        "send_at": "2025-04-17 10:00:00",
        "fallback_system_servers": "no",
        "status": "sent",
        "date_added": "2025-04-17 10:00:02",
        "last_updated": "2025-04-17 10:01:45",
        "attachments": []
      },
      {
        "email_uid": "rm823gkwt29xb",
        "customer_id": "101",
        "to_email": "chloe.ross@demo.com",
        "to_name": "Chloe Ross",
        "from_email": "nina.bryant@demo.com",
        "from_name": "Nina Bryant",
        "reply_to_email": "nina.bryant@demo.com",
        "reply_to_name": "Nina Bryant",
        "subject": "Limited Time Offer Inside!",
        "body": "<strong>Hello Chloe, don’t miss this exclusive offer!<\/strong>",
        "plain_text": "Hello Chloe, don’t miss this exclusive offer!",
        "priority": "5",
        "retries": "0",
        "max_retries": "3",
        "send_at": "2025-04-15 08:45:00",
        "fallback_system_servers": "no",
        "status": "sent",
        "date_added": "2025-04-15 08:45:03",
        "last_updated": "2025-04-15 08:46:10",
        "attachments": []
      },
      {
        "email_uid": "tj594wqknv36d",
        "customer_id": "101",
        "to_email": "daniel.king@demo.com",
        "to_name": "Daniel King",
        "from_email": "nina.bryant@demo.com",
        "from_name": "Nina Bryant",
        "reply_to_email": "nina.bryant@demo.com",
        "reply_to_name": "Nina Bryant",
        "subject": "Your Invitation Awaits!",
        "body": "<strong>Hello Daniel, here’s your exclusive invitation!<\/strong>",
        "plain_text": "Hello Daniel, here’s your exclusive invitation!",
        "priority": "5",
        "retries": "0",
        "max_retries": "3",
        "send_at": "2025-04-14 09:30:00",
        "fallback_system_servers": "no",
        "status": "sent",
        "date_added": "2025-04-14 09:30:05",
        "last_updated": "2025-04-14 09:31:15",
        "attachments": []
      }
    ]
  }
}

Last updated