Emails
List Emails
Returns a list of emails for the given inbox.
GET /inboxes/{inboxId}/emails
bash
curl -H "Authorization: Bearer apk_your_api_key_here" \
"https://api.emailhook.com/v1/inboxes/ibx_123/emails?limit=10&isRead=false"Query Parameters
limit- Number of emails to return (1-100, default: 25)cursor- Cursor for paginationisRead- Filter by read status (true/false)since- ISO datetime to filter emails received afteruntil- ISO datetime to filter emails received beforesort- Sort order (receivedAt,-receivedAt,createdAt,-createdAt,updatedAt,-updatedAt)
Get Email
Retrieves an email with full content.
GET /inboxes/{inboxId}/emails/{emailId}
bash
curl -H "Authorization: Bearer apk_your_api_key_here" \
https://api.emailhook.com/v1/inboxes/ibx_123/emails/eml_123Update Email
Updates an email's read status.
PATCH /inboxes/{inboxId}/emails/{emailId}
bash
curl -X PATCH https://api.emailhook.com/v1/inboxes/ibx_123/emails/eml_123 \
-H "Authorization: Bearer apk_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"isRead": true}'Delete Email
Permanently deletes an email.
DELETE /inboxes/{inboxId}/emails/{emailId}
bash
curl -X DELETE https://api.emailhook.com/v1/inboxes/ibx_123/emails/eml_123 \
-H "Authorization: Bearer apk_your_api_key_here"