curl -X GET "https://api.jasni.ai/api/v1/emails/[email protected]&folder=INBOX" \ -H "Authorization: Bearer jsk_your_api_key"
{ "success": true, "data": { "email": { "uid": 12345, "messageId": "<[email protected]>", "from": "[email protected]", "to": ["[email protected]"], "cc": ["[email protected]"], "subject": "Project Update", "date": "2024-01-15T10:30:00Z", "text": "Hi,\n\nHere's the latest update on the project...", "html": "<html><body><p>Hi,</p><p>Here's the latest update on the project...</p></body></html>", "attachments": [ { "filename": "report.pdf", "contentType": "application/pdf", "size": 102400 } ], "flags": ["\\Seen"] } } }
Retrieve a specific email by its UID
Show properties
id
account
text
html