> For the complete documentation index, see [llms.txt](https://api.senderwiz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.senderwiz.com/customer/transactional-emails/get-all-transactional-emails.md).

# Get All Transactional Emails

### 📬 Get All Transactional Emails

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

***

#### 🔹 HTTP Request

```http
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

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

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

***

#### 📦 Sample JSON Response

```json
{
  "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": []
      }
    ]
  }
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api.senderwiz.com/customer/transactional-emails/get-all-transactional-emails.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
