Clienvy API documentation

Create a DNS record

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

Adds a DNS record to the domain and synchronises it to the linked DNS zones. Some fields are only used for specific record types: priority for MX/SRV, port/weight/name for SRV, and tag/flags for CAA.

Create a DNS record › path Parameters

domain
​string · uuid · required

The domain UUID

Create a DNS record › Headers

X-Organization-Id
​string · uuid · required

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

Create a DNS record › Request Body

type
​string · required

Record type: A, AAAA, CNAME, MX, TXT, NS, SRV or CAA.

value
​string · maxLength: 10000 · required

Record value (for example an IP address or hostname).

ttl
​integer · required

Time to live in seconds (minimum 60).

name
​string · maxLength: 255

Record name/host relative to the domain, null results in the apex domain. Required for SRV records.

priority
​integer

Priority. Required for MX and SRV records.

port
​integer

Port. Required for SRV records.

weight
​integer

Weight. Required for SRV records.

tag
​string

CAA tag: issue, issuewild or iodef. Required for CAA records.

flags
​integer

CAA flags (0–255). Required for CAA records.

Create a DNS record › Responses

​DomainDnsRecordResource · required
​DomainResource · required

Update a DNS record

PUT
https://api.clienvy.io/employee/v1
/domains/{domain}/dns-records/{domainDnsRecord}

Updates a DNS record and synchronises it to the linked DNS zones.

Update a DNS record › path Parameters

domain
​string · uuid · required

The domain UUID

domainDnsRecord
​string · uuid · required

The domain dns record UUID

Update a DNS record › Headers

X-Organization-Id
​string · uuid · required

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

Update a DNS record › Request Body

type
​string · required

Record type: A, AAAA, CNAME, MX, TXT, NS, SRV or CAA.

value
​string · maxLength: 10000 · required

Record value (for example an IP address or hostname).

ttl
​integer · required

Time to live in seconds (minimum 60).

name
​string · maxLength: 255

Record name/host relative to the domain, null results in the apex domain. Required for SRV records.

priority
​integer

Priority. Required for MX and SRV records.

port
​integer

Port. Required for SRV records.

weight
​integer

Weight. Required for SRV records.

tag
​string

CAA tag: issue, issuewild or iodef. Required for CAA records.

flags
​integer

CAA flags (0–255). Required for CAA records.

Update a DNS record › Responses

​DomainDnsRecordResource · required
​DomainResource · required

Delete a DNS record

DELETE
https://api.clienvy.io/employee/v1
/domains/{domain}/dns-records/{domainDnsRecord}

Removes a DNS record and synchronises the change to the linked DNS zones.

Delete a DNS record › path Parameters

domain
​string · uuid · required

The domain UUID

domainDnsRecord
​string · uuid · required

The domain dns record UUID

Delete a DNS record › Headers

X-Organization-Id
​string · uuid · required

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

Delete a DNS record › Responses

DomainDnsRecordResource

​DomainDnsRecordResource · required
​DomainResource · required

Create a DNS zone

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

Adds a DNS zone at a DNS provider for the domain and synchronises the domain's DNS records into it. A domain can have only one zone per provider.

Create a DNS zone › path Parameters

domain
​string · uuid · required

The domain UUID

Create a DNS zone › Headers

X-Organization-Id
​string · uuid · required

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

Create a DNS zone › Request Body

dns_provider_instance_id
​string · uuid · required

UUID of the DNS provider integration to create the zone at.

Create a DNS zone › Responses

DomainDnsZoneResource

​DomainDnsZoneResource · required
​DomainResource · required

Delete a DNS zone

DELETE
https://api.clienvy.io/employee/v1
/domains/{domain}/dns-zones/{domainDnsZone}

Removes a DNS zone from the domain. The primary zone cannot be deleted while other zones remain.

Delete a DNS zone › path Parameters

domain
​string · uuid · required

The domain UUID

domainDnsZone
​string · uuid · required

The domain dns zone UUID

Delete a DNS zone › Headers

X-Organization-Id
​string · uuid · required

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

Delete a DNS zone › Responses

DomainDnsZoneResource

​DomainDnsZoneResource · required
​DomainResource · required