# Get One Transactional Email

### 📩 Get One Transactional Email

Use this endpoint to fetch the data of a specific transactional email, including metadata, content, and attachments.

***

#### 🔹 HTTP Request

```http
GET API-URL/transactional-emails/EMAIL-UNIQUE-ID
```

***

#### 🔸 URL Segment

| Segment           | Required | Description                           |
| ----------------- | -------- | ------------------------------------- |
| `EMAIL-UNIQUE-ID` | Yes      | Unique ID of the transactional email. |

***

#### 🔐 Authorization Header

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

***

#### 💻 PHP Example

```php
// GET ONE ITEM
$response = $endpoint->getEmail('EMAIL-UNIQUE-ID');

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

***

#### 📦 Sample JSON Response

```json
{
  "status": "success",
  "data": {
    "record": {
      "email_uid": "em847xqvnlz45",
      "customer_id": "102",
      "to_email": "lucas.smith@demo.com",
      "to_name": "Lucas Smith",
      "from_email": "emma.james@demo.com",
      "from_name": "Emma James",
      "reply_to_email": "emma.james@demo.com",
      "reply_to_name": "Emma James",
      "subject": "📧 Important Update – Please Review",
      "body": "<strong>Hello Lucas, please find the attached document for your review.<\/strong>",
      "plain_text": "Hello Lucas, please find the attached document for your review.",
      "priority": "5",
      "retries": "0",
      "max_retries": "3",
      "send_at": "2025-04-17 11:15:00",
      "fallback_system_servers": "no",
      "status": "sent",
      "date_added": "2025-04-17 11:15:05",
      "last_updated": "2025-04-17 11:16:10",
      "attachments": [
        {
          "type": "application/pdf",
          "name": "monthly-report-april.pdf",
          "data": "Email attachment content blob"
        }
      ]
    }
  }
}
```


---

# Agent Instructions: 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-one-transactional-email.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.
