Clienvy API documentation

Website mailbox domain


List mailbox domains

GET
https://api.clienvy.io/employee/v1
/websites/{website}/mailboxes/domains

Returns all mailbox domains configured for the website.

List mailbox domains › path Parameters

website
​string · uuid · required

The website UUID

List mailbox domains › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

List mailbox domains › Responses

Array of WebsiteMailboxDomainResource

id
​string · uuid
full_domain
​string
subdomain
​string | null
​IntegrationInstanceListResource | null
status
​WebsiteMailboxDomainStatus · enum
Enum values:
ownership-not-verified
active
deletion-scheduled
deleting
is_suspended
​boolean

whether its mailboxes are stopped from sending and receiving mail, whatever the status

deletion_scheduled_for
​string | null · date

the date the domain is deleted on, while its status is deletion-scheduled or deleting

external_id
​string | null
external_name
​string | null
​array
dns_verified
​boolean
​array
catch_all_type
​WebsiteMailboxCatchAllType · enum
Enum values:
fail
blackhole
address
catch_all_target
​string | null
updated_at
​string · date-time
created_at
​string · date-time

Create a mailbox domain

POST
https://api.clienvy.io/employee/v1
/websites/{website}/mailboxes/domains

Adds a mailbox domain to the website. When an integration instance is given, the domain is created at the mail provider and starts in the ownership-not-verified state. Otherwise the domain is registered as external. In the ownership-not-verified state, add the records in ownership_records to the DNS and then call the 'Apply ownership DNS' or 'Verify domain ownership' endpoint.

Create a mailbox domain › path Parameters

website
​string · uuid · required

The website UUID

Create a mailbox domain › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Create a mailbox domain › Request Body

domain_id
​string · uuid · required

UUID of the domain to host the mailboxes on.

subdomain
​string | null · maxLength: 64
external_name
​string | null · maxLength: 64
integration_instance_id
​string · uuid

UUID of the mail provider integration. Omit to add an external (unmanaged) domain.

Create a mailbox domain › Responses

WebsiteMailboxDomainResource

id
​string · uuid
full_domain
​string
subdomain
​string | null
​IntegrationInstanceListResource | null
status
​WebsiteMailboxDomainStatus · enum
Enum values:
ownership-not-verified
active
deletion-scheduled
deleting
is_suspended
​boolean

whether its mailboxes are stopped from sending and receiving mail, whatever the status

deletion_scheduled_for
​string | null · date

the date the domain is deleted on, while its status is deletion-scheduled or deleting

external_id
​string | null
external_name
​string | null
​array
dns_verified
​boolean
​array
catch_all_type
​WebsiteMailboxCatchAllType · enum
Enum values:
fail
blackhole
address
catch_all_target
​string | null
updated_at
​string · date-time
created_at
​string · date-time

Get a mailbox domain

GET
https://api.clienvy.io/employee/v1
/websites/{website}/mailboxes/domains/{websiteMailboxDomain}

Returns a single mailbox domain, including its accounts and forwards.

Get a mailbox domain › path Parameters

website
​string · uuid · required

The website UUID

websiteMailboxDomain
​string · uuid · required

The website mailbox domain UUID

Get a mailbox domain › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Get a mailbox domain › Responses

WebsiteMailboxDomainResource

id
​string · uuid
full_domain
​string
subdomain
​string | null
​IntegrationInstanceListResource | null
status
​WebsiteMailboxDomainStatus · enum
Enum values:
ownership-not-verified
active
deletion-scheduled
deleting
is_suspended
​boolean

whether its mailboxes are stopped from sending and receiving mail, whatever the status

deletion_scheduled_for
​string | null · date

the date the domain is deleted on, while its status is deletion-scheduled or deleting

external_id
​string | null
external_name
​string | null
​array
dns_verified
​boolean
​array
catch_all_type
​WebsiteMailboxCatchAllType · enum
Enum values:
fail
blackhole
address
catch_all_target
​string | null
updated_at
​string · date-time
created_at
​string · date-time

Delete a mailbox domain

POST
https://api.clienvy.io/employee/v1
/websites/{website}/mailboxes/domains/{websiteMailboxDomain}/delete

