Clienvy API documentation

List domains

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

Returns a paginated list of domains.

List domains › query Parameters

search
​string

Search by domain name.

is_external
​boolean

When true, only return external (non-registered) domains.

website_ids
​string

Only return domains linked to one of these websites. Accepts a comma-separated list of UUIDs.

sort_field
​string

Field to sort by: domain, expires_at or will_renew.

sort_direction
​string

Sort direction: asc or desc.

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 domains › Headers

X-Organization-Id
​string · uuid · required

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

List domains › Responses

Array of DomainResource

​object

Check domain availability

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

Checks whether a domain already exists at the default registrar of the organization and whether it can be registered or requires a transfer, including the price when available. Through the registrar of Clienvy the price is what Clienvy charges from the credit of the organization, with what is available of that credit (the balance without what is reserved) and its threshold, and what a year of renewal costs after it (renewal_price, null when Clienvy does not renew it). Or null with the reason (premium, extension-unavailable) when Clienvy does not offer the domain. The credit fields are null at a registrar of the organization's own, everything after registerable while the domain cannot be registered.

Check domain availability › Headers

X-Organization-Id
​string · uuid · required

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

Check domain availability › Request Body

domain
​string · maxLength: 128 · required

The fully-qualified domain name to check.

website_id
​string · uuid · required

UUID of the website the domain would be linked to.

Check domain availability › Responses

already_created
​boolean · required
linked_to_website
​boolean · required
registerable
​boolean · required
requires_transfer
​boolean | null · required
price
​number | null · required
unavailable_reason
​string | null · required
renewal_price
​number | null · required
wallet_available
​number | null · required
wallet_threshold
​number | null · required

Add an external domain

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

Links an externally-registered domain to a website. The domain will be created if it does not exist yet.

Add an external domain › Headers

X-Organization-Id
​string · uuid · required

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

Add an external domain › Request Body

domain
​string · maxLength: 128 · required

The fully-qualified domain name.

website_id
​string · uuid · required

UUID of the website to link the domain to.

Add an external domain › Responses

DomainResource

id
​string · uuid
status
​DomainStatus · enum
active
registering
From the request until the registrar reports the domain as active, or the request as failed.
transferring
From the request until the registrar reports the domain as active, or the request as failed. A transfer can take days, for some extensions up to a week.
failed
The registrar did not carry out the registration or transfer. It can be requested again, or the domain made external.
quarantine
Enum values:
active
registering
transferring
failed
quarantine
request_failure_reason
​string | null
domain
​string
tld
​string
​IntegrationInstanceReferenceResource | null
​DomainHolderReferenceResource | null
expires_at
​string | null · date
registered_at
​string | null · date-time
renewal_allowed
​boolean
has_active_subscription
​boolean
will_renew
​boolean
desired_nameservers
​string[]
current_nameservers
​string[]
nameservers_status
​string | null · enum
Enum values:
synchronized
unsynchronized
nameservers_last_status_check
​string | null · date-time
is_lockable
​boolean
is_locked
​boolean
​DomainDnsZoneResource | null
updated_at
​string · date-time
created_at
​string · date-time

Register or transfer a domain

POST
https://api.clienvy.io/employee/v1
/domains/register

Registers a new domain or transfers an existing one at the default registrar of the organization, with a domain holder of that registrar, and links it to a website. Use action register for a new domain or transfer (with a transfer_token) to move an existing one. The domain is returned straight away with status registering or transferring, and the rest happens in the background: whether the registrar has the domain as requested (a registration that is taken already, or a transfer of a domain that is free, does not go through), through the registrar of Clienvy whether Clienvy offers it with its price reserved on the credit, and then the registrar is asked. The price is taken off the credit once the domain is active. The domain becomes active once the registrar reports it, which for a transfer can take days, or failed with the reason in request_failure_reason. A failed domain can be requested again, or its request cancelled: until then the price stays reserved, as the registrar may still carry it out.

Register or transfer a domain › Headers

X-Organization-Id
​string · uuid · required

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

Register or transfer a domain › Request Body

domain
​string · maxLength: 128 · required

The fully-qualified domain name.

website_id
​string · uuid · required

UUID of the website to link the domain to.

action
​string · required

Whether to register a new domain or transfer an existing one.

domain_holder_id
​string · uuid · required

UUID of the domain holder (registrant) to use, of the default registrar.

nameservers
​string[] · required

The nameservers to set (at least two).

transfer_token
​string · maxLength: 255

Transfer/auth code. Required when action is transfer.

