# SentEmailsControllerAPI

All URIs are relative to https://api.mailslurp.com

Method HTTP request Description
getSentEmail GET /sent/{id} Get sent email receipt
getSentEmails GET /sent Get all sent emails in paginated form

# getSentEmail

    open class func getSentEmail(_id: UUID, completion: @escaping (_ data: SentEmailDto?, _ error: Error?) -> Void)

Get sent email receipt

# Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import mailslurp
let _id = 987 // UUID | id
// Get sent email receipt
SentEmailsControllerAPI.getSentEmail(_id: _id) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }
    if (response) {
        dump(response)
    }
}

# Parameters

Name Type Description Notes
_id UUID id

# Return type

SentEmailDto

# Authorization

API_KEY

# HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

# getSentEmails

    open class func getSentEmails(inboxId: UUID? = nil, page: Int? = nil, size: Int? = nil, sort: Sort_getSentEmails? = nil, completion: @escaping (_ data: PageSentEmailProjection?, _ error: Error?) -> Void)

Get all sent emails in paginated form

# Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import mailslurp
let inboxId = 987 // UUID | Optional inboxId to filter sender of sent emails by (optional)
let page = 987 // Int | Optional page index in inbox sent email list pagination (optional) (default to 0)
let size = 987 // Int | Optional page size in inbox sent email list pagination (optional) (default to 20)
let sort = "sort_example" // String | Optional createdAt sort direction ASC or DESC (optional) (default to .asc)
// Get all sent emails in paginated form
SentEmailsControllerAPI.getSentEmails(inboxId: inboxId, page: page, size: size, sort: sort) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }
    if (response) {
        dump(response)
    }
}

# Parameters

Name Type Description Notes
inboxId UUID Optional inboxId to filter sender of sent emails by [optional]
page Int Optional page index in inbox sent email list pagination [optional] [default to 0]
size Int Optional page size in inbox sent email list pagination [optional] [default to 20]
sort String Optional createdAt sort direction ASC or DESC [optional] [default to .asc]

# Return type

PageSentEmailProjection

# Authorization

API_KEY

# HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]