API Introduction

API Introduction
The Domains Reseller API allows you to interact with our system programmatically from your own WHMCS or solution of choice.
Using the API you are able to perform actions such as:
• Register Domain
• Transfer Domain
• Renew Domain
• Modify Contact Details
• Get/Modify Nameservers

Domains Reseller 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.
These details are given by provider.

URL:


Examples:
The following examples use the cURL command-line tool to exectute API requests.

Exemplary API Request:
curl 'https://www.host.al/clientarea/domainsResellerAPI/api.php'  --data 'token=T2F4MTasdasdaLUBtjkSNzw2IQYP9yJ&authemail=register@domain.al&action=RegisterDomain&sld=testsafasf&tld=al&regperiod=1&nameserver1=ns1.name.al&nameserver2=ns2.name.al&firstname=test&lastname=test&companyname=company&address1=addresss&city=city&state=region&country=US&postcode=12345&phonenumber=1234567890&email=admin@domain.com&dnsmanagement=1&idprotection=0&emailforwarding=0' --compressed
Exemplary API Response:
{"result":"success","msg":"Domain has been registered"}

Was this answer helpful?

 Print this Article

Also Read

Install the Host.al Domain Reseller Registrar module in WHMCS

Below you can find instructions for installation of the registrar module on reseller WHMCS.Make...

Example Code (PHP)

<?php $data = array( "action" => "RegisterDomain", "token" =>...

API Actions

RegisterDomain: This command is used to send a Register command to the registrar. Request...