Register or transfer a domain › Responses

DomainResource

id
​string · uuid
status
​DomainStatus · enum
active
registering
From the request until the registrar reports the domain as active, or the request as failed.
transferring
From the request until the registrar reports the domain as active, or the request as failed. A transfer can take days, for some extensions up to a week.
failed
The registrar did not carry out the registration or transfer. It can be requested again, or the domain made external.
quarantine
Enum values:
active
registering
transferring
failed
quarantine
request_failure_reason
​string | null
domain
​string
tld
​string
​IntegrationInstanceReferenceResource | null
​DomainHolderReferenceResource | null
expires_at
​string | null · date
registered_at
​string | null · date-time
renewal_allowed
​boolean
has_active_subscription
​boolean
will_renew
​boolean
desired_nameservers
​string[]
current_nameservers
​string[]
nameservers_status
​string | null · enum
Enum values:
synchronized
unsynchronized
nameservers_last_status_check
​string | null · date-time
is_lockable
​boolean
is_locked
​boolean
​DomainDnsZoneResource | null
updated_at
​string · date-time
created_at
​string · date-time

Get a domain

GET
https://api.clienvy.io/employee/v1
/domains/{domain}

Returns a single domain by ID, including its DNS zones and records, holder, redirects and SMTP domains.

Get a domain › path Parameters

domain
​string · uuid · required

The domain UUID

Get a domain › Headers

X-Organization-Id
​string · uuid · required

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

Get a domain › Responses

DomainResource

id
​string · uuid
status
​DomainStatus · enum
active
registering
From the request until the registrar reports the domain as active, or the request as failed.
transferring
From the request until the registrar reports the domain as active, or the request as failed. A transfer can take days, for some extensions up to a week.
failed
The registrar did not carry out the registration or transfer. It can be requested again, or the domain made external.
quarantine
Enum values:
active
registering
transferring
failed
quarantine
request_failure_reason
​string | null
domain
​string
tld
​string
​IntegrationInstanceReferenceResource | null
​DomainHolderReferenceResource | null
expires_at
​string | null · date
registered_at
​string | null · date-time
renewal_allowed
​boolean
has_active_subscription
​boolean
will_renew
​boolean
desired_nameservers
​string[]
current_nameservers
​string[]
nameservers_status
​string | null · enum
Enum values:
synchronized
unsynchronized
nameservers_last_status_check
​string | null · date-time
is_lockable
​boolean
is_locked
​boolean
​DomainDnsZoneResource | null
updated_at
​string · date-time
created_at
​string · date-time

Update a domain

PUT
https://api.clienvy.io/employee/v1
/domains/{domain}

Updates a domain's primary DNS zone or renewal settings.

Update a domain › path Parameters

domain
​string · uuid · required

The domain UUID

Update a domain › Headers

X-Organization-Id
​string · uuid · required

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

Update a domain › Request Body

primary_dns_zone_id
​string · uuid

UUID of the DNS zone to make primary.

renewal_allowed
​boolean

Whether the domain is allowed to auto-renew.

Update a domain › Responses

DomainResource

id
​string · uuid
status
​DomainStatus · enum
active
registering
From the request until the registrar reports the domain as active, or the request as failed.
transferring
From the request until the registrar reports the domain as active, or the request as failed. A transfer can take days, for some extensions up to a week.
failed
The registrar did not carry out the registration or transfer. It can be requested again, or the domain made external.
quarantine
Enum values:
active
registering
transferring
failed
quarantine
request_failure_reason
​string | null
domain
​string
tld
​string
​IntegrationInstanceReferenceResource | null
​DomainHolderReferenceResource | null
expires_at
​string | null · date
registered_at
​string | null · date-time
renewal_allowed
​boolean
has_active_subscription
​boolean
will_renew
​boolean
desired_nameservers
​string[]
current_nameservers
​string[]
nameservers_status
​string | null · enum
Enum values:
synchronized
unsynchronized
nameservers_last_status_check
​string | null · date-time
is_lockable
​boolean
is_locked
​boolean
​DomainDnsZoneResource | null
updated_at
​string · date-time
created_at
​string · date-time

Verify nameservers

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

Looks up and stores the current nameservers of an external domain. Only available for external (non-registered) domains.

Verify nameservers › path Parameters

domain
​string · uuid · required

The domain UUID

Verify nameservers › Headers

X-Organization-Id
​string · uuid · required

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

Verify nameservers › Responses

DomainResource

