Domain API Introduction
The Smart Hosting Domain Reseller API allows you to interact with our system programmatically from your own WHMCS system.
Using the API you are able to perform actions such as:
• Register Domain
• Transfer Domain
• Renew Domain
• Release Domain
• Delete Domain
• Modify Contact Details
• Get EPP Code
• Get/Save DNS Records
• Get/Modify Nameservers
• Register Nameserver
• Modify Nameserver
• Delete Nameserver
• Registrar Lock
• Get/Save Email Forwarding
• ID Protection
• Domain Cron Synchronization
Request/Response Data Format:
In requests, Domains Reseller accepts query parameters.
API response is sent in JSON data format.
Authentication:
API key and email address is required for authentication.
We will issue these details on request. Please contact us.
URL:
Examples:
The following examples use the cURL command-line tool to exectute API requests.
Exemplary API Request:
curl 'https://www.bestwebhosting.co.uk/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=exampledomain@domain.com&action=RegisterDomain&sld=exampledomain&tld=com®period=1&nameserver1=ns1.yourdomain.com&nameserver2=ns2.yourdomain.com&adminfirstname=test&adminlastname=test&admincompanyname=company&adminaddress1=addresss&admincity=city&adminstate=region&admincountry=US&adminpostcode=12345&adminphonenumber=1234567890&adminemail=admin@domain.com' --compressedExemplary API Response:
{"result":"success","msg":"Domain has been registered"}
Did you find this article helpful?
You might also find useful
Default Nameservers for Shared Hosting
How do I add another domain to my Hosting Account?
How do I force SSL / HTTPS on my domain or site