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

# Get Email Trace

> The step-by-step history of one test email

> [!NOTE]
>
> **Smart Delivery v2 (Deliverability Test) API**: the deliverability (inbox placement) test that sends your campaign email to seed inboxes and reports where it landed. Contact [support@smartlead.ai](mailto:support@smartlead.ai) for access.

## Overview

Shows what happened to a single email: when it was sent, how often it was looked for and why it got its placement. The seed address is never returned.

## Path Parameters

**id** `string` *required*

Run ID (UUID)

**assignmentId** `number` *required*

Email ID from [Get Run](https://api.smartlead.ai/api-reference/smart-delivery-v2/get-run.md) (`assignments[].id`)

## Query Parameters

**api\_key** `string` *required*

Your SmartLead API key

```bash cURL theme={null}
curl -X GET "https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/runs/3f2b8c1e-5d4a-4e7b-9a60-1c2d3e4f5a6b/emails/90211/trace?api_key=YOUR_KEY"
```

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

API_KEY = "YOUR_API_KEY"

response = requests.get(
    "https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/runs/3f2b8c1e-5d4a-4e7b-9a60-1c2d3e4f5a6b/emails/90211/trace",
    params={"api_key": API_KEY}
)
print(response.status_code)
print(response.json())
```

```javascript JavaScript theme={null}
const API_KEY = 'YOUR_API_KEY';

const response = await fetch(
  `https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/runs/3f2b8c1e-5d4a-4e7b-9a60-1c2d3e4f5a6b/emails/90211/trace?api_key=${API_KEY}`,
  {
    method: 'GET'
  }
);
console.log(await response.json());
```

## Response Fields

**email** `object`

**email**

**id** `number`

Email ID

**senderEmail** `string`

Sending mailbox

**provider** `string`

Provider code

**sendStatus** `string`

Send status

**errorCode** `string | null`

Why the send failed

**placement** `string`

Placement

**placementDetail** `string | null`

How the placement was decided

**sentAt** `string | null`

Sent time

**foundAt** `string | null`

Found time

**matchedBy** `string | null`

How the received copy was matched to the sent email

**checksCount** `number`

Times the seed inbox was checked

**lastCheckedAt** `string | null`

Last check

**checkDeadline** `string | null`

When checking stops

**minutesAfterSend** `number | null`

Minutes from send to found

**events** `array`

Event log, oldest first: `at`, `type`, `detail`

## Response Codes

**200** `Success`

Success

**404** `Error`

Run or email not found (`RUN_NOT_FOUND`, `EMAIL_NOT_FOUND`)

**401** `Unauthorized`

Missing, invalid or expired API key (`UNAUTHORIZED`)

**403** `Forbidden`

Client (agency) API keys are not allowed (`CLIENT_NOT_ALLOWED`), or your plan does not include API access (`API_ACCESS_RESTRICTED`)

**429** `Too Many Requests`

Too many requests for this API key. Wait the number of seconds in the `Retry-After` header (`RATE_LIMITED`)

```json 200 - Success theme={null}
{
  "email": {
    "id": 90211,
    "senderEmail": "alex@sender-one.com",
    "provider": "GOOGLE_WORKSPACE",
    "sendStatus": "SENT",
    "placement": "INBOX",
    "sentAt": "2026-11-17T08:31:14.000Z",
    "foundAt": "2026-11-17T08:31:50.000Z",
    "checksCount": 2,
    "minutesAfterSend": 1
  },
  "events": [
    { "at": "2026-11-17T08:31:14.000Z", "type": "SENT", "detail": null }
  ]
}
(some fields omitted)
```

```json Error - Unauthorized theme={null}
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Invalid API Key"
  }
}
```

## Related Endpoints

* [Get Email Headers](https://api.smartlead.ai/api-reference/smart-delivery-v2/email-headers.md)
* [List Run Emails](https://api.smartlead.ai/api-reference/smart-delivery-v2/run-emails.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.