Clienvy API documentation

Get organization settings

GET
https://api.clienvy.io/employee/v1
/organization

Returns the organization's settings: company details, feature flags, the default integrations, invoice and proposal numbering, and any locked invoice period.

Get organization settings › Headers

X-Organization-Id
​string · uuid · required

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

Get organization settings › Responses

OrganizationSettingsResource

name
​string
coc_number
​string
tax_number
​string
address
​string
postal_code
​string
city
​string
country
​string · ISO 3166-1 alpha-2
iban
​string
email
​string
phone
​string
​object
features
​OrganizationFeature[]

The feature modules switched on for the organization.

Enum values:
customer-portal
websites
credits
tickets
deals
projects
invoices
subscriptions
is_trial
​boolean
trial_until
​string | null · date
trial_days_left
​integer | null
​OrganizationDemoDataResource | null
availability_status
​OrganizationAvailabilityStatus · enum

Whether an environment can be used, and if not, what stands in the way. Separate from OrganizationProvisioningStatus, which says where the environment is in its own life: being set up, running, or on its way out.

Enum values:
available
manually-blocked
trial-ended
subscription-required
manual_block_message
​string | null
wallet_balance
​string

The credit the services of the shared integrations are paid from.

wallet_reserved
​string

What is held on the credit for what is not definite yet, such as a domain being registered.

wallet_available
​string

The balance without what is reserved: what the organization can still spend.

wallet_threshold
​string

The balance below which the organization can no longer register or transfer. Negative gives it credit.

​array
next_proposal_number
​integer
next_invoice_number
​integer
invoices_locked_until
​string | null · date
send_subscription_renewal_invoices_directly
​boolean
send_subscription_activation_invoices_directly
​boolean
​InvoiceFlowResource
​InvoiceFlowResource
​InvoiceFlowResource
​DealFlowResource
​RevenueCategoryResource
​RevenueCategoryResource
​TicketStatusResource
​ProjectTemplateResource | null
​ProjectTemplateResource | null
​IntegrationInstanceReferenceResource | null
​IntegrationInstanceReferenceResource | null
​IntegrationInstanceReferenceResource | null
​IntegrationInstanceReferenceResource | null
​IntegrationInstanceReferenceResource | null
​WordpressIdentityResource
​InvoiceStyleResource
​MailIdentityResource
customer_portal_invite_mail_subject
​string | null
customer_portal_invite_mail_body
​string | null
​FileResource | null
​FileResource | null
​FileResource | null
billing_alert
​object | null

Unpaid Clienvy invoices that need the customer to act


Update organization settings

PUT
https://api.clienvy.io/employee/v1
/organization

Updates the company details, invoice and proposal numbering, the defaults other modules start from, the logos and favicon of the portals, and the default text of the client portal invite. Only the fields present in the request are changed. The next invoice and proposal number can only go up.

Update organization settings › Headers

X-Organization-Id
​string · uuid · required

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

Update organization settings › Request Body

name
​string · maxLength: 64
coc_number
​string | null · maxLength: 30
tax_number
​string | null · maxLength: 30
address
​string | null · maxLength: 255
postal_code
​string | null · maxLength: 16
city
​string | null · maxLength: 255
iban
​string | null · maxLength: 32
email
​string | null · email · maxLength: 128
phone
​string | null · maxLength: 32
​array | null
country
​string | null · maxLength: 2

Two-letter country code, such as NL.

next_invoice_number
​integer | null

The number the next invoice gets. Can only go up.

next_proposal_number
​integer | null

The number the next proposal gets. Can only go up.

invoices_locked_until
​string | null · date

Invoices sent on or before this day can no longer be changed, for example once a period is filed. Null unlocks.

send_subscription_renewal_invoices_directly
​boolean

Send the invoice of a subscription renewal to the customer at once, instead of leaving it as a draft.

send_subscription_activation_invoices_directly
​boolean

Send the invoice of a subscription activation to the customer at once, instead of leaving it as a draft.

default_invoice_flow_id
​string · uuid

