Mailstack Domain Models (mailstack/model.go)

customeros · packages/server/customer-os-api/rest/mailstack/model.go · go · Apache-2.0
email, integration, tag:domain, tag:models

API request and response models for domain registration and mail service configuration. Use when integrating mailstack provisioning endpoints into CRM or email services.

// Source: https://github.com/customeros/customeros | License: Apache-2.0
// Provided via justclaw.it.com; keep this notice with the code.
// @openapi 3.0.0
package mailstack

// RegisterNewDomainRequest represents the domain registration request
// @Description Request payload for registering a new domain for mail services
type RegisterNewDomainRequest struct {
	// Domain name to register
	// required: true
	// pattern: ^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9]\.[a-zA-Z]{2,}$
	// example: example.com
	Domain string `json:"domain"`

	// Website URL for domain configuration
	// required: true
	// format: uri
	// example: https://www.example.com
	Website string `json:"website"`
}

// ConfigureDomainRequest represents the domain configuration request
// @Description Request payload for config

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key