List emails
Changed onList emails in a canonical folder or virtual view. Defaults to Inbox. Folder location is independent from message direction and spam verdict.
Authentication mail (OTPs / verification codes, password resets, magic links) is tagged security: "auth". Tokens without the email:auth_secrets scope see those messages with subject and body REDACTED (redacted: true) - metadata (from, date) stays visible. The subject, q and attachments filters match what the caller may read: without the scope such a message matches only on its redacted subject and body, so a query for a code it holds finds nothing.
Request
- Base URL: https://domani.run
- URL: https://domani.run/api/emails/{address}/messages
- Auth: HTTP bearer
Path parameters
Mailbox email address (URL-encoded)
Query parameters
Pagination cursor from previous response
Max messages to return
Filter by direction (default: all)
System folder. Mutually exclusive with view. Defaults to inbox.
Comma-separated labels: only messages carrying any of them
Virtual view. Mutually exclusive with folder.
ISO timestamp - return only messages created after this date
ISO timestamp - return only messages created before this date
Filter by sender address
Filter by recipient address
Filter by subject
Broad case-insensitive search across sender, recipients, subject, and plain-text body
Return unread messages only
Return messages that contain attachments only
Filter by spam flag (pass false to hide spam-flagged inbound)
Response
Message list
Changes
- info
added the new enum value
scheduledto thequeryrequest parameterview
- info