CommonActionsControllerApi

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

MethodHTTP requestDescription
create_new_email_addresspost /createInboxCreate new random inbox
create_new_email_address1post /newEmailAddressCreate new random inbox
empty_inboxdelete /emptyInboxDelete all emails in an inbox
send_email_simplepost /sendEmailSend an email

create_new_email_address

crate::models::Inbox create_new_email_address(allow_team_access, expires_at, expires_in, use_domain_pool) Create new random inbox

Returns an Inbox with an id and an emailAddress

Parameters

NameTypeDescriptionRequiredNotes
allow_team_accessOption<bool>allowTeamAccess
expires_atOption<String>expiresAt
expires_inOption<i64>expiresIn
use_domain_poolOption<bool>useDomainPool

Return type

crate::models::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 ]

create_new_email_address1

crate::models::Inbox create_new_email_address1(allow_team_access, expires_at, expires_in, use_domain_pool) Create new random inbox

Returns an Inbox with an id and an emailAddress

Parameters

NameTypeDescriptionRequiredNotes
allow_team_accessOption<bool>allowTeamAccess
expires_atOption<String>expiresAt
expires_inOption<i64>expiresIn
use_domain_poolOption<bool>useDomainPool

Return type

crate::models::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 ]

empty_inbox

empty_inbox(inbox_id) Delete all emails in an inbox

Deletes all emails

Parameters

NameTypeDescriptionRequiredNotes
inbox_idStringinboxId[required]

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 ]

send_email_simple

send_email_simple(email_options) Send an email

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

Parameters

NameTypeDescriptionRequiredNotes
email_optionsSimpleSendEmailOptionsemailOptions[required]

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 ]