Deletes the managed mailbox domain. One whose ownership is not verified is deleted right away: it is only created at the provider once its ownership is verified, so there is nothing to delete there and no date is needed. A verified one is deleted on deletion_scheduled_for, at the provider together with its mailboxes, forwards and backups. If that date is today the deletion starts right away. Until the day comes the domain keeps working as before: its mailboxes, forwards, catch-all and backups can still be managed, and it can be suspended or activated. While the deletion runs the status is deleting and nothing about the domain can be changed.

Delete a mailbox domain › path Parameters

website
​string · uuid · required

The website UUID

websiteMailboxDomain
​string · uuid · required

The website mailbox domain UUID

Delete a mailbox domain › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Delete a mailbox domain › Request Body

deletion_scheduled_for
​string · date · required

The date to delete a verified domain on, today or later. Not needed for a domain whose ownership is not verified.

Delete a mailbox domain › Responses

WebsiteMailboxDomainResource

id
​string · uuid
full_domain
​string
subdomain
​string | null
​IntegrationInstanceListResource | null
status
​WebsiteMailboxDomainStatus · enum
Enum values:
ownership-not-verified
active
deletion-scheduled
deleting
is_suspended
​boolean

whether its mailboxes are stopped from sending and receiving mail, whatever the status

deletion_scheduled_for
​string | null · date

the date the domain is deleted on, while its status is deletion-scheduled or deleting

external_id
​string | null
external_name
​string | null
​array
dns_verified
​boolean
​array
catch_all_type
​WebsiteMailboxCatchAllType · enum
Enum values:
fail
blackhole
address
catch_all_target
​string | null
updated_at
​string · date-time
created_at
​string · date-time

Cancel scheduled deletion

POST
https://api.clienvy.io/employee/v1
/websites/{website}/mailboxes/domains/{websiteMailboxDomain}/undo-deletion

Cancels a scheduled deletion and returns the domain to the status active. This endpoint requires the status deletion-scheduled: a deletion that is already running cannot be undone.

Cancel scheduled deletion › path Parameters

website
​string · uuid · required

The website UUID

websiteMailboxDomain
​string · uuid · required

The website mailbox domain UUID

Cancel scheduled deletion › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Cancel scheduled deletion › Responses

WebsiteMailboxDomainResource

id
​string · uuid
full_domain
​string
subdomain
​string | null
​IntegrationInstanceListResource | null
status
​WebsiteMailboxDomainStatus · enum
Enum values:
ownership-not-verified
active
deletion-scheduled
deleting
is_suspended
​boolean

whether its mailboxes are stopped from sending and receiving mail, whatever the status

deletion_scheduled_for
​string | null · date

the date the domain is deleted on, while its status is deletion-scheduled or deleting

external_id
​string | null
external_name
​string | null
​array
dns_verified
​boolean
​array
catch_all_type
​WebsiteMailboxCatchAllType · enum
Enum values:
fail
blackhole
address
catch_all_target
​string | null
updated_at
​string · date-time
created_at
​string · date-time

Verify domain ownership

POST
https://api.clienvy.io/employee/v1
/websites/{website}/mailboxes/domains/{websiteMailboxDomain}/verify-ownership

Checks the ownership DNS records at the provider and activates the domain once ownership is confirmed. This endpoint requires the status ownership-not-verified.

Verify domain ownership › path Parameters

website
​string · uuid · required

The website UUID

websiteMailboxDomain
​string · uuid · required

The website mailbox domain UUID

Verify domain ownership › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Verify domain ownership › Responses

WebsiteMailboxDomainResource

id
​string · uuid
full_domain
​string
subdomain
​string | null
​IntegrationInstanceListResource | null
status
​WebsiteMailboxDomainStatus · enum
Enum values:
ownership-not-verified
active
deletion-scheduled
deleting
is_suspended
​boolean

whether its mailboxes are stopped from sending and receiving mail, whatever the status

deletion_scheduled_for
​string | null · date

the date the domain is deleted on, while its status is deletion-scheduled or deleting

external_id
​string | null
external_name
​string | null
​array
dns_verified
​boolean
​array
catch_all_type
​WebsiteMailboxCatchAllType · enum
Enum values:
fail
blackhole
address
catch_all_target
​string | null
updated_at
​string · date-time
created_at
​string · date-time

Apply ownership DNS