id
​string · uuid
status
​DomainStatus · enum
active
registering
From the request until the registrar reports the domain as active, or the request as failed.
transferring
From the request until the registrar reports the domain as active, or the request as failed. A transfer can take days, for some extensions up to a week.
failed
The registrar did not carry out the registration or transfer. It can be requested again, or the domain made external.
quarantine
Enum values:
active
registering
transferring
failed
quarantine
request_failure_reason
​string | null
domain
​string
tld
​string
​IntegrationInstanceReferenceResource | null
​DomainHolderReferenceResource | null
expires_at
​string | null · date
registered_at
​string | null · date-time
renewal_allowed
​boolean
has_active_subscription
​boolean
will_renew
​boolean
desired_nameservers
​string[]
current_nameservers
​string[]
nameservers_status
​string | null · enum
Enum values:
synchronized
unsynchronized
nameservers_last_status_check
​string | null · date-time
is_lockable
​boolean
is_locked
​boolean
​DomainDnsZoneResource | null
updated_at
​string · date-time
created_at
​string · date-time

Get a transfer token

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

Returns the domain's transfer (auth) code, or resets it. Only available for active registered domains.

Get a transfer token › path Parameters

domain
​string · uuid · required

The domain UUID

Get a transfer token › Headers

X-Organization-Id
​string · uuid · required

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

Get a transfer token › Request Body

action
​string · required

Whether to get the current token or reset it.

Get a transfer token › Responses

transfer_token
​string | null · required

Set the transfer lock

PUT
https://api.clienvy.io/employee/v1
/domains/{domain}/transfer-lock

Enables or disables the transfer lock at the registrar. Only available for active registered domains whose TLD supports locking.

Set the transfer lock › path Parameters

domain
​string · uuid · required

The domain UUID

Set the transfer lock › Headers

X-Organization-Id
​string · uuid · required

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

Set the transfer lock › Request Body

is_locked
​boolean · required

Whether the domain is transfer-locked.

Set the transfer lock › Responses

DomainResource

id
​string · uuid
status
​DomainStatus · enum
active
registering
From the request until the registrar reports the domain as active, or the request as failed.
transferring
From the request until the registrar reports the domain as active, or the request as failed. A transfer can take days, for some extensions up to a week.
failed
The registrar did not carry out the registration or transfer. It can be requested again, or the domain made external.
quarantine
Enum values:
active
registering
transferring
failed
quarantine
request_failure_reason
​string | null
domain
​string
tld
​string
​IntegrationInstanceReferenceResource | null
​DomainHolderReferenceResource | null
expires_at
​string | null · date
registered_at
​string | null · date-time
renewal_allowed
​boolean
has_active_subscription
​boolean
will_renew
​boolean
desired_nameservers
​string[]
current_nameservers
​string[]
nameservers_status
​string | null · enum
Enum values:
synchronized
unsynchronized
nameservers_last_status_check
​string | null · date-time
is_lockable
​boolean
is_locked
​boolean
​DomainDnsZoneResource | null
updated_at
​string · date-time
created_at
​string · date-time

Update nameservers

PUT
https://api.clienvy.io/employee/v1
/domains/{domain}/nameservers

Sets the domain's nameservers at the registrar. Only available for active registered domains without a primary DNS zone.

Update nameservers › path Parameters

domain
​string · uuid · required

The domain UUID

Update nameservers › Headers

X-Organization-Id
​string · uuid · required

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

Update nameservers › Request Body

nameservers
​string[] · required

The nameservers to set (at least two).

Update nameservers › Responses

DomainResource

id
​string · uuid
status
​DomainStatus · enum
active
registering
From the request until the registrar reports the domain as active, or the request as failed.
transferring
From the request until the registrar reports the domain as active, or the request as failed. A transfer can take days, for some extensions up to a week.
failed
The registrar did not carry out the registration or transfer. It can be requested again, or the domain made external.
quarantine
Enum values:
active
registering
transferring
failed
quarantine
request_failure_reason
​string | null
domain
​string
tld
​string
​IntegrationInstanceReferenceResource | null
​DomainHolderReferenceResource | null
expires_at
​string | null · date
registered_at
​string | null · date-time
renewal_allowed
​boolean
has_active_subscription
​boolean
will_renew
​boolean
desired_nameservers
​string[]
current_nameservers
​string[]
nameservers_status
​string | null · enum
Enum values:
synchronized
unsynchronized
nameservers_last_status_check
​string | null · date-time
is_lockable
​boolean
is_locked
​boolean
​DomainDnsZoneResource | null
updated_at
​string · date-time
created_at
​string · date-time