UUID of the invoice flow new invoices get (GET /invoice-flows).

default_subscription_flow_id
​string · uuid

UUID of the invoice flow subscription invoices get.

default_credit_invoice_flow_id
​string · uuid

UUID of the invoice flow a credit invoice gets when an invoice is credited.

default_deal_flow_id
​string · uuid

UUID of the deal flow new deals get (GET /deal-flows).

default_fixed_project_template_id
​string | null · uuid

UUID of the project template a new fixed project starts from (GET /project-templates), or null for none.

default_recurring_project_template_id
​string | null · uuid

UUID of the project template a new recurring project starts from, or null for none.

default_revenue_category_id
​string · uuid

UUID of the revenue category new invoice lines get (GET /revenue-categories).

default_credit_revenue_category_id
​string · uuid

UUID of the revenue category of purchased credits.

default_accounting_provider_instance_id
​string · uuid

UUID of the accounting integration new companies and invoices go to (GET /integrations/instances?category=accounting).

default_payment_provider_instance_id
​string · uuid

UUID of the payment integration invoices are paid through.

default_registrar_provider_instance_id
​string · uuid

UUID of the registrar integration new domains are registered with.

default_dns_provider_instance_id
​string · uuid

UUID of the DNS integration used for the DNS of new domains.

default_smtp_provider_instance_id
​string | null · uuid

UUID of the SMTP integration preselected when a domain gets SMTP, or null for none.

default_invoice_style_id
​string · uuid

UUID of the invoice style invoices and proposals get (GET /invoice-styles).

default_mail_identity_id
​string · uuid

UUID of the mail identity all mail goes out from: ticket replies, invoices, reminders and proposals (GET /mail-identities).

default_ticket_status_id
​string · uuid

UUID of the status new tickets get, and that a ticket returns to when the customer replies (GET /ticket-statuses).

default_wordpress_identity_id
​string · uuid

UUID of the WordPress identity new WordPress applications get (GET /wordpress-identities).

customer_portal_invite_mail_subject
​string · maxLength: 500

Default subject of the mail that invites a contact to the client portal. It can be changed per invite.

customer_portal_invite_mail_body
​string · maxLength: 10000

Default text of that invite. HTML with variables such as {{contact.first_name}}, {{company.name}} and {{organization.name}}.

favicon_id
​string | null · uuid

UUID of an uploaded png, jpg or ico file, the favicon of the portals. Null removes it.

light_logo_id
​string | null · uuid

UUID of an uploaded png or jpg file, the logo on a dark background. Null removes it.

dark_logo_id
​string | null · uuid

UUID of an uploaded png or jpg file, the logo on a light background. Null removes it.

Update organization settings › Responses

OrganizationSettingsResource

name
​string
coc_number
​string
tax_number
​string
address
​string
postal_code
​string
city
​string
country
​string · ISO 3166-1 alpha-2
iban
​string
email
​string
phone
​string
​object
features
​OrganizationFeature[]

The feature modules switched on for the organization.

Enum values:
customer-portal
websites
credits
tickets
deals
projects
invoices
subscriptions
is_trial
​boolean
trial_until
​string | null · date
trial_days_left
​integer | null
​OrganizationDemoDataResource | null
availability_status
​OrganizationAvailabilityStatus · enum

Whether an environment can be used, and if not, what stands in the way. Separate from OrganizationProvisioningStatus, which says where the environment is in its own life: being set up, running, or on its way out.

Enum values:
available
manually-blocked
trial-ended
subscription-required
manual_block_message
​string | null
wallet_balance
​string

The credit the services of the shared integrations are paid from.

wallet_reserved
​string

What is held on the credit for what is not definite yet, such as a domain being registered.

wallet_available
​string

The balance without what is reserved: what the organization can still spend.

wallet_threshold
​string

The balance below which the organization can no longer register or transfer. Negative gives it credit.