POST
https://api.clienvy.io/employee/v1
/websites/{website}/mailboxes/domains/{websiteMailboxDomain}/apply-ownership-dns

Adds the ownership_records DNS record to the domain when its DNS is managed by Clienvy. Also requires the domain.manage-dns permission.

Apply ownership DNS › path Parameters

website
​string · uuid · required

The website UUID

websiteMailboxDomain
​string · uuid · required

The website mailbox domain UUID

Apply ownership DNS › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Apply ownership DNS › Responses

WebsiteMailboxDomainResource

id
​string · uuid
full_domain
​string
subdomain
​string | null
​IntegrationInstanceListResource | null
status
​WebsiteMailboxDomainStatus · enum
Enum values:
ownership-not-verified
active
deletion-scheduled
deleting
is_suspended
​boolean

whether its mailboxes are stopped from sending and receiving mail, whatever the status

deletion_scheduled_for
​string | null · date

the date the domain is deleted on, while its status is deletion-scheduled or deleting

external_id
​string | null
external_name
​string | null
​array
dns_verified
​boolean
​array
catch_all_type
​WebsiteMailboxCatchAllType · enum
Enum values:
fail
blackhole
address
catch_all_target
​string | null
updated_at
​string · date-time
created_at
​string · date-time

Update the catch-all

PUT
https://api.clienvy.io/employee/v1
/websites/{website}/mailboxes/domains/{websiteMailboxDomain}/catch-all

Configures how mail sent to unknown addresses on the domain is handled and applies the change at the provider.

Update the catch-all › path Parameters

website
​string · uuid · required

The website UUID

websiteMailboxDomain
​string · uuid · required

The website mailbox domain UUID

Update the catch-all › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Update the catch-all › Request Body

catch_all_type
​string · required

How unknown addresses are handled: fail, blackhole or address.

catch_all_target
​string · email · maxLength: 255

Destination email address. Required when catch_all_type is address.

Update the catch-all › Responses

WebsiteMailboxDomainResource

id
​string · uuid
full_domain
​string
subdomain
​string | null
​IntegrationInstanceListResource | null
status
​WebsiteMailboxDomainStatus · enum
Enum values:
ownership-not-verified
active
deletion-scheduled
deleting
is_suspended
​boolean

whether its mailboxes are stopped from sending and receiving mail, whatever the status

deletion_scheduled_for
​string | null · date

the date the domain is deleted on, while its status is deletion-scheduled or deleting

external_id
​string | null
external_name
​string | null
​array
dns_verified
​boolean
​array
catch_all_type
​WebsiteMailboxCatchAllType · enum
Enum values:
fail
blackhole
address
catch_all_target
​string | null
updated_at
​string · date-time
created_at
​string · date-time

Verify mail DNS

POST
https://api.clienvy.io/employee/v1
/websites/{website}/mailboxes/domains/{websiteMailboxDomain}/verify-dns

Checks the mail (MX, SPF, DKIM) DNS records for the domain and updates its verification state. This endpoint requires the status active.

Verify mail DNS › path Parameters

website
​string · uuid · required

The website UUID

websiteMailboxDomain
​string · uuid · required

The website mailbox domain UUID

Verify mail DNS › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Verify mail DNS › Responses

WebsiteMailboxDomainResource

id
​string · uuid
full_domain
​string
subdomain
​string | null
​IntegrationInstanceListResource | null
status
​WebsiteMailboxDomainStatus · enum
Enum values:
ownership-not-verified
active
deletion-scheduled
deleting
is_suspended
​boolean

whether its mailboxes are stopped from sending and receiving mail, whatever the status

deletion_scheduled_for
​string | null · date

the date the domain is deleted on, while its status is deletion-scheduled or deleting

external_id
​string | null
external_name
​string | null
​array
dns_verified
​boolean
​array
catch_all_type
​WebsiteMailboxCatchAllType · enum
Enum values:
fail
blackhole
address
catch_all_target
​string | null
updated_at
​string · date-time
created_at
​string · date-time

Apply mail DNS

POST
https://api.clienvy.io/employee/v1
/websites/{website}/mailboxes/domains/{websiteMailboxDomain}/apply-dns

Adds the required mail (MX, SPF, DKIM) DNS records from dns_records for the domain when its DNS is managed by Clienvy. Also requires the domain.manage-dns permission.

