> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.etera.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.etera.dev/_mcp/server.

# Get email notification tracking

GET https://api.etera.dev/notification/tracking/email


Get email notification tracking records with filtering and pagination.

**Query Parameters:**
- **userId**: Filter by user ID (optional, defaults to authenticated user)
- **status**: Filter by notification status
- **startDate**: Filter notifications created after this date
- **endDate**: Filter notifications created before this date
- **limit**: Number of records to return (1-100, default: 50)
- **offset**: Number of records to skip (default: 0)
- **sortBy**: Sort field (created_at, sent_at, status)
- **sortOrder**: Sort direction (asc, desc)

**Use Cases:**
- Email delivery tracking
- User notification history
- Analytics and reporting
- Debugging email issues
        

Reference: https://docs.etera.dev/platform/notifications/notification-api/notification-tracking/get-tracking-email

## Authentication

- `Authorization` header (bearer token, required) — JWT token for authentication. Use 'test-jwt-token' for development.

## Servers

- `https://api.etera.dev/notification` (Production, default)
- `https://api-stage.etera.dev/notification` (Staging)
- `https://api-dev.etera.dev/notification` (Development)

## Request

### Query parameters

- `userId` (string, optional)
- `status` (TrackingEmailGetParametersStatus, optional)
- `startDate` (datetime, optional)
- `endDate` (datetime, optional)
- `limit` (double, optional)
- `offset` (double, optional)
- `sortBy` (TrackingEmailGetParametersSortBy, optional)
- `sortOrder` (TrackingEmailGetParametersSortOrder, optional)

## Response

### 200

- `success` (boolean, required)
- `data` (list of TrackingEmailGetResponsesContentApplicationJsonSchemaDataItems, optional)
- `error` (TrackingEmailGetResponsesContentApplicationJsonSchemaError, optional)

## Types

### TrackingEmailGetParametersStatus

- "pending"
- "sent"
- "delivered"
- "failed"
- "bounced"
- "complained"

### TrackingEmailGetParametersSortBy

- "created_at"
- "sent_at"
- "status"

### TrackingEmailGetParametersSortOrder

- "asc"
- "desc"

### TrackingEmailGetResponsesContentApplicationJsonSchemaDataItems

- `id` (string, required)
- `userId` (string, required)
- `messageId` (string, required, nullable)
- `toEmail` (string, required)
- `subject` (string, required)
- `status` (TrackingEmailGetResponsesContentApplicationJsonSchemaDataItemsStatus, required)
- `templateId` (string, required, nullable)
- `templateData` (TrackingEmailGetResponsesContentApplicationJsonSchemaDataItemsTemplateData, required, nullable)
- `htmlContent` (string, required, nullable)
- `textContent` (string, required, nullable)
- `fromEmail` (string, required, nullable)
- `replyTo` (string, required, nullable)
- `ccEmails` (list of string, required, nullable)
- `bccEmails` (list of string, required, nullable)
- `priority` (TrackingEmailGetResponsesContentApplicationJsonSchemaDataItemsPriority, required)
- `tags` (list of string, required, nullable)
- `metadata` (TrackingEmailGetResponsesContentApplicationJsonSchemaDataItemsMetadata, required, nullable)
- `errorMessage` (string, required, nullable)
- `retryCount` (double, required)
- `maxRetries` (double, required)
- `scheduledFor` (TrackingEmailGetResponsesContentApplicationJsonSchemaDataItemsScheduledFor, required, nullable)
- `sentAt` (TrackingEmailGetResponsesContentApplicationJsonSchemaDataItemsSentAt, required, nullable)
- `deliveredAt` (TrackingEmailGetResponsesContentApplicationJsonSchemaDataItemsDeliveredAt, required, nullable)
- `openedAt` (TrackingEmailGetResponsesContentApplicationJsonSchemaDataItemsOpenedAt, required, nullable)
- `clickedAt` (TrackingEmailGetResponsesContentApplicationJsonSchemaDataItemsClickedAt, required, nullable)
- `failedAt` (TrackingEmailGetResponsesContentApplicationJsonSchemaDataItemsFailedAt, required, nullable)
- `createdAt` (TrackingEmailGetResponsesContentApplicationJsonSchemaDataItemsCreatedAt, required)
- `updatedAt` (TrackingEmailGetResponsesContentApplicationJsonSchemaDataItemsUpdatedAt, required)