​array
next_proposal_number
​integer
next_invoice_number
​integer
invoices_locked_until
​string | null · date
send_subscription_renewal_invoices_directly
​boolean
send_subscription_activation_invoices_directly
​boolean
​InvoiceFlowResource
​InvoiceFlowResource
​InvoiceFlowResource
​DealFlowResource
​RevenueCategoryResource
​RevenueCategoryResource
​TicketStatusResource
​ProjectTemplateResource | null
​ProjectTemplateResource | null
​IntegrationInstanceReferenceResource | null
​IntegrationInstanceReferenceResource | null
​IntegrationInstanceReferenceResource | null
​IntegrationInstanceReferenceResource | null
​IntegrationInstanceReferenceResource | null
​WordpressIdentityResource
​InvoiceStyleResource
​MailIdentityResource
customer_portal_invite_mail_subject
​string | null
customer_portal_invite_mail_body
​string | null
​FileResource | null
​FileResource | null
​FileResource | null
billing_alert
​object | null

Unpaid Clienvy invoices that need the customer to act


List modules

GET
https://api.clienvy.io/employee/v1
/organization/features

Returns the modules this organization can switch on, each with what it is for and the modules it requires. Which of them are on is features on the organization settings.

List modules › Headers

X-Organization-Id
​string · uuid · required

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

List modules › Responses

​object[]
feature
​string · required
label
​string · required
description
​string · required
requires
​string[] · required
beta
​boolean · required

Switch a module on

POST
https://api.clienvy.io/employee/v1
/organization/features/{feature}/activate

Switches a module on, together with the modules it requires, and returns the organization settings. A module outside the organization's plan is refused.

Switch a module on › path Parameters

feature
​string · required

The module key, as listed by the modules endpoint, such as tickets.

Switch a module on › Headers

X-Organization-Id
​string · uuid · required

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

Switch a module on › Responses

OrganizationSettingsResource

name
​string
coc_number
​string
tax_number
​string
address
​string
postal_code
​string
city
​string
country
​string · ISO 3166-1 alpha-2
iban
​string
email
​string
phone
​string
​object
features
​OrganizationFeature[]

The feature modules switched on for the organization.

Enum values:
customer-portal
websites
credits
tickets
deals
projects
invoices
subscriptions
is_trial
​boolean
trial_until
​string | null · date
trial_days_left
​integer | null
​OrganizationDemoDataResource | null
availability_status
​OrganizationAvailabilityStatus · enum

Whether an environment can be used, and if not, what stands in the way. Separate from OrganizationProvisioningStatus, which says where the environment is in its own life: being set up, running, or on its way out.

Enum values:
available
manually-blocked
trial-ended
subscription-required
manual_block_message
​string | null
wallet_balance
​string

The credit the services of the shared integrations are paid from.

wallet_reserved
​string

What is held on the credit for what is not definite yet, such as a domain being registered.

wallet_available
​string

The balance without what is reserved: what the organization can still spend.

wallet_threshold
​string

The balance below which the organization can no longer register or transfer. Negative gives it credit.

​array
next_proposal_number
​integer
next_invoice_number
​integer
invoices_locked_until
​string | null · date
send_subscription_renewal_invoices_directly
​boolean
send_subscription_activation_invoices_directly
​boolean
​InvoiceFlowResource
​InvoiceFlowResource
​InvoiceFlowResource
​DealFlowResource
​RevenueCategoryResource
​RevenueCategoryResource
​TicketStatusResource
​ProjectTemplateResource | null
​ProjectTemplateResource | null
​IntegrationInstanceReferenceResource | null
​IntegrationInstanceReferenceResource | null
​IntegrationInstanceReferenceResource | null
​IntegrationInstanceReferenceResource | null
​IntegrationInstanceReferenceResource | null
​WordpressIdentityResource
​InvoiceStyleResource
​MailIdentityResource
customer_portal_invite_mail_subject
​string | null
customer_portal_invite_mail_body
​string | null
​FileResource | null
​FileResource | null
​FileResource | null
billing_alert
​object | null

Unpaid Clienvy invoices that need the customer to act


Switch a module off

POST
https://api.clienvy.io/employee/v1
/organization/features/{feature}/deactivate

