name.com Core API (1.2.0)
RESTful API for managing domains, DNS records, and related services at name.com. Access via HTTPS at api.name.com (production) or api.dev.name.com (testing). Supports standard authentication, rate-limited to 20 requests/second.
https://docs.name.com/_mock/coreapi/namecom.api/
https://api.dev.name.com/
- Mock server
https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/{domainName}/vanity_nameservers
- Testing
https://api.dev.name.com/core/v1/domains/{domainName}/vanity_nameservers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/example.com/vanity_nameservers?perPage=50&page=2'
List of vanity nameservers.
LastPage is the identifier for the final page of results. It is only populated if there is another page of results after the current page. If no further pages exist, this field will be null.
NextPage is the identifier for the next page of results. It is only populated if there is another page of results after the current page. If no further pages exist, this field will be null.
VanityNameservers is the list of vanity nameservers associated with the domain. If no vanity nameservers are configured, this will be an empty array.
DomainName is the root domain for which this vanity nameserver is created. For example, if the hostname is 'ns1.example.com', the domainName would be 'example.com'.
Hostname is the fully qualified domain name (FQDN) of the vanity nameserver. It must be a subdomain of the domain specified in 'domainName'.
{ "lastPage": 5, "nextPage": 2, "vanityNameservers": [] }
Details of the vanity nameserver to create.
The subdomain portion of the nameserver hostname. The domain portion will be taken from the URL path. For example, to create 'ns1.example.com', specify 'ns1' when calling the endpoint for the domain 'example.com'.
- Mock server
https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/{domainName}/vanity_nameservers
- Testing
https://api.dev.name.com/core/v1/domains/{domainName}/vanity_nameservers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/example.com/vanity_nameservers \
-H 'Content-Type: application/json' \
-d '{
"hostname": "ns1",
"ips": [
"192.168.1.10",
"2001:0db8:85a3:0000:0000:8a2e:0370:7334"
]
}'
Vanity nameserver successfully created.
DomainName is the root domain for which this vanity nameserver is created. For example, if the hostname is 'ns1.example.com', the domainName would be 'example.com'.
Hostname is the fully qualified domain name (FQDN) of the vanity nameserver. It must be a subdomain of the domain specified in 'domainName'.
{ "domainName": "example.com", "hostname": "ns1.example.com", "ips": [ "192.168.1.1", "2001:0db8:85a3:0000:0000:8a2e:0370:7334" ] }
- Mock server
https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/{domainName}/vanity_nameservers/{hostname}
- Testing
https://api.dev.name.com/core/v1/domains/{domainName}/vanity_nameservers/{hostname}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
-u <username>:<password> \
https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/example.com/vanity_nameservers/ns1.example.com
- Mock server
https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/{domainName}/vanity_nameservers/{hostname}
- Testing
https://api.dev.name.com/core/v1/domains/{domainName}/vanity_nameservers/{hostname}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/example.com/vanity_nameservers/ns1.example.com
Details of the vanity nameserver.
DomainName is the root domain for which this vanity nameserver is created. For example, if the hostname is 'ns1.example.com', the domainName would be 'example.com'.
Hostname is the fully qualified domain name (FQDN) of the vanity nameserver. It must be a subdomain of the domain specified in 'domainName'.
{ "domainName": "example.com", "hostname": "ns1.example.com", "ips": [ "192.168.1.1", "2001:0db8:85a3:0000:0000:8a2e:0370:7334" ] }
Updated IP addresses for the vanity nameserver.
- Mock server
https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/{domainName}/vanity_nameservers/{hostname}
- Testing
https://api.dev.name.com/core/v1/domains/{domainName}/vanity_nameservers/{hostname}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
-u <username>:<password> \
https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/example.com/vanity_nameservers/ns1.example.com \
-H 'Content-Type: application/json' \
-d '{
"ips": [
"192.168.1.10",
"2001:0db8:85a3:0000:0000:8a2e:0370:7334"
]
}'
Vanity nameserver successfully updated.
DomainName is the root domain for which this vanity nameserver is created. For example, if the hostname is 'ns1.example.com', the domainName would be 'example.com'.
Hostname is the fully qualified domain name (FQDN) of the vanity nameserver. It must be a subdomain of the domain specified in 'domainName'.
{ "domainName": "example.com", "hostname": "ns1.example.com", "ips": [ "192.168.1.1", "2001:0db8:85a3:0000:0000:8a2e:0370:7334" ] }