# mailslurp.api.SentEmailsControllerApi

# Load the API package

import 'package:mailslurp/api.dart';

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

SentEmailDto getSentEmail(id)

Get sent email receipt

# Example

import 'package:mailslurp/api.dart';
// TODO Configure API key authorization: API_KEY
//defaultApiClient.getAuthentication<ApiKeyAuth>('API_KEY').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('API_KEY').apiKeyPrefix = 'Bearer';
var api_instance = SentEmailsControllerApi();
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | id
try { 
    var result = api_instance.getSentEmail(id);
    print(result);
} catch (e) {
    print("Exception when calling SentEmailsControllerApi->getSentEmail: $e\n");
}

# Parameters

Name Type Description Notes
id String id [default to null]

# 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

PageSentEmailProjection getSentEmails(inboxId, page, size, sort)

Get all sent emails in paginated form

# Example

import 'package:mailslurp/api.dart';
// TODO Configure API key authorization: API_KEY
//defaultApiClient.getAuthentication<ApiKeyAuth>('API_KEY').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('API_KEY').apiKeyPrefix = 'Bearer';
var api_instance = SentEmailsControllerApi();
var inboxId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | Optional inboxId to filter sender of sent emails by
var page = 56; // int | Optional page index in inbox sent email list pagination
var size = 56; // int | Optional page size in inbox sent email list pagination
var sort = sort_example; // String | Optional createdAt sort direction ASC or DESC
try { 
    var result = api_instance.getSentEmails(inboxId, page, size, sort);
    print(result);
} catch (e) {
    print("Exception when calling SentEmailsControllerApi->getSentEmails: $e\n");
}

# Parameters

Name Type Description Notes
inboxId String Optional inboxId to filter sender of sent emails by [optional] [default to null]
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]