GET /emails/unread:
Status 200
[
{
"id": 8,
"sender": "you@mail.com",
"recipient": "test@example.com",
"subject": "Test Subject",
"body": "This is a test email body.",
"timestamp": "2025-10-31T00:33:54.078620",
"read": false
},
{
"id": 7,
"sender": "you@mail.com",
"recipient": "test@example.com",
"subject": "Test Subject",
"body": "This is a test email body.",
"timestamp": "2025-10-31T00:33:32.050552",
"read": false
},
{
"id": 1,
"sender": "eric@work.com",
"recipient": "you@email.com",
"subject": "Happy Hour",
"body": "We're planning drinks this Friday!",
"timestamp": "2025-10-31T00:31:09.568128",
"read": false
},
{
"id": 2,
"sender": "bob@work.com",
"recipient": "you@email.com",
"subject": "Code Review",
"body": "I left some comments on your PR.",
"timestamp": "2025-10-31T00:31:09.568128",
"read": false
},
{
"id": 3,
"sender": "charlie@work.com",
"recipient": "you@email.com",
"subject": "Meeting",
"body": "Can we reschedule?",
"timestamp": "2025-10-31T00:31:09.568128",
"read": false
},
{
"id": 4,
"sender": "alice@work.com",
"recipient": "you@email.com",
"subject": "Lunch?",
"body": "Free for lunch today?",
"timestamp": "2025-10-31T00:31:09.568128",
"read": false
},
{
"id": 5,
"sender": "you@mail.com",
"recipient": "boss@email.com",
"subject": "Days off",
"body": "Can I get some days off the coming week?",
"timestamp": "2025-10-31T00:31:09.568128",
"read": false
},
{
"id": 6,
"sender": "boss@email.com",
"recipient": "you@email.com",
"subject": "Quarterly Report",
"body": "Please finalize the report ASAP.",
"timestamp": "2025-10-31T00:31:09.568128",
"read": false
}
]