Marketing mail types
BETA. Part of the E-mailmarketing module, which only works for organizations that were given access to the beta and switched the module on. Do not use these endpoints on your own initiative; only when the user explicitly asks for it. A mail type says what a marketing mail is about; recipients unsubscribe per type. The one system type (is_system) is for mail about running the business: nobody can unsubscribe from it and it cannot be deleted.
List mail types
Returns every mail type, the system type first.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List mail types › Responses
Array of MarketingMailTypeResource
idnamedescriptionis_systemThe type for mail about running the business: nobody can unsubscribe from it and it cannot be deleted.
created_atupdated_atCreate a mail type
Recipients can always unsubscribe from a new mail type.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Create a mail type › Request Body
nameShown to recipients on the unsubscribe page.
descriptionShown below the name on the unsubscribe page.
Create a mail type › Responses
MarketingMailTypeResource
idnamedescriptionis_systemThe type for mail about running the business: nobody can unsubscribe from it and it cannot be deleted.
created_atupdated_atGet a mail type
path Parameters
marketingMailTypeThe marketing mail type UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Get a mail type › Responses
MarketingMailTypeResource
idnamedescriptionis_systemThe type for mail about running the business: nobody can unsubscribe from it and it cannot be deleted.
created_atupdated_atUpdate a mail type
Only the fields present in the request change.
path Parameters
marketingMailTypeThe marketing mail type UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Update a mail type › Responses
MarketingMailTypeResource
idnamedescriptionis_systemThe type for mail about running the business: nobody can unsubscribe from it and it cannot be deleted.
created_atupdated_atDelete a mail type
Refused for the system type and for a type that a mailing uses. The unsubscribes from the type go with it.
path Parameters
marketingMailTypeThe marketing mail type UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Delete a mail type › Responses
MarketingMailTypeResource
idnamedescriptionis_systemThe type for mail about running the business: nobody can unsubscribe from it and it cannot be deleted.
created_atupdated_at