Delete an external domain

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

Unlinks an external domain from a website (and deletes it when no other website links to it). Only available for external domains without an active application on the website.

Delete an external domain › path Parameters

domain
​string · uuid · required

The domain UUID

Delete an external domain › Headers

X-Organization-Id
​string · uuid · required

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

Delete an external domain › Request Body

website_id
​string · uuid · required

UUID of the website to unlink the domain from.

Delete an external domain › Responses

DomainResource

id
​string · uuid
status
​DomainStatus · enum
active
registering
From the request until the registrar reports the domain as active, or the request as failed.
transferring
From the request until the registrar reports the domain as active, or the request as failed. A transfer can take days, for some extensions up to a week.
failed
The registrar did not carry out the registration or transfer. It can be requested again, or the domain made external.
quarantine
Enum values:
active
registering
transferring
failed
quarantine
request_failure_reason
​string | null
domain
​string
tld
​string
​IntegrationInstanceReferenceResource | null
​DomainHolderReferenceResource | null
expires_at
​string | null · date
registered_at
​string | null · date-time
renewal_allowed
​boolean
has_active_subscription
​boolean
will_renew
​boolean
desired_nameservers
​string[]
current_nameservers
​string[]
nameservers_status
​string | null · enum
Enum values:
synchronized
unsynchronized
nameservers_last_status_check
​string | null · date-time
is_lockable
​boolean
is_locked
​boolean
​DomainDnsZoneResource | null
updated_at
​string · date-time
created_at
​string · date-time

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

Unlinks a registered (internal) domain from a website without deleting the registration. Not available when an active application on the website uses the domain.

domain
​string · uuid · required

The domain UUID

X-Organization-Id
​string · uuid · required

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

website_id
​string · uuid · required

UUID of the website to unlink the domain from.

DomainResource

id
​string · uuid
status
​DomainStatus · enum
active
registering
From the request until the registrar reports the domain as active, or the request as failed.
transferring
From the request until the registrar reports the domain as active, or the request as failed. A transfer can take days, for some extensions up to a week.
failed
The registrar did not carry out the registration or transfer. It can be requested again, or the domain made external.
quarantine
Enum values:
active
registering
transferring
failed
quarantine
request_failure_reason
​string | null
domain
​string
tld
​string
​IntegrationInstanceReferenceResource | null
​DomainHolderReferenceResource | null
expires_at
​string | null · date
registered_at
​string | null · date-time
renewal_allowed
​boolean
has_active_subscription
​boolean
will_renew
​boolean
desired_nameservers
​string[]
current_nameservers
​string[]
nameservers_status
​string | null · enum
Enum values:
synchronized
unsynchronized
nameservers_last_status_check
​string | null · date-time
is_lockable
​boolean
is_locked
​boolean
​DomainDnsZoneResource | null
updated_at
​string · date-time
created_at
​string · date-time

Cancel a failed request

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

Gives up the registration or transfer that failed: the domain is external again, for when it stays registered elsewhere. Through the registrar of Clienvy what was held on the credit for it is available again. It can be registered or transferred again later.

Cancel a failed request › path Parameters

domain
​string · uuid · required

The domain UUID

Cancel a failed request › Headers

X-Organization-Id
​string · uuid · required

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

Cancel a failed request › Responses

DomainResource

id
​string · uuid
status
​DomainStatus · enum
active
registering
From the request until the registrar reports the domain as active, or the request as failed.
transferring
From the request until the registrar reports the domain as active, or the request as failed. A transfer can take days, for some extensions up to a week.
failed
The registrar did not carry out the registration or transfer. It can be requested again, or the domain made external.
quarantine
Enum values:
active
registering
transferring
failed
quarantine
request_failure_reason
​string | null
domain
​string
tld
​string
​IntegrationInstanceReferenceResource | null
​DomainHolderReferenceResource | null
expires_at
​string | null · date
registered_at
​string | null · date-time
renewal_allowed
​boolean
has_active_subscription
​boolean
will_renew
​boolean
desired_nameservers
​string[]
current_nameservers
​string[]
nameservers_status
​string | null · enum
Enum values:
synchronized
unsynchronized
nameservers_last_status_check
​string | null · date-time
is_lockable
​boolean
is_locked
​boolean
​DomainDnsZoneResource | null
updated_at
​string · date-time
created_at
​string · date-time

List activities

GET
https://api.clienvy.io/employee/v1
/domains/{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

domain
​string · uuid · required

The 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
/domains/{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

domain
​string · uuid · required

The 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