---
agentTools:
  projectIndex: https://sendinblue.readme.io/llms.txt
---

# Get the personalized content of a sent transactional email

> ℹ️ How to get `uuid`?
>
> You can get the `uuid` using either of the following methods:
>
> 1. Send a  `GET` request to `https://api.brevo.com/v3/smtp/emails` and pass the `message_id` in the url. Use your `api-key` to authenticate the request and you will get your `uuid` as a response.
> 2. The `uuid` can also be fetched from the transactional logs page in your Brevo account, from the address URL.

## Event names

| Name           | Description                                                                                           |
| :------------- | :---------------------------------------------------------------------------------------------------- |
| sent           | Event triggered when message is pushed for delivery                                                   |
| delivered      | When the message reaches the recipient                                                                |
| hard\_bounce   | When message is permanently rejected by recipient mail server                                         |
| soft\_bounce   | When message is temporarily rejected by recipients mail server                                        |
| click          | When the recipient interacts with the email                                                           |
| open           | When the recipient opens the email                                                                    |
| spam           | When email is marked as spam by recipients email provider                                             |
| blocked        | When an email is prevented to reach the recipients inbox due to blacklisted sender etc.               |
| invalid        | When the senders email is not invalid or does not exist then this event is triggered                  |
| unsubscribed   | This event is shown when the recipient has unsubscribed from receiving further emails from the sender |
| deferred       | The email delivery has been delayed by the recipients mail server                                     |
| error          | An error occurred during the mail transfer from sender to recipient                                   |
| proxy\_open    | An event where the proxy tells if the email has been opened                                           |
| invalid\_email | When the senders email is invalid                                                                     |

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "contact": {
      "email": "contact@brevo.com",
      "name": "Brevo Support",
      "url": "https://account.brevo.com/support"
    },
    "description": "Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to :\n  - Manage your campaigns and get the statistics\n  - Manage your contacts\n  - Send transactional Emails and SMS\n  - and much more...\n\nYou can download our wrappers at https://github.com/orgs/brevo\n**Possible responses**\n  | Code | Message |\n  | :-------------: | ------------- |\n  | 200  | OK. Successful Request  |\n  | 201  | OK. Successful Creation |\n  | 202  | OK. Request accepted |\n  | 204  | OK. Successful Update/Deletion  |\n  | 400  | Error. Bad Request  |\n  | 401  | Error. Authentication Needed  |\n  | 402  | Error. Not enough credit, plan upgrade needed  |\n  | 403  | Error. Permission denied  |\n  | 404  | Error. Object does not exist |\n  | 405  | Error. Method not allowed  |\n  | 406  | Error. Not Acceptable  |\n  | 422  | Error. Unprocessable Entity |\n",
    "license": {
      "name": "MIT",
      "url": "http://opensource.org/licenses/MIT"
    },
    "title": "Brevo API",
    "version": "3.0.0"
  },
  "servers": [
    {
      "url": "https://api.brevo.com/v3"
    }
  ],
  "security": [
    {
      "api-key": []
    },
    {
      "partner-key": []
    }
  ],
  "paths": {
    "/smtp/emails/{uuid}": {
      "get": {
        "operationId": "getTransacEmailContent",
        "parameters": [
          {
            "description": "Unique id of the transactional email that has been sent to a particular contact",
            "in": "path",
            "name": "uuid",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "body": "<!DOCTYPE html> <html> <body> <h1>Greetings from the team</h1> <p>This is the actual html content sent</p> </body> </html>",
                      "date": "2016-02-25T11:53:26Z",
                      "email": "abc@example.com",
                      "events": [
                        {
                          "name": "sent",
                          "time": "2016-02-25T11:53:26Z"
                        },
                        {
                          "name": "delivered",
                          "time": "2016-02-25T11:55:26Z"
                        },
                        {
                          "name": "opened",
                          "time": "2016-02-26T09:53:26Z"
                        }
                      ],
                      "subject": "Summer Camps",
                      "templateId": 12
                    }
                  }
                },
                "schema": {
                  "properties": {
                    "attachmentCount": {
                      "description": "Count of the attachments that were sent in the email",
                      "example": 2,
                      "format": "int64",
                      "type": "integer"
                    },
                    "body": {
                      "description": "Actual content of the transactional email that has been sent",
                      "example": "<!DOCTYPE html> <html> <body> <h1>Greetings from the team</h1> <p>This is the actual html content sent</p> </body> </html>",
                      "type": "string"
                    },
                    "date": {
                      "description": "Date on which transactional email was sent",
                      "example": "2017-03-12T12:30:00Z",
                      "type": "string"
                    },
                    "email": {
                      "description": "Email address to which transactional email has been sent",
                      "example": "abc@example.com",
                      "format": "email",
                      "type": "string"
                    },
                    "events": {
                      "description": "Series of events which occurred on the transactional email",
                      "items": {
                        "properties": {
                          "name": {
                            "description": "Name of the event that occurred on the sent email",
                            "example": "delivered",
                            "type": "string"
                          },
                          "time": {
                            "description": "Time at which the event occurred",
                            "example": "2017-03-12T12:30:00Z",
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "time"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "subject": {
                      "description": "Subject of the sent email",
                      "example": "Summer Camp",
                      "type": "string"
                    },
                    "templateId": {
                      "description": "Id of the template",
                      "example": 2,
                      "format": "int64",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "attachmentCount",
                    "body",
                    "date",
                    "email",
                    "events",
                    "subject"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Transactional email content"
          }
        },
        "summary": "Get the personalized content of a sent transactional email",
        "tags": [
          "Transactional emails"
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "api-key": {
        "description": "The API key should be passed in the request headers as `api-key` for authentication.",
        "in": "header",
        "name": "api-key",
        "type": "apiKey"
      },
      "partner-key": {
        "description": "The partner key should be passed in the request headers as `partner-key` along with `api-key` pair for successful authentication of partner (Optional).",
        "in": "header",
        "name": "partner-key",
        "type": "apiKey"
      }
    }
  },
  "x-samples-languages": [
    "curl"
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 91,
      "1": 104,
      "2": 180,
      "3": 205,
      "4": 240,
      "5": 82,
      "6": 207,
      "7": 0,
      "8": 3,
      "9": 36,
      "10": 63,
      "11": 142
    }
  }
}
```