All URIs are relative to https://api.mailslurp.com
Method | HTTP request | Description |
---|---|---|
CreateDomain | Post /domains | Create Domain |
DeleteDomain | Delete /domains/{id} | Delete a domain |
GetDomain | Get /domains/{id} | Get a domain |
GetDomains | Get /domains | Get domains |
DomainDto CreateDomain(ctx, domainOptions)
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.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
domainOptions | CreateDomainOptions | domainOptions |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteDomain(ctx, id)
Delete a domain
Delete a domain. This will disable any existing inboxes that use this domain.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | id |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DomainDto GetDomain(ctx, id)
Get a domain
Returns domain verification status and tokens for a given domain
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | id |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]DomainPreview GetDomains(ctx, )
Get domains
List all custom domains you have created
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]