> ## Documentation Index
> Fetch the complete documentation index at: https://docs.unosend.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve Email

> Retrieve a sent email by ID.

<ParamField path="id" type="string" required>
  The ID of the email to retrieve.
</ParamField>

### Request

<CodeGroup>
  ```bash cURL theme={null}
  curl https://api.unosend.co/emails/550e8400-e29b-41d4-a716-446655440000 \
    -H "Authorization: Bearer un_xxxxxxxxxx"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://api.unosend.co/emails/550e8400-e29b-41d4-a716-446655440000', {
    headers: { 'Authorization': 'Bearer un_xxxxxxxxxx' }
  });
  const email = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.get('https://api.unosend.co/emails/550e8400-e29b-41d4-a716-446655440000',
    headers={'Authorization': 'Bearer un_xxxxxxxxxx'}
  )
  email = response.json()
  ```

  ```go Go theme={null}
  req, _ := http.NewRequest("GET", "https://api.unosend.co/emails/550e8400-e29b-41d4-a716-446655440000", nil)
  req.Header.Set("Authorization", "Bearer un_xxxxxxxxxx")
  resp, _ := http.DefaultClient.Do(req)
  ```

  ```php PHP theme={null}
  $ch = curl_init('https://api.unosend.co/emails/550e8400-e29b-41d4-a716-446655440000');
  curl_setopt_array($ch, [
      CURLOPT_HTTPHEADER => ['Authorization: Bearer un_xxxxxxxxxx'],
      CURLOPT_RETURNTRANSFER => true
  ]);
  $response = curl_exec($ch);
  ```

  ```ruby Ruby theme={null}
  require 'net/http'
  uri = URI('https://api.unosend.co/emails/550e8400-e29b-41d4-a716-446655440000')
  req = Net::HTTP::Get.new(uri)
  req['Authorization'] = 'Bearer un_xxxxxxxxxx'
  response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
  ```
</CodeGroup>

### Response

```json 200 theme={null}
{
  "success": true,
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "from": "hello@yourdomain.com",
    "to": ["user@example.com"],
    "subject": "Hello World",
    "html": "<h1>Welcome!</h1>",
    "status": "delivered",
    "created_at": "2024-01-15T10:30:00.000Z",
    "delivered_at": "2024-01-15T10:30:05.000Z"
  }
}
```

<ResponseField name="id" type="string">Unique email identifier.</ResponseField>
<ResponseField name="from" type="string">Sender email address.</ResponseField>
<ResponseField name="to" type="string[]">Recipient email addresses.</ResponseField>
<ResponseField name="subject" type="string">Email subject line.</ResponseField>
<ResponseField name="html" type="string">HTML content of the email.</ResponseField>
<ResponseField name="status" type="string">Delivery status: `queued`, `sent`, `delivered`, `bounced`, `complained`.</ResponseField>
<ResponseField name="created_at" type="string">When the email was created (ISO 8601).</ResponseField>
<ResponseField name="delivered_at" type="string">When the email was delivered (ISO 8601). `null` if not yet delivered.</ResponseField>
