# MailSlurp\CommonActionsControllerApi

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

Method HTTP request Description
CreateNewEmailAddress Post /createInbox Create new random inbox
CreateNewEmailAddress1 Post /newEmailAddress Create new random inbox
EmptyInbox Delete /emptyInbox Delete all emails in an inbox
SendEmailSimple Post /sendEmail Send an email

# CreateNewEmailAddress

Inbox CreateNewEmailAddress(ctx, )

Create new random inbox

Returns an Inbox with an id and an emailAddress

# Required Parameters

This endpoint does not need any parameter.

# Return type

Inbox

# 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]

# CreateNewEmailAddress1

Inbox CreateNewEmailAddress1(ctx, )

Create new random inbox

Returns an Inbox with an id and an emailAddress

# Required Parameters

This endpoint does not need any parameter.

# Return type

Inbox

# 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]

# EmptyInbox

EmptyInbox(ctx, inboxId)

Delete all emails in an inbox

Deletes all emails

# Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
inboxId string inboxId

# Return type

(empty response body)

# Authorization

API_KEY

# HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

# SendEmailSimple

SendEmailSimple(ctx, emailOptions)

Send an email

If no senderId or inboxId provided a random email address will be used to send from.

# Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
emailOptions SimpleSendEmailOptions emailOptions

# Return type

(empty response body)

# Authorization

API_KEY

# HTTP request headers

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

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