Switches a module off, together with the modules that depend on it, and returns the organization settings. Refused while any of those modules still holds records, such as tickets or invoices.

Switch a module off › path Parameters

feature
​string · required

The module key, as listed by the modules endpoint, such as tickets.

Switch a module off › Headers

X-Organization-Id
​string · uuid · required

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

Switch a module off › Responses

OrganizationSettingsResource

name
​string
coc_number
​string
tax_number
​string
address
​string
postal_code
​string
city
​string
country
​string · ISO 3166-1 alpha-2
iban
​string
email
​string
phone
​string
​object
features
​OrganizationFeature[]

The feature modules switched on for the organization.

Enum values:
customer-portal
websites
credits
tickets
deals
projects
invoices
subscriptions
is_trial
​boolean
trial_until
​string | null · date
trial_days_left
​integer | null
​OrganizationDemoDataResource | null
availability_status
​OrganizationAvailabilityStatus · enum

Whether an environment can be used, and if not, what stands in the way. Separate from OrganizationProvisioningStatus, which says where the environment is in its own life: being set up, running, or on its way out.

Enum values:
available
manually-blocked
trial-ended
subscription-required
manual_block_message
​string | null
wallet_balance
​string

The credit the services of the shared integrations are paid from.

wallet_reserved
​string

What is held on the credit for what is not definite yet, such as a domain being registered.

wallet_available
​string

The balance without what is reserved: what the organization can still spend.

wallet_threshold
​string

The balance below which the organization can no longer register or transfer. Negative gives it credit.

​array
next_proposal_number
​integer
next_invoice_number
​integer
invoices_locked_until
​string | null · date
send_subscription_renewal_invoices_directly
​boolean
send_subscription_activation_invoices_directly
​boolean
​InvoiceFlowResource
​InvoiceFlowResource
​InvoiceFlowResource
​DealFlowResource
​RevenueCategoryResource
​RevenueCategoryResource
​TicketStatusResource
​ProjectTemplateResource | null
​ProjectTemplateResource | null
​IntegrationInstanceReferenceResource | null
​IntegrationInstanceReferenceResource | null
​IntegrationInstanceReferenceResource | null
​IntegrationInstanceReferenceResource | null
​IntegrationInstanceReferenceResource | null
​WordpressIdentityResource
​InvoiceStyleResource
​MailIdentityResource
customer_portal_invite_mail_subject
​string | null
customer_portal_invite_mail_body
​string | null
​FileResource | null
​FileResource | null
​FileResource | null
billing_alert
​object | null

Unpaid Clienvy invoices that need the customer to act


List organization domains

GET
https://api.clienvy.io/employee/v1
/organization-domains

Returns the organization's own web domains, oldest first.

List organization domains › Headers

X-Organization-Id
​string · uuid · required

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

List organization domains › Responses

Array of OrganizationDomainResource

id
​string · uuid
type
​OrganizationDomainType · enum
Enum values:
employee
customer
domain
​string
full_domain
​string
​array
is_external
​boolean
is_verified
​boolean
is_primary
​boolean

Add a custom domain

POST
https://api.clienvy.io/employee/v1
/organization-domains

Adds a domain of the organization's own, such as crm.example.com for the employee portal (employee) or my.example.com for the client portal (customer). The response holds the CNAME record in dns_records that has to be created at the domain's DNS host; then verify the domain. The portal is only served on it once it is verified, and it only becomes the main address when it is made primary.

Add a custom domain › Headers

X-Organization-Id
​string · uuid · required

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

Add a custom domain › Request Body

type
​OrganizationDomainType · enum · required
Enum values:
employee
customer
domain
​string · maxLength: 128 · required

The full domain name, without https://, such as crm.example.com.

Add a custom domain › Responses

OrganizationDomainResource

id
​string · uuid
type
​OrganizationDomainType · enum
Enum values:
employee
customer
domain
​string
full_domain
​string
​array
is_external
​boolean
is_verified
​boolean
is_primary
​boolean

Get an organization domain

