# Class: DomainControllerApi

DomainControllerApi - object-oriented interface

export

class DomainControllerApi

extends {BaseAPI}

# Hierarchy

# Constructors

# constructor

+ new DomainControllerApi(configuration?: Configuration, basePath: string, fetch: FetchAPI): DomainControllerApi

Inherited from BaseAPI.constructor

Defined in src/generated/api.ts:57 (opens new window)

Parameters:

Name Type Default
configuration? Configuration -
basePath string BASE_PATH
fetch FetchAPI portableFetch

Returns: DomainControllerApi

# Properties

# Protected basePath

basePath: string

Inherited from BaseAPI.basePath

Defined in src/generated/api.ts:61 (opens new window)


# Protected configuration

configuration: Configuration

Inherited from BaseAPI.configuration

Defined in src/generated/api.ts:57 (opens new window)


# Protected fetch

fetch: FetchAPI

Inherited from BaseAPI.fetch

Defined in src/generated/api.ts:62 (opens new window)

# Methods

# createDomain

createDomain(domainOptions: CreateDomainOptions, options?: any): Promise‹DomainDto

Defined in src/generated/api.ts:5720 (opens new window)

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.

summary Create Domain

throws {RequiredError}

memberof DomainControllerApi

Parameters:

Name Type Description
domainOptions CreateDomainOptions domainOptions
options? any -

Returns: Promise‹DomainDto


# deleteDomain

deleteDomain(id: string, options?: any): Promise‹Response›

Defined in src/generated/api.ts:5735 (opens new window)

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

summary Delete a domain

throws {RequiredError}

memberof DomainControllerApi

Parameters:

Name Type Description
id string id
options? any -

Returns: Promise‹Response›


# getDomain

getDomain(id: string, options?: any): Promise‹DomainDto

Defined in src/generated/api.ts:5750 (opens new window)

Returns domain verification status and tokens for a given domain

summary Get a domain

throws {RequiredError}

memberof DomainControllerApi

Parameters:

Name Type Description
id string id
options? any -

Returns: Promise‹DomainDto


# getDomains

getDomains(options?: any): Promise‹DomainPreview[]›

Defined in src/generated/api.ts:5764 (opens new window)

List all custom domains you have created

summary Get domains

throws {RequiredError}

memberof DomainControllerApi

Parameters:

Name Type
options? any

Returns: Promise‹DomainPreview[]›