cURL
curl --request GET \ --url http://localhost:3001/api/v1/mail/{folder} \ --cookie nut-session=
{ "success": true, "data": { "messages": [ { "id": "<string>", "emailId": "<string>", "from": "Acme <hello@acme.com>", "to": [ "<string>" ], "subject": "<string>", "folder": "inbox", "cc": [ "<string>" ], "bcc": [ "<string>" ], "messageId": "<string>", "attachments": [ { "id": "<string>", "filename": "<string>", "contentType": "<string>", "contentDisposition": "<string>", "contentId": "<string>" } ], "receivedAt": "2023-11-07T05:31:56Z", "content": "<string>" } ] } }
Retrieve all emails in a specific folder (inbox, read, sent)
Session cookie authentication
Mail folder Mail folder name
inbox
read
sent
List of emails
Show child attributes