GET
https://api.clienvy.io/employee/v1
/organization-domains/{organizationDomain}

Returns one of the organization's own web domains, with the DNS records a custom domain needs.

Get an organization domain › path Parameters

organizationDomain
​string · uuid · required

The organization domain UUID

Get an organization domain › Headers

X-Organization-Id
​string · uuid · required

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

Get an organization domain › Responses

OrganizationDomainResource

id
​string · uuid
type
​OrganizationDomainType · enum
Enum values:
employee
customer
domain
​string
full_domain
​string
​array
is_external
​boolean
is_verified
​boolean
is_primary
​boolean

Change the Clienvy subdomain

PUT
https://api.clienvy.io/employee/v1
/organization-domains/{organizationDomain}

Changes the subdomain of a portal on the Clienvy domain (full_domain shows the result). Only the Clienvy domain can be changed: a custom domain is deleted and added again instead.

This changes where people reach the portal. When the domain is primary, the portal is no longer available on the old address the moment it changes: bookmarks, links in mails already sent and the address colleagues or customers know stop working.

Change the Clienvy subdomain › path Parameters

organizationDomain
​string · uuid · required

The organization domain UUID

Change the Clienvy subdomain › Headers

X-Organization-Id
​string · uuid · required

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

Change the Clienvy subdomain › Request Body

domain
​string · maxLength: 64 · required

The new subdomain, only the part before the Clienvy domain: lowercase letters, digits and hyphens.

Change the Clienvy subdomain › Responses

OrganizationDomainResource

id
​string · uuid
type
​OrganizationDomainType · enum
Enum values:
employee
customer
domain
​string
full_domain
​string
​array
is_external
​boolean
is_verified
​boolean
is_primary
​boolean

Delete a custom domain

DELETE
https://api.clienvy.io/employee/v1
/organization-domains/{organizationDomain}

Deletes a custom domain; the portal is no longer served on it. A primary domain and the Clienvy domain cannot be deleted.

Delete a custom domain › path Parameters

organizationDomain
​string · uuid · required

The organization domain UUID

Delete a custom domain › Headers

X-Organization-Id
​string · uuid · required

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

Delete a custom domain › Responses

OrganizationDomainResource

id
​string · uuid
type
​OrganizationDomainType · enum
Enum values:
employee
customer
domain
​string
full_domain
​string
​array
is_external
​boolean
is_verified
​boolean
is_primary
​boolean

Verify a custom domain

POST
https://api.clienvy.io/employee/v1
/organization-domains/{organizationDomain}/verify

Checks whether the CNAME record from dns_records is in place. When it is, is_verified turns true and the portal is served on the domain. New DNS records can take up to a day to be visible everywhere, so a failed check is worth repeating later.

Verify a custom domain › path Parameters

organizationDomain
​string · uuid · required

The organization domain UUID

Verify a custom domain › Headers

X-Organization-Id
​string · uuid · required

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

Verify a custom domain › Responses

OrganizationDomainResource

id
​string · uuid
type
​OrganizationDomainType · enum
Enum values:
employee
customer
domain
​string
full_domain
​string
​array
is_external
​boolean
is_verified
​boolean
is_primary
​boolean

Make a domain primary

POST
https://api.clienvy.io/employee/v1
/organization-domains/{organizationDomain}/make-primary

Makes a verified domain the main address of its portal; the previous primary domain of that portal stops being primary and redirects visitors to this one. Links Clienvy sends from now on use it.

Make a domain primary › path Parameters

organizationDomain
​string · uuid · required

The organization domain UUID

Make a domain primary › Headers

X-Organization-Id
​string · uuid · required

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

Make a domain primary › Responses

OrganizationDomainResource

id
​string · uuid
type
​OrganizationDomainType · enum
Enum values:
employee
customer
domain
​string
full_domain
​string
​array
is_external
​boolean
is_verified
​boolean
is_primary
​boolean

List mail domains

GET
https://api.clienvy.io/employee/v1
/mail-domains

Returns all sending domains that can be used in Mail identities.

List mail domains › query Parameters

