Organization
Get organization settings
Returns the organization's settings: company details, feature flags, the default integrations, invoice and proposal numbering, and any locked invoice period.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Get organization settings › Responses
OrganizationSettingsResource
namecoc_numbertax_numberaddresspostal_codecitycountryibanemailphonefeaturesThe feature modules switched on for the organization.
is_trialtrial_untiltrial_days_leftavailability_statusWhether 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.
manual_block_messagewallet_balanceThe credit the services of the shared integrations are paid from.
wallet_reservedWhat is held on the credit for what is not definite yet, such as a domain being registered.
wallet_availableThe balance without what is reserved: what the organization can still spend.
wallet_thresholdThe balance below which the organization can no longer register or transfer. Negative gives it credit.
next_proposal_numbernext_invoice_numberinvoices_locked_untilsend_subscription_renewal_invoices_directlysend_subscription_activation_invoices_directlycustomer_portal_invite_mail_subjectcustomer_portal_invite_mail_bodybilling_alertUnpaid Clienvy invoices that need the customer to act
Update organization settings
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.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Update organization settings › Request Body
namecoc_numbertax_numberaddresspostal_codecityibanemailphonecountryTwo-letter country code, such as NL.
next_invoice_numberThe number the next invoice gets. Can only go up.
next_proposal_numberThe number the next proposal gets. Can only go up.
invoices_locked_untilInvoices sent on or before this day can no longer be changed, for example once a period is filed. Null unlocks.
send_subscription_renewal_invoices_directlySend the invoice of a subscription renewal to the customer at once, instead of leaving it as a draft.
send_subscription_activation_invoices_directlySend the invoice of a subscription activation to the customer at once, instead of leaving it as a draft.
default_invoice_flow_idUUID of the invoice flow new invoices get (GET /invoice-flows).
default_subscription_flow_idUUID of the invoice flow subscription invoices get.
default_credit_invoice_flow_idUUID of the invoice flow a credit invoice gets when an invoice is credited.
default_deal_flow_idUUID of the deal flow new deals get (GET /deal-flows).
default_fixed_project_template_idUUID of the project template a new fixed project starts from (GET /project-templates), or null for none.
default_recurring_project_template_idUUID of the project template a new recurring project starts from, or null for none.
default_revenue_category_idUUID of the revenue category new invoice lines get (GET /revenue-categories).
default_credit_revenue_category_idUUID of the revenue category of purchased credits.
default_accounting_provider_instance_idUUID of the accounting integration new companies and invoices go to (GET /integrations/instances?category=accounting).
default_payment_provider_instance_idUUID of the payment integration invoices are paid through.
default_registrar_provider_instance_idUUID of the registrar integration new domains are registered with.
default_dns_provider_instance_idUUID of the DNS integration used for the DNS of new domains.
default_smtp_provider_instance_idUUID of the SMTP integration preselected when a domain gets SMTP, or null for none.
default_invoice_style_idUUID of the invoice style invoices and proposals get (GET /invoice-styles).
default_mail_identity_idUUID of the mail identity all mail goes out from: ticket replies, invoices, reminders and proposals (GET /mail-identities).
default_ticket_status_idUUID of the status new tickets get, and that a ticket returns to when the customer replies (GET /ticket-statuses).
default_wordpress_identity_idUUID of the WordPress identity new WordPress applications get (GET /wordpress-identities).
customer_portal_invite_mail_subjectDefault subject of the mail that invites a contact to the client portal. It can be changed per invite.
customer_portal_invite_mail_bodyDefault text of that invite. HTML with variables such as {{contact.first_name}}, {{company.name}} and {{organization.name}}.
favicon_idUUID of an uploaded png, jpg or ico file, the favicon of the portals. Null removes it.
light_logo_idUUID of an uploaded png or jpg file, the logo on a dark background. Null removes it.
dark_logo_idUUID of an uploaded png or jpg file, the logo on a light background. Null removes it.
Update organization settings › Responses
OrganizationSettingsResource
namecoc_numbertax_numberaddresspostal_codecitycountryibanemailphonefeaturesThe feature modules switched on for the organization.
is_trialtrial_untiltrial_days_leftavailability_statusWhether 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.
manual_block_messagewallet_balanceThe credit the services of the shared integrations are paid from.
wallet_reservedWhat is held on the credit for what is not definite yet, such as a domain being registered.
wallet_availableThe balance without what is reserved: what the organization can still spend.
wallet_thresholdThe balance below which the organization can no longer register or transfer. Negative gives it credit.
next_proposal_numbernext_invoice_numberinvoices_locked_untilsend_subscription_renewal_invoices_directlysend_subscription_activation_invoices_directlycustomer_portal_invite_mail_subjectcustomer_portal_invite_mail_bodybilling_alertUnpaid Clienvy invoices that need the customer to act
List modules
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.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List modules › Responses
featurelabeldescriptionrequiresbetaSwitch a module on
Switches a module on, together with the modules it requires, and returns the organization settings. A module outside the organization's plan is refused.
path Parameters
featureThe module key, as listed by the modules endpoint, such as tickets.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Switch a module on › Responses
OrganizationSettingsResource
namecoc_numbertax_numberaddresspostal_codecitycountryibanemailphonefeaturesThe feature modules switched on for the organization.
is_trialtrial_untiltrial_days_leftavailability_statusWhether 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.
manual_block_messagewallet_balanceThe credit the services of the shared integrations are paid from.
wallet_reservedWhat is held on the credit for what is not definite yet, such as a domain being registered.
wallet_availableThe balance without what is reserved: what the organization can still spend.
wallet_thresholdThe balance below which the organization can no longer register or transfer. Negative gives it credit.
next_proposal_numbernext_invoice_numberinvoices_locked_untilsend_subscription_renewal_invoices_directlysend_subscription_activation_invoices_directlycustomer_portal_invite_mail_subjectcustomer_portal_invite_mail_bodybilling_alertUnpaid Clienvy invoices that need the customer to act
Switch a module off
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.
path Parameters
featureThe module key, as listed by the modules endpoint, such as tickets.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Switch a module off › Responses
OrganizationSettingsResource
namecoc_numbertax_numberaddresspostal_codecitycountryibanemailphonefeaturesThe feature modules switched on for the organization.
is_trialtrial_untiltrial_days_leftavailability_statusWhether 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.
manual_block_messagewallet_balanceThe credit the services of the shared integrations are paid from.
wallet_reservedWhat is held on the credit for what is not definite yet, such as a domain being registered.
wallet_availableThe balance without what is reserved: what the organization can still spend.
wallet_thresholdThe balance below which the organization can no longer register or transfer. Negative gives it credit.
next_proposal_numbernext_invoice_numberinvoices_locked_untilsend_subscription_renewal_invoices_directlysend_subscription_activation_invoices_directlycustomer_portal_invite_mail_subjectcustomer_portal_invite_mail_bodybilling_alertUnpaid Clienvy invoices that need the customer to act
List organization domains
Returns the organization's own web domains, oldest first.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List organization domains › Responses
Array of OrganizationDomainResource
idtypedomainfull_domainis_externalis_verifiedis_primaryAdd a custom domain
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.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Add a custom domain › Request Body
typedomainThe full domain name, without https://, such as crm.example.com.
Add a custom domain › Responses
OrganizationDomainResource
idtypedomainfull_domainis_externalis_verifiedis_primaryGet an organization domain
Returns one of the organization's own web domains, with the DNS records a custom domain needs.
path Parameters
organizationDomainThe organization domain UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Get an organization domain › Responses
OrganizationDomainResource
idtypedomainfull_domainis_externalis_verifiedis_primaryChange the Clienvy subdomain
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.
path Parameters
organizationDomainThe organization domain UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Change the Clienvy subdomain › Request Body
domainThe new subdomain, only the part before the Clienvy domain: lowercase letters, digits and hyphens.
Change the Clienvy subdomain › Responses
OrganizationDomainResource
idtypedomainfull_domainis_externalis_verifiedis_primaryDelete a custom domain
Deletes a custom domain; the portal is no longer served on it. A primary domain and the Clienvy domain cannot be deleted.
path Parameters
organizationDomainThe organization domain UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Delete a custom domain › Responses
OrganizationDomainResource
idtypedomainfull_domainis_externalis_verifiedis_primaryVerify a custom domain
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.
path Parameters
organizationDomainThe organization domain UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Verify a custom domain › Responses
OrganizationDomainResource
idtypedomainfull_domainis_externalis_verifiedis_primaryMake a domain 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.
path Parameters
organizationDomainThe organization domain UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Make a domain primary › Responses
OrganizationDomainResource
idtypedomainfull_domainis_externalis_verifiedis_primaryList mail domains
Returns all sending domains that can be used in Mail identities.
query Parameters
searchFilter mail domains by domain name.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List mail domains › Responses
Array of MailDomainResource
idproviderdomainexternal_idis_verifiedis_systemIs the default system domain, cannot be deleted.
Add a mail domain
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.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Add a mail domain › Request Body
domainThe domain only, without www or a part before the at sign, such as example.com.
Add a mail domain › Responses
MailDomainResource
idproviderdomainexternal_idis_verifiedis_systemIs the default system domain, cannot be deleted.
Get a mail domain
Returns a single sending domain, with the DNS records it needs and whether they were found.
path Parameters
mailDomainThe mail domain UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Get a mail domain › Responses
MailDomainResource
idproviderdomainexternal_idis_verifiedis_systemIs the default system domain, cannot be deleted.
Delete a mail domain
Deletes a sending domain. A domain that a mail identity still uses cannot be deleted, and neither can
the Clienvy domain (is_system).
path Parameters
mailDomainThe mail domain UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Delete a mail domain › Responses
MailDomainResource
idproviderdomainexternal_idis_verifiedis_systemIs the default system domain, cannot be deleted.
Verify a mail domain
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.
path Parameters
mailDomainThe mail domain UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Verify a mail domain › Responses
MailDomainResource
idproviderdomainexternal_idis_verifiedis_systemIs the default system domain, cannot be deleted.
List mail identities
Returns all sending identities used for outgoing mail and outgoing tickets.
query Parameters
searchFilter mail identities by name.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List mail identities › Responses
Array of MailIdentityResource
idnamereceiver_addressfrom_namemail_local_partemailpersonal_signaturesystem_signaturecustom_html_signature_enabledpersonal_signature_htmlsystem_signature_htmlcustom_template_enabledcustom_templatecustom_text_templatecustom_button_templateCreate a mail identity
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.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Create a mail identity › Request Body
nameName to recognize the address by in Clienvy, such as Support.
from_nameThe sender name recipients see, such as the company name.
mail_local_partThe part of the address before the at sign, such as support. On the Clienvy domain it has to be unique across Clienvy.
mail_domain_idUUID of a verified mail domain. The Clienvy domain (is_system) holds one address per organization.
personal_signatureSignature below mail an employee sends, such as a ticket reply. HTML with variables such as {{employee.full_name}}, {{employee.function}} and {{organization.name}}.
system_signatureSignature below mail Clienvy sends by itself, such as an invoice reminder.
custom_html_signature_enabledSend the HTML signatures below instead of the regular ones. The app itself keeps showing the regular ones.
personal_signature_htmlPersonal signature as hand-written HTML for outgoing mail. {{employee.profile_image_url}} puts the sender's photo in it.
system_signature_htmlSystem signature as hand-written HTML for outgoing mail.
custom_template_enabledSend mail in the organization's own layout, the three templates below, instead of Clienvy's layout.
custom_templateThe 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_templateThe HTML around each block of text, with {{text}}. Required when custom_template_enabled is true.
custom_button_templateThe HTML of a button, with {{label}} and {{url}}. Required when custom_template_enabled is true.
file_idsUUIDs 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
idnamereceiver_addressfrom_namemail_local_partemailpersonal_signaturesystem_signaturecustom_html_signature_enabledpersonal_signature_htmlsystem_signature_htmlcustom_template_enabledcustom_templatecustom_text_templatecustom_button_templateGet a mail identity
Returns a single sending identity with its signatures, its own mail layout and its images.
path Parameters
mailIdentityThe mail identity UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Get a mail identity › Responses
MailIdentityResource
idnamereceiver_addressfrom_namemail_local_partemailpersonal_signaturesystem_signaturecustom_html_signature_enabledpersonal_signature_htmlsystem_signature_htmlcustom_template_enabledcustom_templatecustom_text_templatecustom_button_templateUpdate a mail identity
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.
path Parameters
mailIdentityThe mail identity UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Update a mail identity › Request Body
nameName to recognize the address by in Clienvy, such as Support.
from_nameThe sender name recipients see, such as the company name.
mail_local_partThe part of the address before the at sign, such as support. On the Clienvy domain it has to be unique across Clienvy.
mail_domain_idUUID of a verified mail domain. The Clienvy domain (is_system) holds one address per organization.
personal_signatureSignature below mail an employee sends, such as a ticket reply. HTML with variables such as {{employee.full_name}}, {{employee.function}} and {{organization.name}}.
system_signatureSignature below mail Clienvy sends by itself, such as an invoice reminder.
custom_html_signature_enabledSend the HTML signatures below instead of the regular ones. The app itself keeps showing the regular ones.
personal_signature_htmlPersonal signature as hand-written HTML for outgoing mail. {{employee.profile_image_url}} puts the sender's photo in it.
system_signature_htmlSystem signature as hand-written HTML for outgoing mail.
custom_template_enabledSend mail in the organization's own layout, the three templates below, instead of Clienvy's layout.
custom_templateThe 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_templateThe HTML around each block of text, with {{text}}. Required when custom_template_enabled is true.
custom_button_templateThe HTML of a button, with {{label}} and {{url}}. Required when custom_template_enabled is true.
file_idsUUIDs 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
idnamereceiver_addressfrom_namemail_local_partemailpersonal_signaturesystem_signaturecustom_html_signature_enabledpersonal_signature_htmlsystem_signature_htmlcustom_template_enabledcustom_templatecustom_text_templatecustom_button_templateDelete a mail identity
Deletes a sending identity. The last one cannot be deleted.
path Parameters
mailIdentityThe mail identity UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Delete a mail identity › Responses
MailIdentityResource
idnamereceiver_addressfrom_namemail_local_partemailpersonal_signaturesystem_signaturecustom_html_signature_enabledpersonal_signature_htmlsystem_signature_htmlcustom_template_enabledcustom_templatecustom_text_templatecustom_button_templateSend a test mail
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.
path Parameters
mailIdentityThe mail identity UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Send a test mail › Request Body
emailsignature_typeSend a test mail › Responses
MailIdentityResource
idnamereceiver_addressfrom_namemail_local_partemailpersonal_signaturesystem_signaturecustom_html_signature_enabledpersonal_signature_htmlsystem_signature_htmlcustom_template_enabledcustom_templatecustom_text_templatecustom_button_template