Apply mail DNS › path Parameters

website
​string · uuid · required

The website UUID

websiteMailboxDomain
​string · uuid · required

The website mailbox domain UUID

Apply mail DNS › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Apply mail DNS › Responses

WebsiteMailboxDomainResource

id
​string · uuid
full_domain
​string
subdomain
​string | null
​IntegrationInstanceListResource | null
status
​WebsiteMailboxDomainStatus · enum
Enum values:
ownership-not-verified
active
deletion-scheduled
deleting
is_suspended
​boolean

whether its mailboxes are stopped from sending and receiving mail, whatever the status

deletion_scheduled_for
​string | null · date

the date the domain is deleted on, while its status is deletion-scheduled or deleting

external_id
​string | null
external_name
​string | null
​array
dns_verified
​boolean
​array
catch_all_type
​WebsiteMailboxCatchAllType · enum
Enum values:
fail
blackhole
address
catch_all_target
​string | null
updated_at
​string · date-time
created_at
​string · date-time

Suspend a mailbox domain

POST
https://api.clienvy.io/employee/v1
/websites/{website}/mailboxes/domains/{websiteMailboxDomain}/suspend

Suspends the domain at the provider so its mailboxes can no longer send or receive mail. This sets is_suspended and leaves the status as it is, so it also works while a deletion is planned. Until it is activated, the domain, its accounts, forwards, backups and imports can only be read: only stopping a running import and deleting the domain still work.

Suspend a mailbox domain › path Parameters

website
​string · uuid · required

The website UUID

websiteMailboxDomain
​string · uuid · required

The website mailbox domain UUID

Suspend a mailbox domain › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Suspend a mailbox domain › Responses

WebsiteMailboxDomainResource

id
​string · uuid
full_domain
​string
subdomain
​string | null
​IntegrationInstanceListResource | null
status
​WebsiteMailboxDomainStatus · enum
Enum values:
ownership-not-verified
active
deletion-scheduled
deleting
is_suspended
​boolean

whether its mailboxes are stopped from sending and receiving mail, whatever the status

deletion_scheduled_for
​string | null · date

the date the domain is deleted on, while its status is deletion-scheduled or deleting

external_id
​string | null
external_name
​string | null
​array
dns_verified
​boolean
​array
catch_all_type
​WebsiteMailboxCatchAllType · enum
Enum values:
fail
blackhole
address
catch_all_target
​string | null
updated_at
​string · date-time
created_at
​string · date-time

Activate a mailbox domain

POST
https://api.clienvy.io/employee/v1
/websites/{website}/mailboxes/domains/{websiteMailboxDomain}/activate

Reactivates a suspended domain at the provider so its mailboxes can send and receive mail again.

Activate a mailbox domain › path Parameters

website
​string · uuid · required

The website UUID

websiteMailboxDomain
​string · uuid · required

The website mailbox domain UUID

Activate a mailbox domain › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Activate a mailbox domain › Responses

WebsiteMailboxDomainResource

id
​string · uuid
full_domain
​string
subdomain
​string | null
​IntegrationInstanceListResource | null
status
​WebsiteMailboxDomainStatus · enum
Enum values:
ownership-not-verified
active
deletion-scheduled
deleting
is_suspended
​boolean

whether its mailboxes are stopped from sending and receiving mail, whatever the status

deletion_scheduled_for
​string | null · date

the date the domain is deleted on, while its status is deletion-scheduled or deleting

external_id
​string | null
external_name
​string | null
​array
dns_verified
​boolean
​array
catch_all_type
​WebsiteMailboxCatchAllType · enum
Enum values:
fail
blackhole
address
catch_all_target
​string | null
updated_at
​string · date-time
created_at
​string · date-time

Update an external mailbox domain

PUT
https://api.clienvy.io/employee/v1
/websites/{website}/mailboxes/domains/{websiteMailboxDomain}/external

Updates the display name of an external (unmanaged) mailbox domain.

Update an external mailbox domain › path Parameters

website
​string · uuid · required

The website UUID

websiteMailboxDomain
​string · uuid · required

The website mailbox domain UUID

Update an external mailbox domain › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Update an external mailbox domain › Request Body

external_name
​string · maxLength: 64

Update an external mailbox domain › Responses

WebsiteMailboxDomainResource

