# قائمة البريد الإلكتروني

> صفحة عبر البريد الإلكتروني المرسل، أحدث أولاً.

`GET /emails`

Requires a Full access key. Results are sorted by `created_at`, newest first.

## بارامترات الاستفسار

- `q` (string): البحث عن طريق عنوان المرسل إليه أو الموضوع.
- `status` (string): واحد من `queued`, `sent`, `delivered`, `delayed`, `bounced`.
- `after` (string): هوية آخر بريد إلكتروني على الصفحة السابقة.
- `limit` (number): البنود في كل صفحة، 1 إلى 100، الافتراض هو 30.

## Example

cURL

```
curl -X GET 'https://sendtern.com/emails?status=bounced&limit=20' \
  -H 'Authorization: Bearer st_your_api_key'
```

Node.js

```
const res = await fetch("https://sendtern.com/emails?status=bounced&limit=20", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.SENDTERN_API_KEY}`,
  },
});

const data = await res.json();
```

Python

```
import os
import requests

res = requests.get(
    "https://sendtern.com/emails?status=bounced&limit=20",
    headers={"Authorization": f"Bearer {os.environ['SENDTERN_API_KEY']}"},
)

print(res.json())
```

## Response

```json
{
  "object": "list",
  "data": [],
  "has_more": false
}
```
