How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Leaseweb Dns API

The dns API from Leaseweb — 8 operation(s) for dns.

Leaseweb Dns API is one of 9 APIs that Leaseweb publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 54 JSON Schema definitions.

Tagged areas include DNS. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and 54 JSON Schemas.

This API exposes 13 operations across 8 paths, and defines 35 schemas. It is described by OpenAPI 3.2.0, at version v2.

Requests are made against a single base URL, https://api.leaseweb.com/hosting/v2.

13 operations 8 paths 35 schemas 2 DELETE4 GET5 POST2 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
v2
Base URL
https://api.leaseweb.com/publicCloud/v1
Authentication
HTTP Bearer, API Key
License
Resource Areas
1

Authentication & Security 2

Leaseweb Dns API declares 2 security schemes for authenticating requests. It accepts HTTP bearer tokens (BearerAuth). An API key is passed in the header as X-LSW-Auth (X-LSW-Auth). By default, every request must be authenticated.

  • X-LSW-Auth — API key authentication by setting X-LSW-Auth header.

Paths & Operations 13

Across 8 paths, the API surfaces 13 operations — 2 DELETE, 4 GET, 5 POST, 2 PUT. Each is listed below with its method, path, parameters, and response codes.

DNS 13
GET
/domains/{domainName}/metrics/dnsQuery
Show Dns Query Metrics
getQueryMetrics 5 params → 200401403500503
POST
/domains/{domainName}/keyRollover
Key Rollover
rolloverKey 1 param body → 202400401403409500503
DELETE
/domains/{domainName}/resourceRecordSets
Delete all DNS records
deleteResourceRecordSets 1 param → 204401403404500503
GET
/domains/{domainName}/resourceRecordSets
List resource record sets
getResourceRecordSetList 1 param → 200401403404500503
POST
/domains/{domainName}/resourceRecordSets
Create a resource record set
createResourceRecordSet 1 param body → 201400401403404500503
PUT
/domains/{domainName}/resourceRecordSets
Update all DNS records
updateResourceRecordSets 1 param body → 200400401403404500503
DELETE
/domains/{domainName}/resourceRecordSets/{name}/{type}
Delete a specific DNS record
deleteResourceRecordSet 3 params → 204401403404500503
GET
/domains/{domainName}/resourceRecordSets/{name}/{type}
Inspect resource record set
getResourceRecordSet 3 params → 200401403404500503
PUT
/domains/{domainName}/resourceRecordSets/{name}/{type}
Update a specific DNS record
updateResourceRecordSet 3 params body → 200400401403404500503
POST
/domains/{domainName}/resourceRecordSets/import
Import dns records from bind file content
importResourceRecordSets 1 param body → 200400401403404500503
GET
/domains/{domainName}/resourceRecordSets/export
Export dns records as a bind file content
exportResourceRecordSets 1 param → 200400401403404500503
POST
/domains/{domainName}/resourceRecordSets/validateSet
Validate a resource record set
validateResourceRecordSet 1 param body → 200400401403404500503
POST
/domains/{domainName}/validateZone
Validate zone
validateZone 1 param body → 200400401403404500503

Schemas 35

The contract defines 35 schemas that model the data the API accepts and returns. The most detailed are errorResult (4 properties), resourceRecordSet (4 properties), metricsMetaData (4 properties), ldResourceRecordSet (4 properties). Each schema is shown below with its type and property counts.

rolloverKeyOpts
object
1 property 1 required
self
object
Link to the resource record set resource
1 property 1 required
aggregation
string
ldResourceRecordSetDetails
ldResourceRecordSetType
string
Type of the resource record set
errorResult
object
4 properties
resourceRecordSet
object
4 properties 4 required
dnsQuery
object
2 properties 2 required
updateResourceRecordSetsLdOpts
object
1 property 1 required
importResourceRecordSetsResult
object
3 properties
ldLinks
object
Links to related resource locations
2 properties 2 required
metricValue
object
An array of metrics grouped by granularity
2 properties 2 required
rolloverType
string
The key rollover type.
collection
object
Link to the resource record sets collection
1 property 1 required
infoMessageResult
object
1 property
geoContent
object
GeoContent comprising of closest location ip addresses
1 property 1 required
importResourceRecordSetsOpts
object
1 property 1 required
getQueryMetricsResult
object
2 properties 2 required
ttl
integer
Time to live of the resource record set
validateSet
object
Link to validate a single resource record set
1 property 1 required
baseResourceRecordSetList
object
2 properties 1 required
getResourceRecordSetListResult
editable
boolean
May the set be edited
metricsMetaData
object
Metadata about the collection
4 properties 4 required
updateResourceRecordSetLdOpts
object
2 properties 2 required
links
object
Links to related resource locations
3 properties 3 required
parent
object
Link to the parent resource
1 property 1 required
ldResourceRecordSet
object
4 properties 4 required
resourceRecordSetDetails
validateZoneResult
object
1 property
resultRecordSets
object
1 property 1 required
granularity
string
getResourceRecordSetListLdResult
resourceRecordSetType
string
Type of the resource record set
updateResourceRecordSetOpts
object
2 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

leaseweb-dns-api-openapi.yml Raw ↑

Other APIs Leaseweb publishes across the network.

Leaseweb Abuse API
Leaseweb Aggregationpack API
Leaseweb Dedicatedserver API
Leaseweb Invoice API
Leaseweb Ipmgmt API
Leaseweb Networkequipment API
Leaseweb Objectstorage API
Leaseweb Ordering API
Where this information came from

This is an independent, third-party profile of Leaseweb Dns API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.