# 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(expiresAt, expiresIn, useDomainPool)
Create new random inbox
Returns an Inbox with an `id` and an `emailAddress`
# Parameters
Name | Type | Description | Notes |
---|---|---|---|
expiresAt | Date | expiresAt | [optional] [default to null] |
expiresIn | Long | expiresIn | [optional] [default to null] |
useDomainPool | Boolean | useDomainPool | [optional] [default to null] |
# Return type
# Authorization
# HTTP request headers
- Content-Type: Not defined
- Accept: application/json
# createNewEmailAddress1
Inbox createNewEmailAddress1(expiresAt, expiresIn, useDomainPool)
Create new random inbox
Returns an Inbox with an `id` and an `emailAddress`
# Parameters
Name | Type | Description | Notes |
---|---|---|---|
expiresAt | Date | expiresAt | [optional] [default to null] |
expiresIn | Long | expiresIn | [optional] [default to null] |
useDomainPool | Boolean | useDomainPool | [optional] [default to null] |
# Return type
# Authorization
# HTTP request headers
- Content-Type: Not defined
- Accept: application/json
# emptyInbox
emptyInbox(inboxId)
Delete all emails in an inbox
Deletes all emails
# Parameters
Name | Type | Description | Notes |
---|---|---|---|
inboxId | UUID | inboxId | [default to null] |
# Return type
null (empty response body)
# Authorization
# HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
# sendEmailSimple
sendEmailSimple(emailOptions)
Send an email
If no senderId or inboxId provided a random email address will be used to send from.
# Parameters
Name | Type | Description | Notes |
---|---|---|---|
emailOptions | SimpleSendEmailOptions | emailOptions |
# Return type
null (empty response body)
# Authorization
# HTTP request headers
- Content-Type: application/json
- Accept: Not defined