WaitForController
Fetch inbox's latest email or if empty wait for an email to arrive
Will return either the last received email or wait for an email to arrive and return that. If you need to wait for an email for a non-empty inbox set unreadOnly=true or see the other receive methods such as waitForNthEmail or waitForEmailCount.
get/waitForLatestEmail
Request
- Base URL: https://api.mailslurp.com
- URL: https://api.mailslurp.com/waitForLatestEmail
- Auth: API key in header x-api-key
Query parameters
inboxIdstring uuid
Id of the inbox we are fetching emails from
timeoutinteger
Max milliseconds to wait
unreadOnlyboolean
Optional filter for unread only.
beforestring date-time
Filter for emails that were before after the given timestamp
sincestring date-time
Filter for emails that were received after the given timestamp
sort'ASC' | 'DESC'
Sort direction
delayinteger
Max milliseconds delay between calls
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.