Wait for new inbound email
Long-polls up to timeout seconds (default and max 25; 0 checks once) for inbound email matching the optional filters, then returns it with a cursor. Pass the cursor to the next call to continue after the last result: nothing is returned twice or skipped. Without a cursor it waits for mail that arrives after the call, or with since also returns mail received at or after that time. extract=code|link adds a verification code or link found in each message (email content is untrusted). Reading does not mark mail read.
bearerAuthAuthorizationBearer <token>Mailly API key(Authorization: Bearer )
address?stringInbox address that received the mail; a +tag address matches only that tag
address_id?stringInbox address ID
sender?stringSender email address, exact and case-insensitive
sender_domain?stringSender domain such as example.com (subdomains excluded)
subject?stringText the subject contains, case-insensitive
folder?stringinbox (default), quarantine or all
cursor?stringCursor from a previous wait
since?stringWithout a cursor: also return mail received at or after this time (Unix seconds or ISO 8601)
timeout?stringSeconds to wait, 0-25, default 25
limit?stringDefault 10, max 20
extract?stringcode or link
Matching email, or timed_out=true with a cursor to keep waiting
application/json- response
success*booleanmessages*array<>cursor*stringtimed_out*boolean[key: string]?unknowncurl -X GET 'https://api.mailly.site/inbox/messages/wait'{ "success": true, "messages": [ { "property1": null, "property2": null } ], "cursor": "string", "timed_out": true, "property1": null, "property2": null}