Interface InboundThreads

All Known Implementing Classes:
InboundThreadsImpl

public interface InboundThreads
Interface representing the Mailtrap Inbound Email API for conversation threads.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(long inboxId, String threadId)
    Delete a thread.
    get(long inboxId, String threadId)
    Get a single thread with its messages embedded (oldest first).
    list(long inboxId, String lastId)
    List conversation threads in an inbox.
  • Method Details

    • list

      InboundThreadsListResponse list(long inboxId, String lastId)
      List conversation threads in an inbox.
      Parameters:
      inboxId - the inbox ID
      lastId - pagination cursor from a previous response (null for the first page)
      Returns:
      a page of threads
    • get

      InboundThread get(long inboxId, String threadId)
      Get a single thread with its messages embedded (oldest first).
      Parameters:
      inboxId - the inbox ID
      threadId - the thread ID
      Returns:
      the thread
    • delete

      void delete(long inboxId, String threadId)
      Delete a thread.
      Parameters:
      inboxId - the inbox ID
      threadId - the thread ID