MailSlurpAPI.Api.DomainController (mailslurp v13.0.1)

API calls for all endpoints tagged DomainController.

Link to this section Summary

Functions

Add catch all wild card inbox to domain Add a catch all inbox to a domain so that any emails sent to it that cannot be matched will be sent to the catch all inbox generated

Create Domain Link a domain that you own with MailSlurp so you can create email addresses using it. Endpoint returns DNS records used for validation. You must add these verification records to your host provider's DNS setup to verify the domain.

Delete a domain Delete a domain. This will disable any existing inboxes that use this domain.

Get a domain Returns domain verification status and tokens for a given domain

Get domains List all custom domains you have created

Update a domain Update values on a domain. Note you cannot change the domain name as it is immutable. Recreate the domain if you need to alter this.

Link to this section Functions

Link to this function

add_domain_wildcard_catch_all(connection, id, opts \\ [])

Specs

add_domain_wildcard_catch_all(Tesla.Env.client(), String.t(), keyword()) ::
  {:ok, MailSlurpAPI.Model.DomainDto.t()} | {:error, Tesla.Env.t()}

Add catch all wild card inbox to domain Add a catch all inbox to a domain so that any emails sent to it that cannot be matched will be sent to the catch all inbox generated

Parameters

  • connection (MailSlurpAPI.Connection): Connection to server
  • id (String.t): id
  • opts (KeywordList): [optional] Optional parameters

    Returns

} on success {:error, info} on failure

Link to this function

create_domain(connection, domain_options, opts \\ [])

Specs

Create Domain Link a domain that you own with MailSlurp so you can create email addresses using it. Endpoint returns DNS records used for validation. You must add these verification records to your host provider's DNS setup to verify the domain.

Parameters

  • connection (MailSlurpAPI.Connection): Connection to server
  • domain_options (CreateDomainOptions): domainOptions
  • opts (KeywordList): [optional] Optional parameters

    Returns

} on success {:error, info} on failure

Link to this function

delete_domain(connection, id, opts \\ [])

Specs

delete_domain(Tesla.Env.client(), String.t(), keyword()) ::
  {:ok, [String.t()]} | {:error, Tesla.Env.t()}

Delete a domain Delete a domain. This will disable any existing inboxes that use this domain.

Parameters

  • connection (MailSlurpAPI.Connection): Connection to server
  • id (String.t): id
  • opts (KeywordList): [optional] Optional parameters

    Returns

, ...]} on success {:error, info} on failure

Link to this function

get_domain(connection, id, opts \\ [])

Specs

get_domain(Tesla.Env.client(), String.t(), keyword()) ::
  {:ok, MailSlurpAPI.Model.DomainDto.t()} | {:error, Tesla.Env.t()}

Get a domain Returns domain verification status and tokens for a given domain

Parameters

  • connection (MailSlurpAPI.Connection): Connection to server
  • id (String.t): id
  • opts (KeywordList): [optional] Optional parameters

    Returns

} on success {:error, info} on failure

Link to this function

get_domains(connection, opts \\ [])

Specs

get_domains(Tesla.Env.client(), keyword()) ::
  {:ok, [MailSlurpAPI.Model.DomainPreview.t()]} | {:error, Tesla.Env.t()}

Get domains List all custom domains you have created

Parameters

  • connection (MailSlurpAPI.Connection): Connection to server
  • opts (KeywordList): [optional] Optional parameters

    Returns

, ...]} on success {:error, info} on failure

Link to this function

update_domain(connection, id, update_domain_dto, opts \\ [])

Specs

Update a domain Update values on a domain. Note you cannot change the domain name as it is immutable. Recreate the domain if you need to alter this.

Parameters

  • connection (MailSlurpAPI.Connection): Connection to server
  • id (String.t): id
  • update_domain_dto (UpdateDomainOptions): updateDomainDto
  • opts (KeywordList): [optional] Optional parameters

    Returns

} on success {:error, info} on failure