Interface InboundInboxes

All Known Implementing Classes:
InboundInboxesImpl

public interface InboundInboxes
Interface representing the Mailtrap Inbound Email API for managing inboxes within a folder.
  • Method Details

    • getList

      List<InboundInbox> getList(long folderId)
      List all inboxes in an inbound folder.
      Parameters:
      folderId - the folder ID
      Returns:
      the list of inboxes
    • getById

      InboundInbox getById(long folderId, long inboxId)
      Get an inbound inbox by ID.
      Parameters:
      folderId - the folder ID
      inboxId - the inbox ID
      Returns:
      the inbox
    • create

      InboundInbox create(long folderId, CreateInboundInboxRequest request)
      Create a new inbound inbox in a folder.
      Parameters:
      folderId - the folder ID
      request - the create request
      Returns:
      the created inbox
    • update

      InboundInbox update(long folderId, long inboxId, UpdateInboundInboxRequest request)
      Rename an inbound inbox.
      Parameters:
      folderId - the folder ID
      inboxId - the inbox ID
      request - the update request
      Returns:
      the updated inbox
    • delete

      void delete(long folderId, long inboxId)
      Delete an inbound inbox.
      Parameters:
      folderId - the folder ID
      inboxId - the inbox ID