ThreadResource

Provides operations for managing email threads: list, get, delete, and retrieve attachments.

Functions

Link copied to clipboard
suspend fun delete(threadId: String, block: DeleteThreadBuilder.() -> Unit = {})

Deletes a thread by ID with optional permanent deletion.

Link copied to clipboard
suspend fun get(threadId: String): Thread

Retrieves a thread by ID.

Link copied to clipboard
suspend fun getAttachment(threadId: String, attachmentId: String): AttachmentData

Retrieves a thread attachment's binary data.

Link copied to clipboard
suspend fun list(block: ListThreadsBuilder.() -> Unit = {}): ThreadList

Lists threads with optional pagination and filtering.