Clienvy API documentation

Set up SMTP for a domain

POST
https://api.clienvy.io/employee/v1
/domains/{domain}/smtp-domains

Registers the domain (optionally a subdomain) at the given SMTP provider instance and returns the created SMTP domain together with the refreshed parent domain.

Set up SMTP for a domain › path Parameters

domain
​string · uuid · required

The domain UUID

Set up SMTP for a domain › Headers

X-Organization-Id
​string · uuid · required

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

Set up SMTP for a domain › Request Body

smtp_provider_instance_id
​string · uuid · required

UUID of the SMTP provider instance to register with.

subdomain
​string · maxLength: 64

Optional subdomain to send from (e.g. mail).

from_domain_mode
​string

Which domain the from-address uses: domain or subdomain. Only applies when a subdomain is set.

Set up SMTP for a domain › Responses

DomainSmtpDomainResource

​DomainSmtpDomainResource · required
​DomainResource · required

Apply SMTP DNS records

POST
https://api.clienvy.io/employee/v1
/domains/{domain}/smtp-domains/{domainSmtpDomain}/apply-dns

Creates the required SMTP DNS records for the domain in the managed DNS zone. Also requires the domain.manage-dns permission.

Apply SMTP DNS records › path Parameters

domain
​string · uuid · required

The domain UUID

domainSmtpDomain
​string · uuid · required

The domain smtp domain UUID

Apply SMTP DNS records › Headers

X-Organization-Id
​string · uuid · required

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

Apply SMTP DNS records › Responses

DomainSmtpDomainResource

​DomainSmtpDomainResource · required
​DomainResource · required

Verify SMTP DNS records

POST
https://api.clienvy.io/employee/v1
/domains/{domain}/smtp-domains/{domainSmtpDomain}/verify-dns

Checks whether the required SMTP DNS records resolve and updates the verification state.

Verify SMTP DNS records › path Parameters

domain
​string · uuid · required

The domain UUID

domainSmtpDomain
​string · uuid · required

The domain smtp domain UUID

Verify SMTP DNS records › Headers

X-Organization-Id
​string · uuid · required

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

Verify SMTP DNS records › Responses

DomainSmtpDomainResource

​DomainSmtpDomainResource · required
​DomainResource · required

List the logs of an SMTP domain

GET
https://api.clienvy.io/employee/v1
/domains/{domain}/smtp-domains/{domainSmtpDomain}/logs

What happened to the mail sent through the SMTP domain, newest first, read live from the provider: delivered, temporarily failed, failed, rejected or complained, over the last 5 days. Pass cursor from the previous page to continue, the filters of the first page go with it.

List the logs of an SMTP domain › path Parameters

domain
​string · uuid · required

The domain UUID

domainSmtpDomain
​string · uuid · required

The domain smtp domain UUID

List the logs of an SMTP domain › query Parameters

event
​string

Only this outcome: delivered, temporarily-failed, failed, rejected or complained.

recipient
​string

Only mail to recipients containing this, as whole words: a full address, a name or a domain.

cursor
​string

The next_cursor of the previous page.

List the logs of an SMTP domain › Headers

X-Organization-Id
​string · uuid · required

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

List the logs of an SMTP domain › Responses

Array of DomainSmtpLogEntryResource

​DomainSmtpLogEntryResource[] · required
next_cursor
​string | null · required

Delete SMTP for a domain

DELETE
https://api.clienvy.io/employee/v1
/domains/{domain}/smtp-domains/{domainSmtpDomain}

Removes the SMTP domain at the provider and locally, including its accounts.

Delete SMTP for a domain › path Parameters

domain
​string · uuid · required

The domain UUID

domainSmtpDomain
​string · uuid · required

The domain smtp domain UUID

Delete SMTP for a domain › Headers

X-Organization-Id
​string · uuid · required

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

Delete SMTP for a domain › Responses

DomainSmtpDomainResource

​DomainSmtpDomainResource · required
​DomainResource · required

Create an SMTP account

POST
https://api.clienvy.io/employee/v1
/domains/{domain}/smtp-domains/{domainSmtpDomain}/accounts

Creates a new SMTP mailbox account on the SMTP domain and returns it with generated credentials. The password is only returned here and when it is rotated.

Create an SMTP account › path Parameters

domain
​string · uuid · required

The domain UUID

domainSmtpDomain
​string · uuid · required

The domain smtp domain UUID

Create an SMTP account › Headers

X-Organization-Id
​string · uuid · required

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

Create an SMTP account › Request Body

username
​string · maxLength: 64 · required

Local part of the SMTP address (before the @).

Create an SMTP account › Responses

DomainSmtpAccountResource

​DomainSmtpAccountResource · required
​DomainResource · required
​DomainSmtpAccountCredentialsResource · required

Rotate an SMTP account password

POST
https://api.clienvy.io/employee/v1
/domains/{domain}/smtp-domains/{domainSmtpDomain}/accounts/{domainSmtpAccount}/rotate-password

Generates a new password for the SMTP account at the provider and returns the updated account, with the new password. It is not returned anywhere else, so it can only be read once.

Rotate an SMTP account password › path Parameters

domain
​string · uuid · required

The domain UUID

domainSmtpDomain
​string · uuid · required

The domain smtp domain UUID

domainSmtpAccount
​string · uuid · required

The domain smtp account UUID

Rotate an SMTP account password › Headers

X-Organization-Id
​string · uuid · required

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

Rotate an SMTP account password › Responses

DomainSmtpAccountResource

​DomainSmtpAccountResource · required
​DomainResource · required
​DomainSmtpAccountCredentialsResource · required

Delete an SMTP account

DELETE
https://api.clienvy.io/employee/v1
/domains/{domain}/smtp-domains/{domainSmtpDomain}/accounts/{domainSmtpAccount}

Removes the SMTP account at the provider and locally.

Delete an SMTP account › path Parameters

domain
​string · uuid · required

The domain UUID

domainSmtpDomain
​string · uuid · required

The domain smtp domain UUID

domainSmtpAccount
​string · uuid · required

The domain smtp account UUID

Delete an SMTP account › Headers

X-Organization-Id
​string · uuid · required

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

Delete an SMTP account › Responses

DomainSmtpAccountResource

​DomainSmtpAccountResource · required
​DomainResource · required