### TrackingEmailGetResponsesContentApplicationJsonSchemaError

- `message` (string, required)
- `code` (string, optional)
- `details` (any, optional)

### TrackingEmailGetResponsesContentApplicationJsonSchemaDataItemsStatus

- "pending"
- "sent"
- "delivered"
- "failed"
- "bounced"
- "complained"

### TrackingEmailGetResponsesContentApplicationJsonSchemaDataItemsTemplateData

### TrackingEmailGetResponsesContentApplicationJsonSchemaDataItemsPriority

- "high"
- "normal"
- "low"

### TrackingEmailGetResponsesContentApplicationJsonSchemaDataItemsMetadata

### TrackingEmailGetResponsesContentApplicationJsonSchemaDataItemsScheduledFor

- any
- datetime
- date
- double

### TrackingEmailGetResponsesContentApplicationJsonSchemaDataItemsSentAt

- any
- datetime
- date
- double

### TrackingEmailGetResponsesContentApplicationJsonSchemaDataItemsDeliveredAt

- any
- datetime
- date
- double

### TrackingEmailGetResponsesContentApplicationJsonSchemaDataItemsOpenedAt

- any
- datetime
- date
- double

### TrackingEmailGetResponsesContentApplicationJsonSchemaDataItemsClickedAt

- any
- datetime
- date
- double

### TrackingEmailGetResponsesContentApplicationJsonSchemaDataItemsFailedAt

- any
- datetime
- date
- double

### TrackingEmailGetResponsesContentApplicationJsonSchemaDataItemsCreatedAt

- any
- datetime
- date
- double

### TrackingEmailGetResponsesContentApplicationJsonSchemaDataItemsUpdatedAt

- any
- datetime
- date
- double

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "success": true,
  "data": [
    {
      "id": "a3f1c9e2-7b4d-4f8a-9d3e-2b5f6c7d8e9f",
      "userId": "user_123456",
      "messageId": "msg_78910",
      "toEmail": "jane.doe@example.com",
      "subject": "Your Order Confirmation",
      "status": "pending",
      "templateId": "tpl_456789",
      "templateData": {
        "orderNumber": "12345",
        "customerName": "Jane Doe",
        "deliveryDate": "2024-07-10"
      },
      "htmlContent": "<html><body><h1>Thank you for your order, Jane Doe!</h1></body></html>",
      "textContent": "Thank you for your order, Jane Doe!",
      "fromEmail": "sales@shop.example.com",
      "replyTo": "support@shop.example.com",
      "ccEmails": [
        "manager@shop.example.com"
      ],
      "bccEmails": [
        "audit@shop.example.com"
      ],
      "priority": "high",
      "tags": [
        "order",
        "confirmation"
      ],
      "metadata": {
        "campaign": "summer_sale",
        "source": "website"
      },
      "errorMessage": null,
      "retryCount": 0,
      "maxRetries": 3,
      "scheduledFor": null,
      "sentAt": null,
      "deliveredAt": null,
      "openedAt": null,
      "clickedAt": null,
      "failedAt": null,
      "createdAt": "2024-06-20T15:45:00Z",
      "updatedAt": "2024-06-20T15:45:00Z"
    }
  ],
  "error": {
    "message": null,
    "code": null
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.etera.dev/notification/tracking/email"

payload = {}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.get(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.etera.dev/notification/tracking/email';
const options = {
  method: 'GET',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.etera.dev/notification/tracking/email"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("GET", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.etera.dev/notification/tracking/email")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.etera.dev/notification/tracking/email")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.etera.dev/notification/tracking/email', [
  'body' => '{}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.etera.dev/notification/tracking/email");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.etera.dev/notification/tracking/email")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```