search
​string

Filter mail domains by domain name.

List mail domains › Headers

X-Organization-Id
​string · uuid · required

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

List mail domains › Responses

Array of MailDomainResource

id
​string · uuid
provider
​string
domain
​string
external_id
​string | null
is_verified
​boolean
​array
is_system
​boolean

Is the default system domain, cannot be deleted.


Add a mail domain

POST
https://api.clienvy.io/employee/v1
/mail-domains

Adds a domain of the organization's own to send mail from, such as example.com. The response holds the DNS records in dns_records that have to be created at the domain's DNS host; then verify the domain. Mail identities can only use it once it is verified. A domain another organization already uses, and Clienvy's own domains, are refused.

Add a mail domain › Headers

X-Organization-Id
​string · uuid · required

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

Add a mail domain › Request Body

domain
​string · maxLength: 64 · required

The domain only, without www or a part before the at sign, such as example.com.

Add a mail domain › Responses

MailDomainResource

id
​string · uuid
provider
​string
domain
​string
external_id
​string | null
is_verified
​boolean
​array
is_system
​boolean

Is the default system domain, cannot be deleted.


Get a mail domain

GET
https://api.clienvy.io/employee/v1
/mail-domains/{mailDomain}

Returns a single sending domain, with the DNS records it needs and whether they were found.

Get a mail domain › path Parameters

mailDomain
​string · uuid · required

The mail domain UUID

Get a mail domain › Headers

X-Organization-Id
​string · uuid · required

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

Get a mail domain › Responses

MailDomainResource

id
​string · uuid
provider
​string
domain
​string
external_id
​string | null
is_verified
​boolean
​array
is_system
​boolean

Is the default system domain, cannot be deleted.


Delete a mail domain

DELETE
https://api.clienvy.io/employee/v1
/mail-domains/{mailDomain}

Deletes a sending domain. A domain that a mail identity still uses cannot be deleted, and neither can the Clienvy domain (is_system).

Delete a mail domain › path Parameters

mailDomain
​string · uuid · required

The mail domain UUID

Delete a mail domain › Headers

X-Organization-Id
​string · uuid · required

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

Delete a mail domain › Responses

MailDomainResource

id
​string · uuid
provider
​string
domain
​string
external_id
​string | null
is_verified
​boolean
​array
is_system
​boolean

Is the default system domain, cannot be deleted.


Verify a mail domain

POST
https://api.clienvy.io/employee/v1
/mail-domains/{mailDomain}/verify

Checks the DNS records of the domain and returns them, each marked as found or not. When the required ones are in place, is_verified turns true. New DNS records can take up to a day to be visible everywhere, so a failed check is worth repeating later.

Verify a mail domain › path Parameters

mailDomain
​string · uuid · required

The mail domain UUID

Verify a mail domain › Headers

X-Organization-Id
​string · uuid · required

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

Verify a mail domain › Responses

MailDomainResource

id
​string · uuid
provider
​string
domain
​string
external_id
​string | null
is_verified
​boolean
​array
is_system
​boolean

Is the default system domain, cannot be deleted.


List mail identities

GET
https://api.clienvy.io/employee/v1
/mail-identities

Returns all sending identities used for outgoing mail and outgoing tickets.

List mail identities › query Parameters

search
​string

Filter mail identities by name.

List mail identities › Headers

X-Organization-Id
​string · uuid · required

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

List mail identities › Responses

Array of MailIdentityResource

id
​string · uuid
name
​string
receiver_address
​string
from_name
​string
mail_local_part
​string
​MailDomainResource | null
email
​string
personal_signature
​string | null
system_signature
​string | null
custom_html_signature_enabled
​boolean
personal_signature_html
​string | null
system_signature_html
​string | null
custom_template_enabled
​boolean
custom_template
​string | null
custom_text_template
​string | null
custom_button_template
​string | null
​FileResource[]

Create a mail identity

POST
https://api.clienvy.io/employee/v1
/mail-identities