id
​string · uuid
full_domain
​string
subdomain
​string | null
​IntegrationInstanceListResource | null
status
​WebsiteMailboxDomainStatus · enum
Enum values:
ownership-not-verified
active
deletion-scheduled
deleting
is_suspended
​boolean

whether its mailboxes are stopped from sending and receiving mail, whatever the status

deletion_scheduled_for
​string | null · date

the date the domain is deleted on, while its status is deletion-scheduled or deleting

external_id
​string | null
external_name
​string | null
​array
dns_verified
​boolean
​array
catch_all_type
​WebsiteMailboxCatchAllType · enum
Enum values:
fail
blackhole
address
catch_all_target
​string | null
updated_at
​string · date-time
created_at
​string · date-time

Delete an external mailbox domain

DELETE
https://api.clienvy.io/employee/v1
/websites/{website}/mailboxes/domains/{websiteMailboxDomain}/external

Removes an external (unmanaged) mailbox domain from the website.

Delete an external mailbox domain › path Parameters

website
​string · uuid · required

The website UUID

websiteMailboxDomain
​string · uuid · required

The website mailbox domain UUID

Delete an external mailbox domain › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Delete an external mailbox domain › Responses

WebsiteMailboxDomainResource

id
​string · uuid
full_domain
​string
subdomain
​string | null
​IntegrationInstanceListResource | null
status
​WebsiteMailboxDomainStatus · enum
Enum values:
ownership-not-verified
active
deletion-scheduled
deleting
is_suspended
​boolean

whether its mailboxes are stopped from sending and receiving mail, whatever the status

deletion_scheduled_for
​string | null · date

the date the domain is deleted on, while its status is deletion-scheduled or deleting

external_id
​string | null
external_name
​string | null
​array
dns_verified
​boolean
​array
catch_all_type
​WebsiteMailboxCatchAllType · enum
Enum values:
fail
blackhole
address
catch_all_target
​string | null
updated_at
​string · date-time
created_at
​string · date-time

List activities

GET
https://api.clienvy.io/employee/v1
/websites/{website}/mailboxes/domains/{website_mailbox_domain}/activities

Returns a paginated list of activities logged on the parent resource, newest first. Activities cover both system-generated events and manually logged remarks.

With include_related the list is the timeline of the resource: its own activities together with those of the records that belong to it, such as the domain names, applications and mailbox domains of a website. Each activity then names the record it belongs to in subject.

List activities › path Parameters

website
​string · uuid · required

The website UUID

website_mailbox_domain
​string · uuid · required

The website mailbox domain UUID

List activities › query Parameters

type
​string

Only return activities of this type (for example remark).

include_related
​boolean

Also return the activities of the records that belong to the resource, each naming its record in subject.

source
​string

With include_related: only return the activities of one record, as <type>:<id>, for example domain:<uuid>. The record has to be the resource itself or belong to it.

page
​integer

Page number of the paginated result set.

per_page
​integer

Number of items per page. Defaults to the endpoint's own page size; capped at 500.

List activities › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

List activities › Responses

Array of ActivityWithSubjectResource

Array of ActivityResource

​
​object

Log a remark

POST
https://api.clienvy.io/employee/v1
/websites/{website}/mailboxes/domains/{website_mailbox_domain}/activities

Logs a manual remark as an activity on the parent resource. The remark may contain basic HTML (p, br, b, strong, i, em, u, s, ul, ol, li, a, span). Other tags and attributes are stripped and line breaks become <br>. To mention an employee and notify them, add a span with a data-employee-id attribute holding the employee's UUID, for example <span data-employee-id="…">@Jan</span>. The answer names the record in subject, like the timeline does.

Log a remark › path Parameters

website
​string · uuid · required

The website UUID

website_mailbox_domain
​string · uuid · required

The website mailbox domain UUID

Log a remark › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Log a remark › Request Body

remark
​string · maxLength: 20000 · required

Log a remark › Responses

ActivityWithSubjectResource

id
​string · uuid
type
​string
title
​string
data
​string
​ContactReferenceResource | null

The contact who did it in the customer portal, if any.

​OAuthConnectionReferenceResource | null

The AI connection the activity was done through, if any.

updated_at
​string · date-time
created_at
​string · date-time
​ActivitySubjectResource | null

null when the record is gone