Package io.mailtrap.api.inboxes
Interface Inboxes
- All Known Implementing Classes:
InboxesImpl
public interface Inboxes
Interface representing the Mailtrap Testing API for interaction with inboxes
-
Method Summary
Modifier and TypeMethodDescriptioncleanInbox
(long accountId, long inboxId) Delete all messages (emails) from inboxcreateInbox
(long accountId, long projectId, CreateInboxRequest request) Create an inbox in a projectdeleteInbox
(long accountId, long inboxId) Delete an inbox with all its emailsenableEmailAddress
(long accountId, long inboxId) Turn the email address of the inbox on/offgetInboxAttributes
(long accountId, long inboxId) Get inbox attributes by inbox IDgetInboxes
(long accountId) Get a list of inboxesmarkAsRead
(long accountId, long inboxId) Mark all messages in the inbox as readresetCredentials
(long accountId, long inboxId) Reset SMTP credentials of the inboxresetEmailAddresses
(long accountId, long inboxId) Reset username of email address per inboxupdateInbox
(long accountId, long inboxId, UpdateInboxRequest request) Update inbox name, inbox email username
-
Method Details
-
createInbox
Create an inbox in a project- Parameters:
accountId
- unique account IDprojectId
- unique project IDrequest
- inbox request data- Returns:
- the newly created inbox with its attributes
-
getInboxAttributes
Get inbox attributes by inbox ID- Parameters:
accountId
- unique account IDinboxId
- unique inbox ID- Returns:
- the attributes of the inbox
-
deleteInbox
Delete an inbox with all its emails- Parameters:
accountId
- unique account IDinboxId
- unique inbox ID- Returns:
- the attributes of the deleted inbox
-
updateInbox
Update inbox name, inbox email username- Parameters:
accountId
- unique account IDinboxId
- unique inbox IDrequest
- request data- Returns:
- the attributes of the updated inbox
-
cleanInbox
Delete all messages (emails) from inbox- Parameters:
accountId
- unique account IDinboxId
- unique inbox ID- Returns:
- the attributes of the inbox. permissions returns the permissions of the token for the inbox.
-
markAsRead
Mark all messages in the inbox as read- Parameters:
accountId
- unique account IDinboxId
- unique inbox ID- Returns:
- the attributes of the inbox. permissions returns the permissions of the token for the inbox
-
resetCredentials
Reset SMTP credentials of the inbox- Parameters:
accountId
- unique account IDinboxId
- unique inbox ID- Returns:
- the attributes of the inbox. permissions returns the permissions of the token for the inbox
-
enableEmailAddress
Turn the email address of the inbox on/off- Parameters:
accountId
- unique account IDinboxId
- unique inbox ID- Returns:
- the attributes of the inbox. permissions returns the permissions of the token for the inbox
-
resetEmailAddresses
Reset username of email address per inbox- Parameters:
accountId
- unique account IDinboxId
- unique inbox ID- Returns:
- the attributes of the inbox. permissions returns the permissions of the token for the inbox
-
getInboxes
Get a list of inboxes- Parameters:
accountId
- unique account ID- Returns:
- the list of inboxes in the account to which the API token has access. permissions returns the permissions of the token for the inbox
-