Creates an extra address to send mail from. An address on a domain of the organization's own receives mail through a forward from its mailbox to receiver_address; which address mail goes out from is default_mail_identity_id on the organization settings.

Create a mail identity › Headers

X-Organization-Id
​string · uuid · required

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

Create a mail identity › Request Body

name
​string · maxLength: 64 · required

Name to recognize the address by in Clienvy, such as Support.

from_name
​string · maxLength: 64 · required

The sender name recipients see, such as the company name.

mail_local_part
​string · maxLength: 64 · required

The part of the address before the at sign, such as support. On the Clienvy domain it has to be unique across Clienvy.

mail_domain_id
​string · uuid · required

UUID of a verified mail domain. The Clienvy domain (is_system) holds one address per organization.

personal_signature
​string | null

Signature below mail an employee sends, such as a ticket reply. HTML with variables such as {{employee.full_name}}, {{employee.function}} and {{organization.name}}.

system_signature
​string | null

Signature below mail Clienvy sends by itself, such as an invoice reminder.

custom_html_signature_enabled
​boolean

Send the HTML signatures below instead of the regular ones. The app itself keeps showing the regular ones.

personal_signature_html
​string | null

Personal signature as hand-written HTML for outgoing mail. {{employee.profile_image_url}} puts the sender's photo in it.

system_signature_html
​string | null

System signature as hand-written HTML for outgoing mail.

custom_template_enabled
​boolean

Send mail in the organization's own layout, the three templates below, instead of Clienvy's layout.

custom_template
​string | null

The HTML of the whole mail. Has to contain {{content}}, {{signature}} and {{reference_id}} (by which a reply finds its ticket). Put {{content}} in a <div>, not a <p>. Required when custom_template_enabled is true.

custom_text_template
​string | null

The HTML around each block of text, with {{text}}. Required when custom_template_enabled is true.

custom_button_template
​string | null

The HTML of a button, with {{label}} and {{url}}. Required when custom_template_enabled is true.

file_ids
​array | null

UUIDs of uploaded images (jpg, png or gif) of this address, replacing the current ones. Place one in the HTML as <img src="{{image.<file-id>}}">.

Create a mail identity › Responses

MailIdentityResource

id
​string · uuid
name
​string
receiver_address
​string
from_name
​string
mail_local_part
​string
​MailDomainResource | null
email
​string
personal_signature
​string | null
system_signature
​string | null
custom_html_signature_enabled
​boolean
personal_signature_html
​string | null
system_signature_html
​string | null
custom_template_enabled
​boolean
custom_template
​string | null
custom_text_template
​string | null
custom_button_template
​string | null
​FileResource[]

Get a mail identity

GET
https://api.clienvy.io/employee/v1
/mail-identities/{mailIdentity}

Returns a single sending identity with its signatures, its own mail layout and its images.

Get a mail identity › path Parameters

mailIdentity
​string · uuid · required

The mail identity UUID

Get a mail identity › Headers

X-Organization-Id
​string · uuid · required

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

Get a mail identity › Responses

MailIdentityResource

id
​string · uuid
name
​string
receiver_address
​string
from_name
​string
mail_local_part
​string
​MailDomainResource | null
email
​string
personal_signature
​string | null
system_signature
​string | null
custom_html_signature_enabled
​boolean
personal_signature_html
​string | null
system_signature_html
​string | null
custom_template_enabled
​boolean
custom_template
​string | null
custom_text_template
​string | null
custom_button_template
​string | null
​FileResource[]

Update a mail identity

PUT
https://api.clienvy.io/employee/v1
/mail-identities/{mailIdentity}

Updates the address, its signatures or its own mail layout. Only the fields present in the request are changed. Check a changed signature or layout with a test mail.

Update a mail identity › path Parameters

mailIdentity
​string · uuid · required

The mail identity UUID

Update a mail identity › Headers

X-Organization-Id
​string · uuid · required

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

Update a mail identity › Request Body

name
​string · maxLength: 64

Name to recognize the address by in Clienvy, such as Support.

from_name
​string · maxLength: 64

The sender name recipients see, such as the company name.

mail_local_part
​string · maxLength: 64

The part of the address before the at sign, such as support. On the Clienvy domain it has to be unique across Clienvy.

mail_domain_id
​string · uuid

UUID of a verified mail domain. The Clienvy domain (is_system) holds one address per organization.

personal_signature
​string | null

Signature below mail an employee sends, such as a ticket reply. HTML with variables such as {{employee.full_name}}, {{employee.function}} and {{organization.name}}.

system_signature
​string | null

Signature below mail Clienvy sends by itself, such as an invoice reminder.

custom_html_signature_enabled
​boolean

Send the HTML signatures below instead of the regular ones. The app itself keeps showing the regular ones.

personal_signature_html
​string | null

Personal signature as hand-written HTML for outgoing mail. {{employee.profile_image_url}} puts the sender's photo in it.

system_signature_html
​string | null

System signature as hand-written HTML for outgoing mail.

custom_template_enabled
​boolean

Send mail in the organization's own layout, the three templates below, instead of Clienvy's layout.

custom_template
​string | null

The HTML of the whole mail. Has to contain {{content}}, {{signature}} and {{reference_id}} (by which a reply finds its ticket). Put {{content}} in a <div>, not a <p>. Required when custom_template_enabled is true.

custom_text_template
​string | null

The HTML around each block of text, with {{text}}. Required when custom_template_enabled is true.

custom_button_template
​string | null

The HTML of a button, with {{label}} and {{url}}. Required when custom_template_enabled is true.

file_ids
​array | null

UUIDs of uploaded images (jpg, png or gif) of this address, replacing the current ones. Place one in the HTML as <img src="{{image.<file-id>}}">.

Update a mail identity › Responses

MailIdentityResource

id
​string · uuid
name
​string
receiver_address
​string
from_name
​string
mail_local_part
​string
​MailDomainResource | null
email
​string
personal_signature
​string | null
system_signature
​string | null
custom_html_signature_enabled
​boolean
personal_signature_html
​string | null
system_signature_html
​string | null
custom_template_enabled
​boolean
custom_template
​string | null
custom_text_template
​string | null
custom_button_template
​string | null
​FileResource[]

Delete a mail identity

DELETE
https://api.clienvy.io/employee/v1
/mail-identities/{mailIdentity}

Deletes a sending identity. The last one cannot be deleted.

Delete a mail identity › path Parameters

mailIdentity
​string · uuid · required

The mail identity UUID

Delete a mail identity › Headers

X-Organization-Id
​string · uuid · required

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

Delete a mail identity › Responses

MailIdentityResource

id
​string · uuid
name
​string
receiver_address
​string
from_name
​string
mail_local_part
​string
​MailDomainResource | null
email
​string
personal_signature
​string | null
system_signature
​string | null
custom_html_signature_enabled
​boolean
personal_signature_html
​string | null
system_signature_html
​string | null
custom_template_enabled
​boolean
custom_template
​string | null
custom_text_template
​string | null
custom_button_template
​string | null
​FileResource[]

Send a test mail

POST
https://api.clienvy.io/employee/v1
/mail-identities/{mailIdentity}/test

Sends a test mail from this address to the given address: a block of text, a button, another block of text, the chosen signature and the ticket reference, in the address's own layout when it has one.

Send a test mail › path Parameters

mailIdentity
​string · uuid · required

The mail identity UUID

Send a test mail › Headers

X-Organization-Id
​string · uuid · required

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

Send a test mail › Request Body

email
​string · email · required
signature_type
​string · enum · required
Enum values:
personal
system

Send a test mail › Responses

MailIdentityResource

id
​string · uuid
name
​string
receiver_address
​string
from_name
​string
mail_local_part
​string
​MailDomainResource | null
email
​string
personal_signature
​string | null
system_signature
​string | null
custom_html_signature_enabled
​boolean
personal_signature_html
​string | null
system_signature_html
​string | null
custom_template_enabled
​boolean
custom_template
​string | null
custom_text_template
​string | null
custom_button_template
​string | null
​FileResource[]